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:
186 bytes
|
Rev | Line | |
---|
[388] | 1 | #include <math.h>
|
---|
| 2 | #include <stdint.h>
|
---|
| 3 |
|
---|
| 4 | float copysignf(float x, float y)
|
---|
| 5 | {
|
---|
| 6 | union {float f; uint32_t i;} ux={x}, uy={y};
|
---|
| 7 | ux.i &= 0x7fffffff;
|
---|
| 8 | ux.i |= uy.i & 0x80000000;
|
---|
| 9 | return ux.f;
|
---|
| 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.