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.

632 lines
20 KiB

  1. /***
  2. *math.h - definitions and declarations for math library
  3. *
  4. * Copyright (c) 1985-2000, 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. /* Definitions of useful mathematical constants
  91. * M_E - e
  92. * M_LOG2E - log2(e)
  93. * M_LOG10E - log10(e)
  94. * M_LN2 - ln(2)
  95. * M_LN10 - ln(10)
  96. * M_PI - pi
  97. * M_PI_2 - pi/2
  98. * M_PI_4 - pi/4
  99. * M_1_PI - 1/pi
  100. * M_2_PI - 2/pi
  101. * M_2_SQRTPI - 2/sqrt(pi)
  102. * M_SQRT2 - sqrt(2)
  103. * M_SQRT1_2 - 1/sqrt(2)
  104. */
  105. #define M_E 2.71828182845904523536
  106. #define M_LOG2E 1.44269504088896340736
  107. #define M_LOG10E 0.434294481903251827651
  108. #define M_LN2 0.693147180559945309417
  109. #define M_LN10 2.30258509299404568402
  110. #define M_PI 3.14159265358979323846
  111. #define M_PI_2 1.57079632679489661923
  112. #define M_PI_4 0.785398163397448309616
  113. #define M_1_PI 0.318309886183790671538
  114. #define M_2_PI 0.636619772367581343076
  115. #define M_2_SQRTPI 1.12837916709551257390
  116. #define M_SQRT2 1.41421356237309504880
  117. #define M_SQRT1_2 0.707106781186547524401
  118. /* Function prototypes */
  119. #if !defined(__assembler) /* Protect from assembler */
  120. #if defined(_M_MRX000)
  121. _CRTIMP int __cdecl abs(int);
  122. _CRTIMP double __cdecl acos(double);
  123. _CRTIMP double __cdecl asin(double);
  124. _CRTIMP double __cdecl atan(double);
  125. _CRTIMP double __cdecl atan2(double, double);
  126. _CRTIMP double __cdecl cos(double);
  127. _CRTIMP double __cdecl cosh(double);
  128. _CRTIMP double __cdecl exp(double);
  129. _CRTIMP double __cdecl fabs(double);
  130. _CRTIMP double __cdecl fmod(double, double);
  131. _CRTIMP long __cdecl labs(long);
  132. _CRTIMP double __cdecl log(double);
  133. _CRTIMP double __cdecl log10(double);
  134. _CRTIMP double __cdecl pow(double, double);
  135. _CRTIMP double __cdecl sin(double);
  136. _CRTIMP double __cdecl sinh(double);
  137. _CRTIMP double __cdecl tan(double);
  138. _CRTIMP double __cdecl tanh(double);
  139. _CRTIMP double __cdecl sqrt(double);
  140. #else
  141. int __cdecl abs(int);
  142. double __cdecl acos(double);
  143. double __cdecl asin(double);
  144. double __cdecl atan(double);
  145. double __cdecl atan2(double, double);
  146. double __cdecl cos(double);
  147. double __cdecl cosh(double);
  148. double __cdecl exp(double);
  149. double __cdecl fabs(double);
  150. double __cdecl fmod(double, double);
  151. long __cdecl labs(long);
  152. double __cdecl log(double);
  153. double __cdecl log10(double);
  154. double __cdecl pow(double, double);
  155. double __cdecl sin(double);
  156. double __cdecl sinh(double);
  157. double __cdecl tan(double);
  158. double __cdecl tanh(double);
  159. double __cdecl sqrt(double);
  160. #endif
  161. _CRTIMP double __cdecl atof(const char *);
  162. _CRTIMP double __cdecl _cabs(struct _complex);
  163. #if defined(_M_ALPHA)
  164. double __cdecl ceil(double);
  165. double __cdecl floor(double);
  166. #else
  167. _CRTIMP double __cdecl ceil(double);
  168. _CRTIMP double __cdecl floor(double);
  169. #endif
  170. _CRTIMP double __cdecl frexp(double, int *);
  171. _CRTIMP double __cdecl _hypot(double, double);
  172. _CRTIMP double __cdecl _j0(double);
  173. _CRTIMP double __cdecl _j1(double);
  174. _CRTIMP double __cdecl _jn(int, double);
  175. _CRTIMP double __cdecl ldexp(double, int);
  176. int __cdecl _matherr(struct _exception *);
  177. _CRTIMP double __cdecl modf(double, double *);
  178. _CRTIMP double __cdecl _y0(double);
  179. _CRTIMP double __cdecl _y1(double);
  180. _CRTIMP double __cdecl _yn(int, double);
  181. #if defined(_M_MRX000)
  182. /* MIPS fast prototypes for float */
  183. /* ANSI C, 4.5 Mathematics */
  184. /* 4.5.2 Trigonometric functions */
  185. _CRTIMP float __cdecl acosf( float );
  186. _CRTIMP float __cdecl asinf( float );
  187. _CRTIMP float __cdecl atanf( float );
  188. _CRTIMP float __cdecl atan2f( float , float );
  189. _CRTIMP float __cdecl cosf( float );
  190. _CRTIMP float __cdecl sinf( float );
  191. _CRTIMP float __cdecl tanf( float );
  192. /* 4.5.3 Hyperbolic functions */
  193. _CRTIMP float __cdecl coshf( float );
  194. _CRTIMP float __cdecl sinhf( float );
  195. _CRTIMP float __cdecl tanhf( float );
  196. /* 4.5.4 Exponential and logarithmic functions */
  197. _CRTIMP float __cdecl expf( float );
  198. _CRTIMP float __cdecl logf( float );
  199. _CRTIMP float __cdecl log10f( float );
  200. _CRTIMP float __cdecl modff( float , float* );
  201. /* 4.5.5 Power functions */
  202. _CRTIMP float __cdecl powf( float , float );
  203. float __cdecl sqrtf( float );
  204. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  205. float __cdecl ceilf( float );
  206. float __cdecl fabsf( float );
  207. float __cdecl floorf( float );
  208. _CRTIMP float __cdecl fmodf( float , float );
  209. _CRTIMP float __cdecl hypotf(float, float);
  210. #endif /* _M_MRX000 */
  211. #if defined(_M_ALPHA)
  212. /* ALPHA fast prototypes for float */
  213. /* ANSI C, 4.5 Mathematics */
  214. /* 4.5.2 Trigonometric functions */
  215. float __cdecl acosf( float );
  216. float __cdecl asinf( float );
  217. float __cdecl atanf( float );
  218. float __cdecl atan2f( float , float );
  219. float __cdecl cosf( float );
  220. float __cdecl sinf( float );
  221. float __cdecl tanf( float );
  222. /* 4.5.3 Hyperbolic functions */
  223. float __cdecl coshf( float );
  224. float __cdecl sinhf( float );
  225. float __cdecl tanhf( float );
  226. /* 4.5.4 Exponential and logarithmic functions */
  227. float __cdecl expf( float );
  228. float __cdecl logf( float );
  229. float __cdecl log10f( float );
  230. _CRTIMP float __cdecl modff( float , float* );
  231. /* 4.5.5 Power functions */
  232. float __cdecl powf( float , float );
  233. float __cdecl sqrtf( float );
  234. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  235. float __cdecl ceilf( float );
  236. float __cdecl fabsf( float );
  237. float __cdecl floorf( float );
  238. float __cdecl fmodf( float , float );
  239. _CRTIMP float __cdecl _hypotf(float, float);
  240. #endif /* _M_ALPHA */
  241. #if defined(_M_IA64)
  242. /* ANSI C, 4.5 Mathematics */
  243. /* 4.5.2 Trigonometric functions */
  244. float __cdecl acosf( float );
  245. float __cdecl asinf( float );
  246. float __cdecl atanf( float );
  247. float __cdecl atan2f( float , float );
  248. float __cdecl cosf( float );
  249. float __cdecl sinf( float );
  250. float __cdecl tanf( float );
  251. /* 4.5.3 Hyperbolic functions */
  252. float __cdecl coshf( float );
  253. float __cdecl sinhf( float );
  254. float __cdecl tanhf( float );
  255. /* 4.5.4 Exponential and logarithmic functions */
  256. float __cdecl expf( float );
  257. float __cdecl logf( float );
  258. float __cdecl log10f( float );
  259. __inline float modff(float _X, float *_Y)
  260. { double _Di, _Df = modf((double)_X, &_Di);
  261. *_Y = (float)_Di;
  262. return ((float)_Df); }
  263. /* 4.5.5 Power functions */
  264. float __cdecl powf( float , float );
  265. float __cdecl sqrtf( float );
  266. /* 4.5.6 Nearest integer, absolute value, and remainder functions */
  267. float __cdecl ceilf( float );
  268. float __cdecl fabsf( float );
  269. float __cdecl floorf( float );
  270. float __cdecl fmodf( float , float );
  271. float __cdecl hypotf(float, float);
  272. #endif /* _M_IA64 */
  273. /* Macros defining long double functions to be their double counterparts
  274. * (long double is synonymous with double in this implementation).
  275. */
  276. #ifndef __cplusplus
  277. #define acosl(x) ((long double)acos((double)(x)))
  278. #define asinl(x) ((long double)asin((double)(x)))
  279. #define atanl(x) ((long double)atan((double)(x)))
  280. #define atan2l(x,y) ((long double)atan2((double)(x), (double)(y)))
  281. #define _cabsl _cabs
  282. #define ceill(x) ((long double)ceil((double)(x)))
  283. #define cosl(x) ((long double)cos((double)(x)))
  284. #define coshl(x) ((long double)cosh((double)(x)))
  285. #define expl(x) ((long double)exp((double)(x)))
  286. #define fabsl(x) ((long double)fabs((double)(x)))
  287. #define floorl(x) ((long double)floor((double)(x)))
  288. #define fmodl(x,y) ((long double)fmod((double)(x), (double)(y)))
  289. #define frexpl(x,y) ((long double)frexp((double)(x), (y)))
  290. #define _hypotl(x,y) ((long double)_hypot((double)(x), (double)(y)))
  291. #define ldexpl(x,y) ((long double)ldexp((double)(x), (y)))
  292. #define logl(x) ((long double)log((double)(x)))
  293. #define log10l(x) ((long double)log10((double)(x)))
  294. #define _matherrl _matherr
  295. #define modfl(x,y) ((long double)modf((double)(x), (double *)(y)))
  296. #define powl(x,y) ((long double)pow((double)(x), (double)(y)))
  297. #define sinl(x) ((long double)sin((double)(x)))
  298. #define sinhl(x) ((long double)sinh((double)(x)))
  299. #define sqrtl(x) ((long double)sqrt((double)(x)))
  300. #define tanl(x) ((long double)tan((double)(x)))
  301. #define tanhl(x) ((long double)tanh((double)(x)))
  302. #else /* __cplusplus */
  303. inline long double acosl(long double _X)
  304. {return (acos((double)_X)); }
  305. inline long double asinl(long double _X)
  306. {return (asin((double)_X)); }
  307. inline long double atanl(long double _X)
  308. {return (atan((double)_X)); }
  309. inline long double atan2l(long double _X, long double _Y)
  310. {return (atan2((double)_X, (double)_Y)); }
  311. inline long double ceill(long double _X)
  312. {return (ceil((double)_X)); }
  313. inline long double cosl(long double _X)
  314. {return (cos((double)_X)); }
  315. inline long double coshl(long double _X)
  316. {return (cosh((double)_X)); }
  317. inline long double expl(long double _X)
  318. {return (exp((double)_X)); }
  319. inline long double fabsl(long double _X)
  320. {return (fabs((double)_X)); }
  321. inline long double floorl(long double _X)
  322. {return (floor((double)_X)); }
  323. inline long double fmodl(long double _X, long double _Y)
  324. {return (fmod((double)_X, (double)_Y)); }
  325. inline long double frexpl(long double _X, int *_Y)
  326. {return (frexp((double)_X, _Y)); }
  327. inline long double ldexpl(long double _X, int _Y)
  328. {return (ldexp((double)_X, _Y)); }
  329. inline long double logl(long double _X)
  330. {return (log((double)_X)); }
  331. inline long double log10l(long double _X)
  332. {return (log10((double)_X)); }
  333. inline long double modfl(long double _X, long double *_Y)
  334. {double _Di, _Df = modf((double)_X, &_Di);
  335. *_Y = (long double)_Di;
  336. return (_Df); }
  337. inline long double powl(long double _X, long double _Y)
  338. {return (pow((double)_X, (double)_Y)); }
  339. inline long double sinl(long double _X)
  340. {return (sin((double)_X)); }
  341. inline long double sinhl(long double _X)
  342. {return (sinh((double)_X)); }
  343. inline long double sqrtl(long double _X)
  344. {return (sqrt((double)_X)); }
  345. inline long double tanl(long double _X)
  346. {return (tan((double)_X)); }
  347. inline long double tanhl(long double _X)
  348. {return (tanh((double)_X)); }
  349. inline float frexpf(float _X, int *_Y)
  350. {return ((float)frexp((double)_X, _Y)); }
  351. inline float ldexpf(float _X, int _Y)
  352. {return ((float)ldexp((double)_X, _Y)); }
  353. #if !defined(_M_MRX000) && !defined(_M_ALPHA) && !defined(_M_IA64)
  354. inline float acosf(float _X)
  355. {return ((float)acos((double)_X)); }
  356. inline float asinf(float _X)
  357. {return ((float)asin((double)_X)); }
  358. inline float atanf(float _X)
  359. {return ((float)atan((double)_X)); }
  360. inline float atan2f(float _X, float _Y)
  361. {return ((float)atan2((double)_X, (double)_Y)); }
  362. inline float ceilf(float _X)
  363. {return ((float)ceil((double)_X)); }
  364. inline float cosf(float _X)
  365. {return ((float)cos((double)_X)); }
  366. inline float coshf(float _X)
  367. {return ((float)cosh((double)_X)); }
  368. inline float expf(float _X)
  369. {return ((float)exp((double)_X)); }
  370. inline float fabsf(float _X)
  371. {return ((float)fabs((double)_X)); }
  372. inline float floorf(float _X)
  373. {return ((float)floor((double)_X)); }
  374. inline float fmodf(float _X, float _Y)
  375. {return ((float)fmod((double)_X, (double)_Y)); }
  376. inline float logf(float _X)
  377. {return ((float)log((double)_X)); }
  378. inline float log10f(float _X)
  379. {return ((float)log10((double)_X)); }
  380. inline float modff(float _X, float *_Y)
  381. { double _Di, _Df = modf((double)_X, &_Di);
  382. *_Y = (float)_Di;
  383. return ((float)_Df); }
  384. inline float powf(float _X, float _Y)
  385. {return ((float)pow((double)_X, (double)_Y)); }
  386. inline float sinf(float _X)
  387. {return ((float)sin((double)_X)); }
  388. inline float sinhf(float _X)
  389. {return ((float)sinh((double)_X)); }
  390. inline float sqrtf(float _X)
  391. {return ((float)sqrt((double)_X)); }
  392. inline float tanf(float _X)
  393. {return ((float)tan((double)_X)); }
  394. inline float tanhf(float _X)
  395. {return ((float)tanh((double)_X)); }
  396. #endif /* !defined(_M_MRX000) && !defined(_M_ALPHA) && !defined(_M_IA64) */
  397. #endif /* __cplusplus */
  398. #endif /* __assembler */
  399. #if !__STDC__
  400. /* Non-ANSI names for compatibility */
  401. #define DOMAIN _DOMAIN
  402. #define SING _SING
  403. #define OVERFLOW _OVERFLOW
  404. #define UNDERFLOW _UNDERFLOW
  405. #define TLOSS _TLOSS
  406. #define PLOSS _PLOSS
  407. #define matherr _matherr
  408. #ifndef __assembler /* Protect from assembler */
  409. _CRTIMP extern double HUGE;
  410. _CRTIMP double __cdecl cabs(struct _complex);
  411. _CRTIMP double __cdecl hypot(double, double);
  412. _CRTIMP double __cdecl j0(double);
  413. _CRTIMP double __cdecl j1(double);
  414. _CRTIMP double __cdecl jn(int, double);
  415. int __cdecl matherr(struct _exception *);
  416. _CRTIMP double __cdecl y0(double);
  417. _CRTIMP double __cdecl y1(double);
  418. _CRTIMP double __cdecl yn(int, double);
  419. #endif /* __assembler */
  420. #endif /* __STDC__ */
  421. #ifdef __cplusplus
  422. }
  423. extern "C++" {
  424. template<class _Ty> inline
  425. _Ty _Pow_int(_Ty _X, int _Y)
  426. {unsigned int _N;
  427. if (_Y >= 0)
  428. _N = _Y;
  429. else
  430. _N = -_Y;
  431. for (_Ty _Z = _Ty(1); ; _X *= _X)
  432. {if ((_N & 1) != 0)
  433. _Z *= _X;
  434. if ((_N >>= 1) == 0)
  435. return (_Y < 0 ? _Ty(1) / _Z : _Z); }}
  436. #ifndef _MSC_EXTENSIONS
  437. inline long __cdecl abs(long _X)
  438. {return (labs(_X)); }
  439. inline double __cdecl abs(double _X)
  440. {return (fabs(_X)); }
  441. inline double __cdecl pow(double _X, int _Y)
  442. {return (_Pow_int(_X, _Y)); }
  443. inline double __cdecl pow(int _X, int _Y)
  444. {return (_Pow_int(_X, _Y)); }
  445. inline float __cdecl abs(float _X)
  446. {return (fabsf(_X)); }
  447. inline float __cdecl acos(float _X)
  448. {return (acosf(_X)); }
  449. inline float __cdecl asin(float _X)
  450. {return (asinf(_X)); }
  451. inline float __cdecl atan(float _X)
  452. {return (atanf(_X)); }
  453. inline float __cdecl atan2(float _Y, float _X)
  454. {return (atan2f(_Y, _X)); }
  455. inline float __cdecl ceil(float _X)
  456. {return (ceilf(_X)); }
  457. inline float __cdecl cos(float _X)
  458. {return (cosf(_X)); }
  459. inline float __cdecl cosh(float _X)
  460. {return (coshf(_X)); }
  461. inline float __cdecl exp(float _X)
  462. {return (expf(_X)); }
  463. inline float __cdecl fabs(float _X)
  464. {return (fabsf(_X)); }
  465. inline float __cdecl floor(float _X)
  466. {return (floorf(_X)); }
  467. inline float __cdecl fmod(float _X, float _Y)
  468. {return (fmodf(_X, _Y)); }
  469. inline float __cdecl frexp(float _X, int * _Y)
  470. {return (frexpf(_X, _Y)); }
  471. inline float __cdecl ldexp(float _X, int _Y)
  472. {return (ldexpf(_X, _Y)); }
  473. inline float __cdecl log(float _X)
  474. {return (logf(_X)); }
  475. inline float __cdecl log10(float _X)
  476. {return (log10f(_X)); }
  477. inline float __cdecl modf(float _X, float * _Y)
  478. {return (modff(_X, _Y)); }
  479. inline float __cdecl pow(float _X, float _Y)
  480. {return (powf(_X, _Y)); }
  481. inline float __cdecl pow(float _X, int _Y)
  482. {return (_Pow_int(_X, _Y)); }
  483. inline float __cdecl sin(float _X)
  484. {return (sinf(_X)); }
  485. inline float __cdecl sinh(float _X)
  486. {return (sinhf(_X)); }
  487. inline float __cdecl sqrt(float _X)
  488. {return (sqrtf(_X)); }
  489. inline float __cdecl tan(float _X)
  490. {return (tanf(_X)); }
  491. inline float __cdecl tanh(float _X)
  492. {return (tanhf(_X)); }
  493. inline long double __cdecl abs(long double _X)
  494. {return (fabsl(_X)); }
  495. inline long double __cdecl acos(long double _X)
  496. {return (acosl(_X)); }
  497. inline long double __cdecl asin(long double _X)
  498. {return (asinl(_X)); }
  499. inline long double __cdecl atan(long double _X)
  500. {return (atanl(_X)); }
  501. inline long double __cdecl atan2(long double _Y, long double _X)
  502. {return (atan2l(_Y, _X)); }
  503. inline long double __cdecl ceil(long double _X)
  504. {return (ceill(_X)); }
  505. inline long double __cdecl cos(long double _X)
  506. {return (cosl(_X)); }
  507. inline long double __cdecl cosh(long double _X)
  508. {return (coshl(_X)); }
  509. inline long double __cdecl exp(long double _X)
  510. {return (expl(_X)); }
  511. inline long double __cdecl fabs(long double _X)
  512. {return (fabsl(_X)); }
  513. inline long double __cdecl floor(long double _X)
  514. {return (floorl(_X)); }
  515. inline long double __cdecl fmod(long double _X, long double _Y)
  516. {return (fmodl(_X, _Y)); }
  517. inline long double __cdecl frexp(long double _X, int * _Y)
  518. {return (frexpl(_X, _Y)); }
  519. inline long double __cdecl ldexp(long double _X, int _Y)
  520. {return (ldexpl(_X, _Y)); }
  521. inline long double __cdecl log(long double _X)
  522. {return (logl(_X)); }
  523. inline long double __cdecl log10(long double _X)
  524. {return (log10l(_X)); }
  525. inline long double __cdecl modf(long double _X, long double * _Y)
  526. {return (modfl(_X, _Y)); }
  527. inline long double __cdecl pow(long double _X, long double _Y)
  528. {return (powl(_X, _Y)); }
  529. inline long double __cdecl pow(long double _X, int _Y)
  530. {return (_Pow_int(_X, _Y)); }
  531. inline long double __cdecl sin(long double _X)
  532. {return (sinl(_X)); }
  533. inline long double __cdecl sinh(long double _X)
  534. {return (sinhl(_X)); }
  535. inline long double __cdecl sqrt(long double _X)
  536. {return (sqrtl(_X)); }
  537. inline long double __cdecl tan(long double _X)
  538. {return (tanl(_X)); }
  539. inline long double __cdecl tanh(long double _X)
  540. {return (tanhl(_X)); }
  541. #endif /* _MSC_EXTENSIONS */
  542. }
  543. #endif /* __cplusplus */
  544. #ifdef _MSC_VER
  545. #pragma pack(pop)
  546. #endif /* _MSC_VER */
  547. #endif /* _INC_MATH */