source: azure_iot_hub/trunk/musl-1.1.18/src/math/nearbyintf.c@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 250 bytes
Line 
1#include <fenv.h>
2#include <math.h>
3
4float nearbyintf(float x)
5{
6#ifdef FE_INEXACT
7 #pragma STDC FENV_ACCESS ON
8 int e;
9
10 e = fetestexcept(FE_INEXACT);
11#endif
12 x = rintf(x);
13#ifdef FE_INEXACT
14 if (!e)
15 feclearexcept(FE_INEXACT);
16#endif
17 return x;
18}
Note: See TracBrowser for help on using the repository browser.