source: azure_iot_hub/trunk/musl-1.1.18/src/math/logbl.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: 256 bytes
RevLine 
[388]1#include <math.h>
2#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
3long double logbl(long double x)
4{
5 return logb(x);
6}
7#else
8long double logbl(long double x)
9{
10 if (!isfinite(x))
11 return x * x;
12 if (x == 0)
13 return -1/(x*x);
14 return ilogbl(x);
15}
16#endif
Note: See TracBrowser for help on using the repository browser.