Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154370079
D2652.id5697.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D2652.id5697.diff
View Options
Index: lib/libc/gen/isinf.c
===================================================================
--- lib/libc/gen/isinf.c
+++ lib/libc/gen/isinf.c
@@ -26,6 +26,8 @@
* $FreeBSD$
*/
+#include <machine/float.h>
+
#include <math.h>
#include "fpmath.h"
@@ -62,9 +64,9 @@
u.e = e;
mask_nbit_l(u);
-#ifndef __alpha__
- return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0);
-#else
+#if LDBL_MANT_DIG == 53
return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0);
+#else
+ return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0);
#endif
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 4:14 AM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32323159
Default Alt Text
D2652.id5697.diff (590 B)
Attached To
Mode
D2652: Fix __isinfl on architectures where double == long double
Attached
Detach File
Event Timeline
Log In to Comment