Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

644 lines
20 KiB

  1. /***
  2. *math.h - definitions and declarations for math library
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains constant definitions and external subroutine
  8. * declarations for the math subroutine library.
  9. * [ANSI/System V]
  10. *
  11. * [Public]
  12. *
  13. ****/
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif
  17. #ifndef _INC_MATH
  18. #define _INC_MATH
  19. #if !defined(_WIN32)
  20. #error ERROR: Only Win32 target supported!
  21. #endif
  22. #ifdef _MSC_VER
  23. /*
  24. * Currently, all MS C compilers for Win32 platforms default to 8 byte
  25. * alignment.
  26. */
  27. #pragma pack(push,8)
  28. #endif /* _MSC_VER */
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. #ifndef __assembler /* Protect from assembler */
  33. /* Define _CRTIMP */
  34. #ifndef _CRTIMP
  35. #ifdef _DLL
  36. #define _CRTIMP __declspec(dllimport)
  37. #else /* ndef _DLL */
  38. #define _CRTIMP
  39. #endif /* _DLL */
  40. #endif /* _CRTIMP */
  41. /* Define __cdecl for non-Microsoft compilers */
  42. #if ( !defined(_MSC_VER) && !defined(__cdecl) )
  43. #define __cdecl
  44. #endif
  45. /* Definition of _exception struct - this struct is passed to the matherr
  46. * routine when a floating point exception is detected
  47. */
  48. #ifndef _EXCEPTION_DEFINED
  49. struct _exception {
  50. int type; /* exception type - see below */
  51. char *name; /* name of function where error occured */
  52. double arg1; /* first argument to function */
  53. double arg2; /* second argument (if any) to function */
  54. double retval; /* value to be returned by function */
  55. } ;
  56. #define _EXCEPTION_DEFINED
  57. #endif
  58. /* Definition of a _complex struct to be used by those who use cabs and
  59. * want type checking on their argument
  60. */
  61. #ifndef _COMPLEX_DEFINED
  62. struct _complex {
  63. double x,y; /* real and imaginary parts */
  64. } ;
  65. #if !__STDC__ && !defined (__cplusplus)
  66. /* Non-ANSI name for compatibility */
  67. #define complex _complex
  68. #endif
  69. #define _COMPLEX_DEFINED
  70. #endif
  71. #endif /* __assembler */
  72. /* Constant definitions for the exception type passed in the _exception struct
  73. */
  74. #define _DOMAIN 1 /* argument domain error */
  75. #define _SING 2 /* argument singularity */
  76. #define _OVERFLOW 3 /* overflow range error */
  77. #define _UNDERFLOW 4 /* underflow range error */
  78. #define _TLOSS 5 /* total loss of precision */
  79. #define _PLOSS 6 /* partial loss of precision */
  80. #define EDOM 33
  81. #define ERANGE 34
  82. /* Definitions of _HUGE and HUGE_VAL - respectively the XENIX and ANSI names
  83. * for a value returned in case of error by a number of the floating point
  84. * math routines
  85. */
  86. #ifndef __assembler /* Protect from assembler */
  87. _CRTIMP extern double _HUGE;
  88. #endif /* __assembler */
  89. #define HUGE_VAL _HUGE
  90. #ifdef _USE_MATH_DEFINES
  91. /* Define _USE_MATH_DEFINES before including math.h to expose these macro
  92. * definitions for common math constants. These are placed under an #ifdef
  93. * since these commonly-defined names are not part of the C/C++ standards.
  94. */
  95. /* Definitions of useful mathematical constants
  96. * M_E - e
  97. * M_LOG2E - log2(e)
  98. * M_LOG10E - log10(e)
  99. * M_LN2 - ln(2)
  100. * M_LN10 - ln(10)
  101. * M_PI - pi
  102. * M_PI_2 - pi/2
  103. * M_PI_4 - pi/4
  104. * M_1_PI - 1/pi
  105. * M_2_PI - 2/pi
  106. * M_2_SQRTPI - 2/sqrt(pi)
  107. * M_SQRT2 - sqrt(2)
  108. * M_SQRT1_2 - 1/sqrt(2)
  109. */
  110. #define M_E 2.71828182845904523536
  111. #define M_LOG2E 1.44269504088896340736
  112. #define M_LOG10E 0.434294481903251827651
  113. #define M_LN2 0.693147180559945309417
  114. #define M_LN10 2.30258509299404568402
  115. #define M_PI 3.14159265358979323846
  116. #define M_PI_2 1.57079632679489661923
  117. #define M_PI_4 0.785398163397448309616
  118. #define M_1_PI 0.318309886183790671538
  119. #define M_2_PI 0.636619772367581343076
  120. #define M_2_SQRTPI 1.12837916709551257390
  121. #define M_SQRT2 1.41421356237309504880
  122. #define M_SQRT1_2 0.707106781186547524401
  123. #endif /* _USE_MATH_DEFINES */
  124. /* Function prototypes */
  125. #if !defined(__assembler) /* Protect from assembler */
  126. #if defined(_M_MRX000)
  127. _CRTIMP int __cdecl abs(int);
  128. _CRTIMP double __cdecl acos(double);
  129. _CRTIMP double __cdecl asin(double);
  130. _CRTIMP double __cdecl atan(double);
  131. _CRTIMP double __cdecl atan2(double, double);
  132. _CRTIMP double __cdecl cos(double);
  133. _CRTIMP double __cdecl cosh(double);
  134. _CRTIMP double __cdecl exp(double);
  135. _CRTIMP double __cdecl fabs(double);
  136. _CRTIMP double __cdecl fmod(double, double);
  137. _CRTIMP long __cdecl labs(long);
  138. _CRTIMP double __cdecl log(double);
  139. _CRTIMP double __cdecl log10(double);
  140. _CRTIMP double __cdecl pow(double, double);
  141. _CRTIMP double __cdecl sin(double);
  142. _CRTIMP double __cdecl sinh(double);
  143. _CRTIMP double __cdecl tan(double);
  144. _CRTIMP double __cdecl tanh(double);
  145. _CRTIMP double __cdecl sqrt(double);
  146. #else
  147. int __cdecl abs(int);
  148. double __cdecl acos(double);
  149. double __cdecl asin(double);
  150. double __cdecl atan(double);
  151. double __cdecl atan2(double, double);
  152. double __cdecl cos(double);
  153. double __cdecl cosh(double);
  154. double __cdecl exp(double);
  155. double __cdecl fabs(double);
  156. double __cdecl fmod(double, double);
  157. long __cdecl labs(long);
  158. double __cdecl log(double);
  159. double __cdecl log10(double);
  160. double __cdecl pow(double, double);
  161. double __cdecl sin(double);
  162. double __cdecl sinh(double);
  163. double __cdecl tan(double);
  164. double __cdecl tanh(double);
  165. double __cdecl sqrt(double);
  166. #endif
  167. _CRTIMP double __cdecl atof(const char *);
  168. _CRTIMP double __cdecl _cabs(struct _complex);
  169. #if defined(_M_ALPHA)
  170. double __cdecl ceil(double);
  171. double __cdecl floor(double);
  172. #else
  173. _CRTIMP double __cdecl ceil(double);
  174. _CRTIMP double __cdecl floor(double);
  175. #endif
  176. _CRTIMP double __cdecl frexp(double, int *);
  177. _CRTIMP double __cdecl _hypot(double, double);
  178. _CRTIMP double __cdecl _j0(double);
  179. _CRTIMP double __cdecl _j1(double);
  180. _CRTIMP double __cdecl _jn(int, double);
  181. _CRTIMP double __cdecl ldexp(double, int);
  182. int __cdecl _matherr(struct _exception *);
  183. _CRTIMP double __cdecl modf(double, double *);
  184. _CRTIMP double __cdecl _y0(double);
  185. _CRTIMP double __cdecl _y1(double);
  186. _CRTIMP double __cdecl _yn(int, double);
  187. #if defined(_M_IX86)
  188. _CRTIMP int __cdecl _set_SSE2_enable(int);
  189. #endif
  190. #if defined(_M_MRX000)
  191. /* MIPS fast prototypes for float */
  192. /* ANSI C, 4.5 Mathematics */
  193. /* 4.5.2 Trigonometric functions */
  194. _CRTIMP float __cdecl acosf( float );
  195. _CRTIMP float __cdecl asinf( float );
  196. _CRTIMP float __cdecl atanf( float );
  197. _CRTIMP float __cdecl atan2f( float , float );
  198. _CRTIMP float __cdecl cosf( float );
  199. _CRTIMP float __cdecl sinf( float );
  200. _CRTIMP float __cdecl tanf( float );
  201. /* 4.5.3 Hyperbolic functions */
  202. _CRTIMP float __cdecl coshf( float );
  203. _CRTIMP float __cdecl sinhf( float );
  204. _CRTIMP float __cdecl tanhf( float );
  205. /* 4.5.4 Exponential and logarithmic functions */
  206. _CRTIMP float __cdecl expf( float );
  207. _CRTIMP float __cdecl logf( float );
  208. _CRTIMP float __cdecl log10f( float );
  209. _CRTIMP float __cdecl modff( float , float* );
  210. /* 4.5.5 Power functions */
  211. _CRTIMP float __cdecl powf( float , float );
  212. float __cdecl sqrtf( float );
  213. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  214. float __cdecl ceilf( float );
  215. float __cdecl fabsf( float );
  216. float __cdecl floorf( float );
  217. _CRTIMP float __cdecl fmodf( float , float );
  218. _CRTIMP float __cdecl hypotf(float, float);
  219. #endif /* _M_MRX000 */
  220. #if defined(_M_ALPHA)
  221. /* ALPHA fast prototypes for float */
  222. /* ANSI C, 4.5 Mathematics */
  223. /* 4.5.2 Trigonometric functions */
  224. float __cdecl acosf( float );
  225. float __cdecl asinf( float );
  226. float __cdecl atanf( float );
  227. float __cdecl atan2f( float , float );
  228. float __cdecl cosf( float );
  229. float __cdecl sinf( float );
  230. float __cdecl tanf( float );
  231. /* 4.5.3 Hyperbolic functions */
  232. float __cdecl coshf( float );
  233. float __cdecl sinhf( float );
  234. float __cdecl tanhf( float );
  235. /* 4.5.4 Exponential and logarithmic functions */
  236. float __cdecl expf( float );
  237. float __cdecl logf( float );
  238. float __cdecl log10f( float );
  239. _CRTIMP float __cdecl modff( float , float* );
  240. /* 4.5.5 Power functions */
  241. float __cdecl powf( float , float );
  242. float __cdecl sqrtf( float );
  243. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  244. float __cdecl ceilf( float );
  245. float __cdecl fabsf( float );
  246. float __cdecl floorf( float );
  247. float __cdecl fmodf( float , float );
  248. _CRTIMP float __cdecl _hypotf(float, float);
  249. #endif /* _M_ALPHA */
  250. #if defined(_M_IA64)
  251. /* ANSI C, 4.5 Mathematics */
  252. /* 4.5.2 Trigonometric functions */
  253. float __cdecl acosf( float );
  254. float __cdecl asinf( float );
  255. float __cdecl atanf( float );
  256. float __cdecl atan2f( float , float );
  257. float __cdecl cosf( float );
  258. float __cdecl sinf( float );
  259. float __cdecl tanf( float );
  260. /* 4.5.3 Hyperbolic functions */
  261. float __cdecl coshf( float );
  262. float __cdecl sinhf( float );
  263. float __cdecl tanhf( float );
  264. /* 4.5.4 Exponential and logarithmic functions */
  265. float __cdecl expf( float );
  266. float __cdecl logf( float );
  267. float __cdecl log10f( float );
  268. float __cdecl modff( float , float* );
  269. /* 4.5.5 Power functions */
  270. float __cdecl powf( float , float );
  271. float __cdecl sqrtf( float );
  272. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  273. float __cdecl ceilf( float );
  274. float __cdecl fabsf( float );
  275. float __cdecl floorf( float );
  276. float __cdecl fmodf( float , float );
  277. float __cdecl hypotf(float, float);
  278. #endif /* _M_IA64 */
  279. /* Macros defining long double functions to be their double counterparts
  280. * (long double is synonymous with double in this implementation).
  281. */
  282. #ifndef __cplusplus
  283. #define acosl(x) ((long double)acos((double)(x)))
  284. #define asinl(x) ((long double)asin((double)(x)))
  285. #define atanl(x) ((long double)atan((double)(x)))
  286. #define atan2l(x,y) ((long double)atan2((double)(x), (double)(y)))
  287. #define _cabsl _cabs
  288. #define ceill(x) ((long double)ceil((double)(x)))
  289. #define cosl(x) ((long double)cos((double)(x)))
  290. #define coshl(x) ((long double)cosh((double)(x)))
  291. #define expl(x) ((long double)exp((double)(x)))
  292. #define fabsl(x) ((long double)fabs((double)(x)))
  293. #define floorl(x) ((long double)floor((double)(x)))
  294. #define fmodl(x,y) ((long double)fmod((double)(x), (double)(y)))
  295. #define frexpl(x,y) ((long double)frexp((double)(x), (y)))
  296. #define _hypotl(x,y) ((long double)_hypot((double)(x), (double)(y)))
  297. #define ldexpl(x,y) ((long double)ldexp((double)(x), (y)))
  298. #define logl(x) ((long double)log((double)(x)))
  299. #define log10l(x) ((long double)log10((double)(x)))
  300. #define _matherrl _matherr
  301. #define modfl(x,y) ((long double)modf((double)(x), (double *)(y)))
  302. #define powl(x,y) ((long double)pow((double)(x), (double)(y)))
  303. #define sinl(x) ((long double)sin((double)(x)))
  304. #define sinhl(x) ((long double)sinh((double)(x)))
  305. #define sqrtl(x) ((long double)sqrt((double)(x)))
  306. #define tanl(x) ((long double)tan((double)(x)))
  307. #define tanhl(x) ((long double)tanh((double)(x)))
  308. #else /* __cplusplus */
  309. inline long double acosl(long double _X)
  310. {return (acos((double)_X)); }
  311. inline long double asinl(long double _X)
  312. {return (asin((double)_X)); }
  313. inline long double atanl(long double _X)
  314. {return (atan((double)_X)); }
  315. inline long double atan2l(long double _X, long double _Y)
  316. {return (atan2((double)_X, (double)_Y)); }
  317. inline long double ceill(long double _X)
  318. {return (ceil((double)_X)); }
  319. inline long double cosl(long double _X)
  320. {return (cos((double)_X)); }
  321. inline long double coshl(long double _X)
  322. {return (cosh((double)_X)); }
  323. inline long double expl(long double _X)
  324. {return (exp((double)_X)); }
  325. inline long double fabsl(long double _X)
  326. {return (fabs((double)_X)); }
  327. inline long double floorl(long double _X)
  328. {return (floor((double)_X)); }
  329. inline long double fmodl(long double _X, long double _Y)
  330. {return (fmod((double)_X, (double)_Y)); }
  331. inline long double frexpl(long double _X, int *_Y)
  332. {return (frexp((double)_X, _Y)); }
  333. inline long double ldexpl(long double _X, int _Y)
  334. {return (ldexp((double)_X, _Y)); }
  335. inline long double logl(long double _X)
  336. {return (log((double)_X)); }
  337. inline long double log10l(long double _X)
  338. {return (log10((double)_X)); }
  339. inline long double modfl(long double _X, long double *_Y)
  340. {double _Di, _Df = modf((double)_X, &_Di);
  341. *_Y = (long double)_Di;
  342. return (_Df); }
  343. inline long double powl(long double _X, long double _Y)
  344. {return (pow((double)_X, (double)_Y)); }
  345. inline long double sinl(long double _X)
  346. {return (sin((double)_X)); }
  347. inline long double sinhl(long double _X)
  348. {return (sinh((double)_X)); }
  349. inline long double sqrtl(long double _X)
  350. {return (sqrt((double)_X)); }
  351. inline long double tanl(long double _X)
  352. {return (tan((double)_X)); }
  353. inline long double tanhl(long double _X)
  354. {return (tanh((double)_X)); }
  355. inline float frexpf(float _X, int *_Y)
  356. {return ((float)frexp((double)_X, _Y)); }
  357. inline float ldexpf(float _X, int _Y)
  358. {return ((float)ldexp((double)_X, _Y)); }
  359. #if !defined(_M_MRX000) && !defined(_M_ALPHA) && !defined(_M_IA64)
  360. inline float acosf(float _X)
  361. {return ((float)acos((double)_X)); }
  362. inline float asinf(float _X)
  363. {return ((float)asin((double)_X)); }
  364. inline float atanf(float _X)
  365. {return ((float)atan((double)_X)); }
  366. inline float atan2f(float _X, float _Y)
  367. {return ((float)atan2((double)_X, (double)_Y)); }
  368. inline float ceilf(float _X)
  369. {return ((float)ceil((double)_X)); }
  370. inline float cosf(float _X)
  371. {return ((float)cos((double)_X)); }
  372. inline float coshf(float _X)
  373. {return ((float)cosh((double)_X)); }
  374. inline float expf(float _X)
  375. {return ((float)exp((double)_X)); }
  376. inline float fabsf(float _X)
  377. {return ((float)fabs((double)_X)); }
  378. inline float floorf(float _X)
  379. {return ((float)floor((double)_X)); }
  380. inline float fmodf(float _X, float _Y)
  381. {return ((float)fmod((double)_X, (double)_Y)); }
  382. inline float logf(float _X)
  383. {return ((float)log((double)_X)); }
  384. inline float log10f(float _X)
  385. {return ((float)log10((double)_X)); }
  386. inline float modff(float _X, float *_Y)
  387. { double _Di, _Df = modf((double)_X, &_Di);
  388. *_Y = (float)_Di;
  389. return ((float)_Df); }
  390. inline float powf(float _X, float _Y)
  391. {return ((float)pow((double)_X, (double)_Y)); }
  392. inline float sinf(float _X)
  393. {return ((float)sin((double)_X)); }
  394. inline float sinhf(float _X)
  395. {return ((float)sinh((double)_X)); }
  396. inline float sqrtf(float _X)
  397. {return ((float)sqrt((double)_X)); }
  398. inline float tanf(float _X)
  399. {return ((float)tan((double)_X)); }
  400. inline float tanhf(float _X)
  401. {return ((float)tanh((double)_X)); }
  402. #endif /* !defined(_M_MRX000) && !defined(_M_ALPHA) && !defined(_M_IA64) */
  403. #endif /* __cplusplus */
  404. #endif /* __assembler */
  405. #if !__STDC__
  406. /* Non-ANSI names for compatibility */
  407. #define DOMAIN _DOMAIN
  408. #define SING _SING
  409. #define OVERFLOW _OVERFLOW
  410. #define UNDERFLOW _UNDERFLOW
  411. #define TLOSS _TLOSS
  412. #define PLOSS _PLOSS
  413. #define matherr _matherr
  414. #ifndef __assembler /* Protect from assembler */
  415. _CRTIMP extern double HUGE;
  416. _CRTIMP double __cdecl cabs(struct _complex);
  417. _CRTIMP double __cdecl hypot(double, double);
  418. _CRTIMP double __cdecl j0(double);
  419. _CRTIMP double __cdecl j1(double);
  420. _CRTIMP double __cdecl jn(int, double);
  421. int __cdecl matherr(struct _exception *);
  422. _CRTIMP double __cdecl y0(double);
  423. _CRTIMP double __cdecl y1(double);
  424. _CRTIMP double __cdecl yn(int, double);
  425. #endif /* __assembler */
  426. #endif /* __STDC__ */
  427. #ifdef __cplusplus
  428. }
  429. extern "C++" {
  430. template<class _Ty> inline
  431. _Ty _Pow_int(_Ty _X, int _Y)
  432. {unsigned int _N;
  433. if (_Y >= 0)
  434. _N = _Y;
  435. else
  436. _N = -_Y;
  437. for (_Ty _Z = _Ty(1); ; _X *= _X)
  438. {if ((_N & 1) != 0)
  439. _Z *= _X;
  440. if ((_N >>= 1) == 0)
  441. return (_Y < 0 ? _Ty(1) / _Z : _Z); }}
  442. #ifndef _MSC_EXTENSIONS
  443. inline long __cdecl abs(long _X)
  444. {return (labs(_X)); }
  445. inline double __cdecl abs(double _X)
  446. {return (fabs(_X)); }
  447. inline double __cdecl pow(double _X, int _Y)
  448. {return (_Pow_int(_X, _Y)); }
  449. inline double __cdecl pow(int _X, int _Y)
  450. {return (_Pow_int(_X, _Y)); }
  451. inline float __cdecl abs(float _X)
  452. {return (fabsf(_X)); }
  453. inline float __cdecl acos(float _X)
  454. {return (acosf(_X)); }
  455. inline float __cdecl asin(float _X)
  456. {return (asinf(_X)); }
  457. inline float __cdecl atan(float _X)
  458. {return (atanf(_X)); }
  459. inline float __cdecl atan2(float _Y, float _X)
  460. {return (atan2f(_Y, _X)); }
  461. inline float __cdecl ceil(float _X)
  462. {return (ceilf(_X)); }
  463. inline float __cdecl cos(float _X)
  464. {return (cosf(_X)); }
  465. inline float __cdecl cosh(float _X)
  466. {return (coshf(_X)); }
  467. inline float __cdecl exp(float _X)
  468. {return (expf(_X)); }
  469. inline float __cdecl fabs(float _X)
  470. {return (fabsf(_X)); }
  471. inline float __cdecl floor(float _X)
  472. {return (floorf(_X)); }
  473. inline float __cdecl fmod(float _X, float _Y)
  474. {return (fmodf(_X, _Y)); }
  475. inline float __cdecl frexp(float _X, int * _Y)
  476. {return (frexpf(_X, _Y)); }
  477. inline float __cdecl ldexp(float _X, int _Y)
  478. {return (ldexpf(_X, _Y)); }
  479. inline float __cdecl log(float _X)
  480. {return (logf(_X)); }
  481. inline float __cdecl log10(float _X)
  482. {return (log10f(_X)); }
  483. inline float __cdecl modf(float _X, float * _Y)
  484. {return (modff(_X, _Y)); }
  485. inline float __cdecl pow(float _X, float _Y)
  486. {return (powf(_X, _Y)); }
  487. inline float __cdecl pow(float _X, int _Y)
  488. {return (_Pow_int(_X, _Y)); }
  489. inline float __cdecl sin(float _X)
  490. {return (sinf(_X)); }
  491. inline float __cdecl sinh(float _X)
  492. {return (sinhf(_X)); }
  493. inline float __cdecl sqrt(float _X)
  494. {return (sqrtf(_X)); }
  495. inline float __cdecl tan(float _X)
  496. {return (tanf(_X)); }
  497. inline float __cdecl tanh(float _X)
  498. {return (tanhf(_X)); }
  499. inline long double __cdecl abs(long double _X)
  500. {return (fabsl(_X)); }
  501. inline long double __cdecl acos(long double _X)
  502. {return (acosl(_X)); }
  503. inline long double __cdecl asin(long double _X)
  504. {return (asinl(_X)); }
  505. inline long double __cdecl atan(long double _X)
  506. {return (atanl(_X)); }
  507. inline long double __cdecl atan2(long double _Y, long double _X)
  508. {return (atan2l(_Y, _X)); }
  509. inline long double __cdecl ceil(long double _X)
  510. {return (ceill(_X)); }
  511. inline long double __cdecl cos(long double _X)
  512. {return (cosl(_X)); }
  513. inline long double __cdecl cosh(long double _X)
  514. {return (coshl(_X)); }
  515. inline long double __cdecl exp(long double _X)
  516. {return (expl(_X)); }
  517. inline long double __cdecl fabs(long double _X)
  518. {return (fabsl(_X)); }
  519. inline long double __cdecl floor(long double _X)
  520. {return (floorl(_X)); }
  521. inline long double __cdecl fmod(long double _X, long double _Y)
  522. {return (fmodl(_X, _Y)); }
  523. inline long double __cdecl frexp(long double _X, int * _Y)
  524. {return (frexpl(_X, _Y)); }
  525. inline long double __cdecl ldexp(long double _X, int _Y)
  526. {return (ldexpl(_X, _Y)); }
  527. inline long double __cdecl log(long double _X)
  528. {return (logl(_X)); }
  529. inline long double __cdecl log10(long double _X)
  530. {return (log10l(_X)); }
  531. inline long double __cdecl modf(long double _X, long double * _Y)
  532. {return (modfl(_X, _Y)); }
  533. inline long double __cdecl pow(long double _X, long double _Y)
  534. {return (powl(_X, _Y)); }
  535. inline long double __cdecl pow(long double _X, int _Y)
  536. {return (_Pow_int(_X, _Y)); }
  537. inline long double __cdecl sin(long double _X)
  538. {return (sinl(_X)); }
  539. inline long double __cdecl sinh(long double _X)
  540. {return (sinhl(_X)); }
  541. inline long double __cdecl sqrt(long double _X)
  542. {return (sqrtl(_X)); }
  543. inline long double __cdecl tan(long double _X)
  544. {return (tanl(_X)); }
  545. inline long double __cdecl tanh(long double _X)
  546. {return (tanhl(_X)); }
  547. #endif /* _MSC_EXTENSIONS */
  548. }
  549. #endif /* __cplusplus */
  550. #ifdef _MSC_VER
  551. #pragma pack(pop)
  552. #endif /* _MSC_VER */
  553. #endif /* _INC_MATH */