| 2115 | } |
| 2116 | |
| 2117 | static int |
| 2118 | nan_compare (long double a, long double b) |
| 2119 | { |
| 2120 | char buf[2][sizeof "-nan""()" + CHAR_BIT * sizeof a]; |
| 2121 | snprintf (buf[0], sizeof buf[0], "%Lf", a); |
| 2122 | snprintf (buf[1], sizeof buf[1], "%Lf", b); |
| 2123 | return strcmp (buf[0], buf[1]); |
| 2124 | } |
| 2125 | |
| 2126 | static int |
| 2127 | general_numcompare (char const *sa, char const *sb) |
no outgoing calls
no test coverage detected