openlibm_math.h 16 KB

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