Remove HUGE_VAL definition from libm math functions
This patch removes the definitions of HUGE_VAL from some of the float math functions. HUGE_VAL is defined in newlib/libc/include/math.h, so it is not necessary to have a further definition in the math functions.
This commit is contained in:
committed by
Corinna Vinschen
parent
b14a879d85
commit
7db203304e
@ -66,12 +66,6 @@ PORTABILITY
|
||||
return __ieee754_pow(x,y);
|
||||
#else
|
||||
double z;
|
||||
#ifndef HUGE_VAL
|
||||
#define HUGE_VAL inf
|
||||
double inf = 0.0;
|
||||
|
||||
SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
|
||||
#endif
|
||||
z=__ieee754_pow(x,y);
|
||||
if(_LIB_VERSION == _IEEE_|| isnan(y)) return z;
|
||||
if(isnan(x)) {
|
||||
|
Reference in New Issue
Block a user