math: minor cleanups in ceil and floor

This commit is contained in:
nsz
2012-03-29 14:09:57 +02:00
parent d79ac8c38f
commit 7eabe8e690
5 changed files with 7 additions and 10 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ long double ceill(long double x)
static const long double huge = 1.0e300;
long double
ceill(long double x)
long double ceill(long double x)
{
union IEEEl2bits u = { .e = x };
int e = u.bits.exp - LDBL_MAX_EXP + 1;