source: azure_iot_hub/trunk/musl-1.1.18/src/fenv/__flt_rounds.c@ 388

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: 296 bytes
Line 
1#include <float.h>
2#include <fenv.h>
3
4int __flt_rounds()
5{
6 switch (fegetround()) {
7#ifdef FE_TOWARDZERO
8 case FE_TOWARDZERO: return 0;
9#endif
10 case FE_TONEAREST: return 1;
11#ifdef FE_UPWARD
12 case FE_UPWARD: return 2;
13#endif
14#ifdef FE_DOWNWARD
15 case FE_DOWNWARD: return 3;
16#endif
17 }
18 return -1;
19}
Note: See TracBrowser for help on using the repository browser.