1 #ifndef MATH_FLOATS_H 2 #define MATH_FLOATS_H 3 4 #ifdef HAVE_CONFIG_H 5 #include "config.h" 6 #endif 7 8 #include <math.h> 9 10 #ifndef HAVE_SQRTF 11 #define sqrtf sqrt 12 #endif 13 14 #ifndef HAVE_HYPOT 15 #define hypot(x, y) (sqrtf((x) * (x) + (y) * (y))) 16 #endif 17 18 #ifndef HAVE_HYPOTF 19 #define hypotf hypot 20 #endif 21 22 #ifndef HAVE_ATAN2F 23 #define atan2f atan2 24 #endif 25 26 #ifndef HAVE_POWF 27 #define powf pow 28 #endif 29 30 #ifndef HAVE_CEILF 31 #define ceilf ceil 32 #endif 33 34 #ifndef HAVE_COSF 35 #define cosf cos 36 #endif 37 38 #ifndef HAVE_SINF 39 #define sinf sin 40 #endif 41 42 #ifndef HAVE_ACOSF 43 #define acosf acos 44 #endif 45 46 #ifndef HAVE_FMODF 47 #define fmodf fmod 48 #endif 49 50 #ifndef HAVE_FABSF 51 #define fabsf fabs 52 #endif 53 54 #ifndef HAVE_POWF 55 #define powf pow 56 #endif 57 58 #ifndef HAVE_LOG10F 59 #define log10f log10 60 #endif 61 62 /* Instead of finding it in a system or glib header. */ 63 #define PI 3.1415926535897932384626433832795029F 64 65 #endif 66