Last change
on this file since 388 was 388, checked in by coas-nagasima, 5 years ago |
Azure IoT Hub Device C SDK を使ったサンプルの追加
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
258 bytes
|
Rev | Line | |
---|
[388] | 1 | #include <math.h>
|
---|
| 2 | #include <stdint.h>
|
---|
| 3 |
|
---|
| 4 | int __fpclassify(double x)
|
---|
| 5 | {
|
---|
| 6 | union {double f; uint64_t i;} u = {x};
|
---|
| 7 | int e = u.i>>52 & 0x7ff;
|
---|
| 8 | if (!e) return u.i<<1 ? FP_SUBNORMAL : FP_ZERO;
|
---|
| 9 | if (e==0x7ff) return u.i<<12 ? FP_NAN : FP_INFINITE;
|
---|
| 10 | return FP_NORMAL;
|
---|
| 11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.