source: Sophya/trunk/SophyaLib/NTools/fmath.h@ 3580

Last change on this file since 3580 was 2145, checked in by ansari, 23 years ago

Suppression des #define pour fonctions float ds fmath.h (fmat.h est devenu vide) + adaptations , Reza 31/7/2002

File size: 1.1 KB
RevLine 
[220]1/* Declaration de fonctions math pour float */
2
3#ifndef FMATH_H_SEEN
4#define FMATH_H_SEEN
5
[2145]6/* float math functions declarations using #define removed
7 to avoid compilation problems - Sophya code modified
8 accordingly -
9 C++ overloaded math functions should be used instead
10 R. Ansari
[220]11
[2145]12if defined(OSF1)
13define fexp(x) expf(x)
14define fsqrt(x) sqrtf(x)
15define flog10(x) log10f(x)
16define flog(x) logf(x)
17elif !defined(IRIX64)
18define fexp(x) ((float)(exp((double)(x))))
19define expf(x) ((float)(exp((double)(x))))
20define fabsf(x) ((float)(fabs((double)(x))))
21define fsqrt(x) ((float)(sqrt((double)(x))))
22define sqrtf(x) ((float)(sqrt((double)(x))))
23define flog10(x) ((float)(log10((double)(x))))
24define log10f(x) ((float)(log10((double)(x))))
25define flog(x) ((float)(log((double)(x))))
26define logf(x) ((float)(log((double)(x))))
27define floorf(x) ((float) floor((double)(x)))
28define ceilf(x) ((float) ceil((double)(x)))
29define powf(x,y) ((float) pow((double)(x), (double)(y)))
30endif
[220]31
[2145]32*/
[220]33
34
35#endif
36
Note: See TracBrowser for help on using the repository browser.