Debian Codegraph @

mingw-w64-crt/math/arm-common/logb.c

raw
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 #include <math.h>
8 #include <limits.h>
9
10 extern double (* __MINGW_IMP_SYMBOL(_logb))(double);
11
12 double logb(double x)
13 {
14 if (isinf(x))
15 return INFINITY;
16 return __MINGW_IMP_SYMBOL(_logb)(x);
17 }