openlibm_math.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /*
  2. * ====================================================
  3. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  4. *
  5. * Developed at SunPro, a Sun Microsystems, Inc. business.
  6. * Permission to use, copy, modify, and distribute this
  7. * software is freely granted, provided that this notice
  8. * is preserved.
  9. * ====================================================
  10. */
  11. /*
  12. * from: @(#)fdlibm.h 5.1 93/09/24
  13. * $FreeBSD: src/lib/msun/src/openlibm.h,v 1.82 2011/11/12 19:55:48 theraven Exp $
  14. */
  15. #ifdef OPENLIBM_USE_HOST_MATH_H
  16. #include <math.h>
  17. #else /* !OPENLIBM_USE_HOST_MATH_H */
  18. #ifndef OPENLIBM_MATH_H
  19. #define OPENLIBM_MATH_H
  20. #if (defined(_WIN32) || defined (_MSC_VER)) && !defined(__WIN32__)
  21. #define __WIN32__
  22. #endif
  23. #ifndef __arm__
  24. #define OLM_LONG_DOUBLE
  25. #endif
  26. #ifndef __pure2
  27. #define __pure2
  28. #endif
  29. #ifdef _WIN32
  30. # ifdef IMPORT_EXPORTS
  31. # define OLM_DLLEXPORT __declspec(dllimport)
  32. # else
  33. # define OLM_DLLEXPORT __declspec(dllexport)
  34. # endif
  35. #else
  36. #define OLM_DLLEXPORT __attribute__ ((visibility("default")))
  37. #endif
  38. /*
  39. * ANSI/POSIX
  40. */
  41. extern const union __infinity_un {
  42. unsigned char __uc[8];
  43. double __ud;
  44. } __infinity;
  45. extern const union __nan_un {
  46. unsigned char __uc[sizeof(float)];
  47. float __uf;
  48. } __nan;
  49. /* VBS
  50. #if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
  51. #define __MATH_BUILTIN_CONSTANTS
  52. #endif
  53. #if __GNUC_PREREQ__(3, 0) && !defined(__INTEL_COMPILER)
  54. #define __MATH_BUILTIN_RELOPS
  55. #endif
  56. */
  57. //VBS begin
  58. #define __MATH_BUILTIN_CONSTANTS
  59. #define __MATH_BUILTIN_RELOPS
  60. #ifndef __ISO_C_VISIBLE
  61. #define __ISO_C_VISIBLE 1999
  62. #endif
  63. //VBS end
  64. #ifdef __MATH_BUILTIN_CONSTANTS
  65. #define HUGE_VAL __builtin_huge_val()
  66. #else
  67. #define HUGE_VAL (__infinity.__ud)
  68. #endif
  69. #if __ISO_C_VISIBLE >= 1999
  70. #define FP_ILOGB0 (-INT_MAX)
  71. #define FP_ILOGBNAN INT_MAX
  72. #ifdef __MATH_BUILTIN_CONSTANTS
  73. #define HUGE_VALF __builtin_huge_valf()
  74. #define HUGE_VALL __builtin_huge_vall()
  75. #define INFINITY __builtin_inff()
  76. #define NAN __builtin_nanf("")
  77. #else
  78. #define HUGE_VALF (float)HUGE_VAL
  79. #define HUGE_VALL (long double)HUGE_VAL
  80. #define INFINITY HUGE_VALF
  81. #define NAN (__nan.__uf)
  82. #endif /* __MATH_BUILTIN_CONSTANTS */
  83. #define MATH_ERRNO 1
  84. #define MATH_ERREXCEPT 2
  85. #define math_errhandling MATH_ERREXCEPT
  86. #define FP_FAST_FMAF 1
  87. #ifdef __ia64__
  88. #define FP_FAST_FMA 1
  89. #define FP_FAST_FMAL 1
  90. #endif
  91. /* Symbolic constants to classify floating point numbers. */
  92. #define FP_INFINITE 0x01
  93. #define FP_NAN 0x02
  94. #define FP_NORMAL 0x04
  95. #define FP_SUBNORMAL 0x08
  96. #define FP_ZERO 0x10
  97. #define fpclassify(x) \
  98. ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \
  99. : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
  100. : __fpclassifyl(x))
  101. #define isfinite(x) \
  102. ((sizeof (x) == sizeof (float)) ? __isfinitef(x) \
  103. : (sizeof (x) == sizeof (double)) ? __isfinite(x) \
  104. : __isfinitel(x))
  105. #define isinf(x) \
  106. ((sizeof (x) == sizeof (float)) ? __isinff(x) \
  107. : (sizeof (x) == sizeof (double)) ? isinf(x) \
  108. : __isinfl(x))
  109. #define isnan(x) \
  110. ((sizeof (x) == sizeof (float)) ? __isnanf(x) \
  111. : (sizeof (x) == sizeof (double)) ? isnan(x) \
  112. : __isnanl(x))
  113. #define isnormal(x) \
  114. ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \
  115. : (sizeof (x) == sizeof (double)) ? __isnormal(x) \
  116. : __isnormall(x))
  117. #ifdef __MATH_BUILTIN_RELOPS
  118. #define isgreater(x, y) __builtin_isgreater((x), (y))
  119. #define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y))
  120. #define isless(x, y) __builtin_isless((x), (y))
  121. #define islessequal(x, y) __builtin_islessequal((x), (y))
  122. #define islessgreater(x, y) __builtin_islessgreater((x), (y))
  123. #define isunordered(x, y) __builtin_isunordered((x), (y))
  124. #else
  125. #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y))
  126. #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y))
  127. #define isless(x, y) (!isunordered((x), (y)) && (x) < (y))
  128. #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y))
  129. #define islessgreater(x, y) (!isunordered((x), (y)) && \
  130. ((x) > (y) || (y) > (x)))
  131. #define isunordered(x, y) (isnan(x) || isnan(y))
  132. #endif /* __MATH_BUILTIN_RELOPS */
  133. #define signbit(x) \
  134. ((sizeof (x) == sizeof (float)) ? __signbitf(x) \
  135. : (sizeof (x) == sizeof (double)) ? __signbit(x) \
  136. : __signbitl(x))
  137. //VBS
  138. //typedef __double_t double_t;
  139. //typedef __float_t float_t;
  140. #endif /* __ISO_C_VISIBLE >= 1999 */
  141. /*
  142. * XOPEN/SVID
  143. */
  144. #if __BSD_VISIBLE || __XSI_VISIBLE
  145. #define M_E 2.7182818284590452354 /* e */
  146. #define M_LOG2E 1.4426950408889634074 /* log 2e */
  147. #define M_LOG10E 0.43429448190325182765 /* log 10e */
  148. #define M_LN2 0.69314718055994530942 /* log e2 */
  149. #define M_LN10 2.30258509299404568402 /* log e10 */
  150. #define M_PI 3.14159265358979323846 /* pi */
  151. #define M_PI_2 1.57079632679489661923 /* pi/2 */
  152. #define M_PI_4 0.78539816339744830962 /* pi/4 */
  153. #define M_1_PI 0.31830988618379067154 /* 1/pi */
  154. #define M_2_PI 0.63661977236758134308 /* 2/pi */
  155. #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
  156. #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
  157. #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
  158. #define MAXFLOAT ((float)3.40282346638528860e+38)
  159. #ifndef OPENLIBM_ONLY_THREAD_SAFE
  160. extern int signgam;
  161. #endif
  162. #endif /* __BSD_VISIBLE || __XSI_VISIBLE */
  163. #if __BSD_VISIBLE
  164. #if 0
  165. /* Old value from 4.4BSD-Lite openlibm.h; this is probably better. */
  166. #define HUGE HUGE_VAL
  167. #else
  168. #define HUGE MAXFLOAT
  169. #endif
  170. #endif /* __BSD_VISIBLE */
  171. /*
  172. * Most of these functions depend on the rounding mode and have the side
  173. * effect of raising floating-point exceptions, so they are not declared
  174. * as __pure2. In C99, FENV_ACCESS affects the purity of these functions.
  175. */
  176. #if defined(__cplusplus)
  177. extern "C" {
  178. #endif
  179. /* Symbol present when OpenLibm is used. */
  180. int isopenlibm(void);
  181. /*
  182. * ANSI/POSIX
  183. */
  184. OLM_DLLEXPORT int __fpclassifyd(double) __pure2;
  185. OLM_DLLEXPORT int __fpclassifyf(float) __pure2;
  186. OLM_DLLEXPORT int __fpclassifyl(long double) __pure2;
  187. OLM_DLLEXPORT int __isfinitef(float) __pure2;
  188. OLM_DLLEXPORT int __isfinite(double) __pure2;
  189. OLM_DLLEXPORT int __isfinitel(long double) __pure2;
  190. OLM_DLLEXPORT int __isinff(float) __pure2;
  191. OLM_DLLEXPORT int __isinfl(long double) __pure2;
  192. OLM_DLLEXPORT int __isnanf(float) __pure2;
  193. OLM_DLLEXPORT int __isnanl(long double) __pure2;
  194. OLM_DLLEXPORT int __isnormalf(float) __pure2;
  195. OLM_DLLEXPORT int __isnormal(double) __pure2;
  196. OLM_DLLEXPORT int __isnormall(long double) __pure2;
  197. OLM_DLLEXPORT int __signbit(double) __pure2;
  198. OLM_DLLEXPORT int __signbitf(float) __pure2;
  199. OLM_DLLEXPORT int __signbitl(long double) __pure2;
  200. OLM_DLLEXPORT double acos(double);
  201. OLM_DLLEXPORT double asin(double);
  202. OLM_DLLEXPORT double atan(double);
  203. OLM_DLLEXPORT double atan2(double, double);
  204. OLM_DLLEXPORT double cos(double);
  205. OLM_DLLEXPORT double sin(double);
  206. OLM_DLLEXPORT double tan(double);
  207. OLM_DLLEXPORT double cosh(double);
  208. OLM_DLLEXPORT double sinh(double);
  209. OLM_DLLEXPORT double tanh(double);
  210. OLM_DLLEXPORT double exp(double);
  211. OLM_DLLEXPORT double frexp(double, int *); /* fundamentally !__pure2 */
  212. OLM_DLLEXPORT double ldexp(double, int);
  213. OLM_DLLEXPORT double log(double);
  214. OLM_DLLEXPORT double log10(double);
  215. OLM_DLLEXPORT double modf(double, double *); /* fundamentally !__pure2 */
  216. OLM_DLLEXPORT double pow(double, double);
  217. OLM_DLLEXPORT double sqrt(double);
  218. OLM_DLLEXPORT double ceil(double);
  219. OLM_DLLEXPORT double fabs(double) __pure2;
  220. OLM_DLLEXPORT double floor(double);
  221. OLM_DLLEXPORT double fmod(double, double);
  222. /*
  223. * These functions are not in C90.
  224. */
  225. #if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE
  226. OLM_DLLEXPORT double acosh(double);
  227. OLM_DLLEXPORT double asinh(double);
  228. OLM_DLLEXPORT double atanh(double);
  229. OLM_DLLEXPORT double cbrt(double);
  230. OLM_DLLEXPORT double erf(double);
  231. OLM_DLLEXPORT double erfc(double);
  232. OLM_DLLEXPORT double exp2(double);
  233. OLM_DLLEXPORT double expm1(double);
  234. OLM_DLLEXPORT double fma(double, double, double);
  235. OLM_DLLEXPORT double hypot(double, double);
  236. OLM_DLLEXPORT int ilogb(double) __pure2;
  237. OLM_DLLEXPORT int (isinf)(double) __pure2;
  238. OLM_DLLEXPORT int (isnan)(double) __pure2;
  239. OLM_DLLEXPORT double lgamma(double);
  240. OLM_DLLEXPORT long long llrint(double);
  241. OLM_DLLEXPORT long long llround(double);
  242. OLM_DLLEXPORT double log1p(double);
  243. OLM_DLLEXPORT double log2(double);
  244. OLM_DLLEXPORT double logb(double);
  245. OLM_DLLEXPORT long lrint(double);
  246. OLM_DLLEXPORT long lround(double);
  247. OLM_DLLEXPORT double nan(const char *) __pure2;
  248. OLM_DLLEXPORT double nextafter(double, double);
  249. OLM_DLLEXPORT double remainder(double, double);
  250. OLM_DLLEXPORT double remquo(double, double, int *);
  251. OLM_DLLEXPORT double rint(double);
  252. #endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
  253. #if __BSD_VISIBLE || __XSI_VISIBLE
  254. OLM_DLLEXPORT double j0(double);
  255. OLM_DLLEXPORT double j1(double);
  256. OLM_DLLEXPORT double jn(int, double);
  257. OLM_DLLEXPORT double y0(double);
  258. OLM_DLLEXPORT double y1(double);
  259. OLM_DLLEXPORT double yn(int, double);
  260. #endif /* __BSD_VISIBLE || __XSI_VISIBLE */
  261. #if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
  262. OLM_DLLEXPORT double copysign(double, double) __pure2;
  263. OLM_DLLEXPORT double fdim(double, double);
  264. OLM_DLLEXPORT double fmax(double, double) __pure2;
  265. OLM_DLLEXPORT double fmin(double, double) __pure2;
  266. OLM_DLLEXPORT double nearbyint(double);
  267. OLM_DLLEXPORT double round(double);
  268. OLM_DLLEXPORT double scalbln(double, long);
  269. OLM_DLLEXPORT double scalbn(double, int);
  270. OLM_DLLEXPORT double tgamma(double);
  271. OLM_DLLEXPORT double trunc(double);
  272. #endif
  273. /*
  274. * BSD math library entry points
  275. */
  276. #if __BSD_VISIBLE
  277. OLM_DLLEXPORT int isnanf(float) __pure2;
  278. /*
  279. * Reentrant version of lgamma; passes signgam back by reference as the
  280. * second argument; user must allocate space for signgam.
  281. */
  282. OLM_DLLEXPORT double lgamma_r(double, int *);
  283. /*
  284. * Single sine/cosine function.
  285. */
  286. OLM_DLLEXPORT void sincos(double, double *, double *);
  287. #endif /* __BSD_VISIBLE */
  288. /* float versions of ANSI/POSIX functions */
  289. #if __ISO_C_VISIBLE >= 1999
  290. OLM_DLLEXPORT float acosf(float);
  291. OLM_DLLEXPORT float asinf(float);
  292. OLM_DLLEXPORT float atanf(float);
  293. OLM_DLLEXPORT float atan2f(float, float);
  294. OLM_DLLEXPORT float cosf(float);
  295. OLM_DLLEXPORT float sinf(float);
  296. OLM_DLLEXPORT float tanf(float);
  297. OLM_DLLEXPORT float coshf(float);
  298. OLM_DLLEXPORT float sinhf(float);
  299. OLM_DLLEXPORT float tanhf(float);
  300. OLM_DLLEXPORT float exp2f(float);
  301. OLM_DLLEXPORT float expf(float);
  302. OLM_DLLEXPORT float expm1f(float);
  303. OLM_DLLEXPORT float frexpf(float, int *); /* fundamentally !__pure2 */
  304. OLM_DLLEXPORT int ilogbf(float) __pure2;
  305. OLM_DLLEXPORT float ldexpf(float, int);
  306. OLM_DLLEXPORT float log10f(float);
  307. OLM_DLLEXPORT float log1pf(float);
  308. OLM_DLLEXPORT float log2f(float);
  309. OLM_DLLEXPORT float logf(float);
  310. OLM_DLLEXPORT float modff(float, float *); /* fundamentally !__pure2 */
  311. OLM_DLLEXPORT float powf(float, float);
  312. OLM_DLLEXPORT float sqrtf(float);
  313. OLM_DLLEXPORT float ceilf(float);
  314. OLM_DLLEXPORT float fabsf(float) __pure2;
  315. OLM_DLLEXPORT float floorf(float);
  316. OLM_DLLEXPORT float fmodf(float, float);
  317. OLM_DLLEXPORT float roundf(float);
  318. OLM_DLLEXPORT float erff(float);
  319. OLM_DLLEXPORT float erfcf(float);
  320. OLM_DLLEXPORT float hypotf(float, float);
  321. OLM_DLLEXPORT float lgammaf(float);
  322. OLM_DLLEXPORT float tgammaf(float);
  323. OLM_DLLEXPORT float acoshf(float);
  324. OLM_DLLEXPORT float asinhf(float);
  325. OLM_DLLEXPORT float atanhf(float);
  326. OLM_DLLEXPORT float cbrtf(float);
  327. OLM_DLLEXPORT float logbf(float);
  328. OLM_DLLEXPORT float copysignf(float, float) __pure2;
  329. OLM_DLLEXPORT long long llrintf(float);
  330. OLM_DLLEXPORT long long llroundf(float);
  331. OLM_DLLEXPORT long lrintf(float);
  332. OLM_DLLEXPORT long lroundf(float);
  333. OLM_DLLEXPORT float nanf(const char *) __pure2;
  334. OLM_DLLEXPORT float nearbyintf(float);
  335. OLM_DLLEXPORT float nextafterf(float, float);
  336. OLM_DLLEXPORT float remainderf(float, float);
  337. OLM_DLLEXPORT float remquof(float, float, int *);
  338. OLM_DLLEXPORT float rintf(float);
  339. OLM_DLLEXPORT float scalblnf(float, long);
  340. OLM_DLLEXPORT float scalbnf(float, int);
  341. OLM_DLLEXPORT float truncf(float);
  342. OLM_DLLEXPORT float fdimf(float, float);
  343. OLM_DLLEXPORT float fmaf(float, float, float);
  344. OLM_DLLEXPORT float fmaxf(float, float) __pure2;
  345. OLM_DLLEXPORT float fminf(float, float) __pure2;
  346. #endif
  347. /*
  348. * float versions of BSD math library entry points
  349. */
  350. #if __BSD_VISIBLE
  351. OLM_DLLEXPORT float dremf(float, float);
  352. OLM_DLLEXPORT float j0f(float);
  353. OLM_DLLEXPORT float j1f(float);
  354. OLM_DLLEXPORT float jnf(int, float);
  355. OLM_DLLEXPORT float y0f(float);
  356. OLM_DLLEXPORT float y1f(float);
  357. OLM_DLLEXPORT float ynf(int, float);
  358. /*
  359. * Float versions of reentrant version of lgamma; passes signgam back by
  360. * reference as the second argument; user must allocate space for signgam.
  361. */
  362. OLM_DLLEXPORT float lgammaf_r(float, int *);
  363. /*
  364. * Single sine/cosine function.
  365. */
  366. OLM_DLLEXPORT void sincosf(float, float *, float *);
  367. #endif /* __BSD_VISIBLE */
  368. /*
  369. * long double versions of ISO/POSIX math functions
  370. */
  371. #if __ISO_C_VISIBLE >= 1999
  372. OLM_DLLEXPORT long double acoshl(long double);
  373. OLM_DLLEXPORT long double acosl(long double);
  374. OLM_DLLEXPORT long double asinhl(long double);
  375. OLM_DLLEXPORT long double asinl(long double);
  376. OLM_DLLEXPORT long double atan2l(long double, long double);
  377. OLM_DLLEXPORT long double atanhl(long double);
  378. OLM_DLLEXPORT long double atanl(long double);
  379. OLM_DLLEXPORT long double cbrtl(long double);
  380. OLM_DLLEXPORT long double ceill(long double);
  381. OLM_DLLEXPORT long double copysignl(long double, long double) __pure2;
  382. OLM_DLLEXPORT long double coshl(long double);
  383. OLM_DLLEXPORT long double cosl(long double);
  384. OLM_DLLEXPORT long double erfcl(long double);
  385. OLM_DLLEXPORT long double erfl(long double);
  386. OLM_DLLEXPORT long double exp2l(long double);
  387. OLM_DLLEXPORT long double expl(long double);
  388. OLM_DLLEXPORT long double expm1l(long double);
  389. OLM_DLLEXPORT long double fabsl(long double) __pure2;
  390. OLM_DLLEXPORT long double fdiml(long double, long double);
  391. OLM_DLLEXPORT long double floorl(long double);
  392. OLM_DLLEXPORT long double fmal(long double, long double, long double);
  393. OLM_DLLEXPORT long double fmaxl(long double, long double) __pure2;
  394. OLM_DLLEXPORT long double fminl(long double, long double) __pure2;
  395. OLM_DLLEXPORT long double fmodl(long double, long double);
  396. OLM_DLLEXPORT long double frexpl(long double value, int *); /* fundamentally !__pure2 */
  397. OLM_DLLEXPORT long double hypotl(long double, long double);
  398. OLM_DLLEXPORT int ilogbl(long double) __pure2;
  399. OLM_DLLEXPORT long double ldexpl(long double, int);
  400. OLM_DLLEXPORT long double lgammal(long double);
  401. OLM_DLLEXPORT long long llrintl(long double);
  402. OLM_DLLEXPORT long long llroundl(long double);
  403. OLM_DLLEXPORT long double log10l(long double);
  404. OLM_DLLEXPORT long double log1pl(long double);
  405. OLM_DLLEXPORT long double log2l(long double);
  406. OLM_DLLEXPORT long double logbl(long double);
  407. OLM_DLLEXPORT long double logl(long double);
  408. OLM_DLLEXPORT long lrintl(long double);
  409. OLM_DLLEXPORT long lroundl(long double);
  410. OLM_DLLEXPORT long double modfl(long double, long double *); /* fundamentally !__pure2 */
  411. OLM_DLLEXPORT long double nanl(const char *) __pure2;
  412. OLM_DLLEXPORT long double nearbyintl(long double);
  413. OLM_DLLEXPORT long double nextafterl(long double, long double);
  414. OLM_DLLEXPORT double nexttoward(double, long double);
  415. OLM_DLLEXPORT float nexttowardf(float, long double);
  416. OLM_DLLEXPORT long double nexttowardl(long double, long double);
  417. OLM_DLLEXPORT long double powl(long double, long double);
  418. OLM_DLLEXPORT long double remainderl(long double, long double);
  419. OLM_DLLEXPORT long double remquol(long double, long double, int *);
  420. OLM_DLLEXPORT long double rintl(long double);
  421. OLM_DLLEXPORT long double roundl(long double);
  422. OLM_DLLEXPORT long double scalblnl(long double, long);
  423. OLM_DLLEXPORT long double scalbnl(long double, int);
  424. OLM_DLLEXPORT long double sinhl(long double);
  425. OLM_DLLEXPORT long double sinl(long double);
  426. OLM_DLLEXPORT long double sqrtl(long double);
  427. OLM_DLLEXPORT long double tanhl(long double);
  428. OLM_DLLEXPORT long double tanl(long double);
  429. OLM_DLLEXPORT long double tgammal(long double);
  430. OLM_DLLEXPORT long double truncl(long double);
  431. #endif /* __ISO_C_VISIBLE >= 1999 */
  432. /* Reentrant version of lgammal. */
  433. #if __BSD_VISIBLE
  434. OLM_DLLEXPORT long double lgammal_r(long double, int *);
  435. /*
  436. * Single sine/cosine function.
  437. */
  438. OLM_DLLEXPORT void sincosl(long double, long double *, long double *);
  439. #endif /* __BSD_VISIBLE */
  440. #if defined(__cplusplus)
  441. }
  442. #endif
  443. #endif /* !OPENLIBM_MATH_H */
  444. #endif /* OPENLIBM_USE_HOST_MATH_H */