summaryrefslogtreecommitdiff
path: root/plan9/plan9.c
diff options
context:
space:
mode:
Diffstat (limited to 'plan9/plan9.c')
-rw-r--r--plan9/plan9.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plan9/plan9.c b/plan9/plan9.c
index 02ef76c97b..9872306d7e 100644
--- a/plan9/plan9.c
+++ b/plan9/plan9.c
@@ -11,18 +11,18 @@
#define SHIFT 20
int fpclassify(double d) {
- FPdbleword x;
-
- /* order matters: only isNaN can operate on NaN */
- if ( isNaN(d) )
- return FP_NAN;
- else if ( isInf(d, 0) )
- return FP_INFINITE;
- else if ( d == 0 )
- return FP_ZERO;
-
- x.x = fabs(d);
- return (x.hi >> SHIFT) ? FP_NORMAL : FP_SUBNORMAL;
+ FPdbleword x;
+
+ /* order matters: only isNaN can operate on NaN */
+ if ( isNaN(d) )
+ return FP_NAN;
+ else if ( isInf(d, 0) )
+ return FP_INFINITE;
+ else if ( d == 0 )
+ return FP_ZERO;
+
+ x.x = fabs(d);
+ return (x.hi >> SHIFT) ? FP_NORMAL : FP_SUBNORMAL;
}
/* Functions mentioned in /sys/include/ape/sys/socket.h but not implemented */