]> granicus.if.org Git - graphviz/commit
common: replace some 'MIN' usage with 'fmax'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 9 Oct 2022 20:15:09 +0000 (13:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 05:06:07 +0000 (22:06 -0700)
commit6abc25d8b10e6adb606aa43095bba325091d3a47
treec92676616f470e3e04ced3ab4e0ab9455afdce6b
parentb5eed7f68d742949f8087812c04aa0dea178aa3a
common: replace some 'MIN' usage with 'fmax'

`fmin` is typically implemented as a compiler built-in and has the potential to
be more efficient than `MIN`, while also avoiding the loss of type safety and
double-expansion problems of macros.
lib/common/ellipse.c