diff options
| author | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:01:34 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:01:34 -0400 | 
| commit | 93a50a26cd0f9efc59cc83daae7b2d916b327ab1 (patch) | |
| tree | ada41a23c4b01f27d1d2cf8cd88948b061aa8f61 /src/math/floorf.c | |
| parent | 2cbb24bba39ad3529315098b5619b6fec078eb82 (diff) | |
| parent | 40305f74bd70a575ce73260227ed3b64e0625b13 (diff) | |
| download | musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.gz | |
Merge remote branch 'nsz/master'
Diffstat (limited to 'src/math/floorf.c')
| -rw-r--r-- | src/math/floorf.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/math/floorf.c b/src/math/floorf.c index 958abf5b..23fa5e7d 100644 --- a/src/math/floorf.c +++ b/src/math/floorf.c @@ -36,7 +36,7 @@ float floorf(float x)  	if (j0 < 23) {  		if (j0 < 0) {  /* |x| < 1 */  			/* raise inexact if x != 0 */ -			if (huge+x > (float)0.0) { +			if (huge+x > 0.0f) {  				if (i0 >= 0)  /* x >= 0 */  					i0 = 0;  				else if ((i0&0x7fffffff) != 0) @@ -47,7 +47,7 @@ float floorf(float x)  			if ((i0&i) == 0)  				return x; /* x is integral */  			/* raise inexact flag */ -			if (huge+x > (float)0.0) { +			if (huge+x > 0.0f) {  				if (i0 < 0)  					i0 += 0x00800000>>j0;  				i0 &= ~i; | 
