• Anton Khirnov's avatar
    Work around broken floating point limits on some systems. · e854b8f9
    Anton Khirnov authored
    The values of {FLT,DBL}_{MAX,MIN} macros on some systems (older musl
    libc, some BSD flavours) are not exactly representable, i.e.
    (double)DBL_MAX == DBL_MAX is false
    This violates (at least some interpretations of) the C99 standard and
    breaks code (e.g. in vf_fps) like
    double f = DBL_MAX;
    [...]
    if (f == DBL_MAX) { // f has not been changed yet
        [....]
    }
    e854b8f9
Name
Last commit
Last update
..
aix Loading commit data...
float Loading commit data...
msvcrt Loading commit data...
plan9 Loading commit data...
tms470 Loading commit data...
windows Loading commit data...
getopt.c Loading commit data...
strtod.c Loading commit data...
w32pthreads.h Loading commit data...