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:
164 bytes
|
Rev | Line | |
---|
[388] | 1 | #include "libm.h"
|
---|
| 2 |
|
---|
| 3 | double copysign(double x, double y) {
|
---|
| 4 | union {double f; uint64_t i;} ux={x}, uy={y};
|
---|
| 5 | ux.i &= -1ULL/2;
|
---|
| 6 | ux.i |= uy.i & 1ULL<<63;
|
---|
| 7 | return ux.f;
|
---|
| 8 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.