
The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard <mans@mansr.com>
8 lines
192 B
C
8 lines
192 B
C
#include_next <math.h>
|
|
|
|
#undef INFINITY
|
|
#undef NAN
|
|
|
|
#define INFINITY (*(const float*)((const unsigned []){ 0x7f800000 }))
|
|
#define NAN (*(const float*)((const unsigned []){ 0x7fc00000 }))
|