| 
            Last change
 on this file since 3425 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
           | 
        
      
      
| Rev | Line |   | 
|---|
| [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] | 12 | if defined(OSF1)
 | 
|---|
 | 13 | define   fexp(x)       expf(x)
 | 
|---|
 | 14 | define   fsqrt(x)      sqrtf(x)
 | 
|---|
 | 15 | define   flog10(x)     log10f(x)
 | 
|---|
 | 16 | define   flog(x)       logf(x)
 | 
|---|
 | 17 | elif !defined(IRIX64)
 | 
|---|
 | 18 | define   fexp(x)     ((float)(exp((double)(x))))
 | 
|---|
 | 19 | define   expf(x)     ((float)(exp((double)(x))))
 | 
|---|
 | 20 | define   fabsf(x)    ((float)(fabs((double)(x))))
 | 
|---|
 | 21 | define   fsqrt(x)    ((float)(sqrt((double)(x))))
 | 
|---|
 | 22 | define   sqrtf(x)    ((float)(sqrt((double)(x))))
 | 
|---|
 | 23 | define   flog10(x)   ((float)(log10((double)(x))))
 | 
|---|
 | 24 | define   log10f(x)   ((float)(log10((double)(x))))
 | 
|---|
 | 25 | define   flog(x)     ((float)(log((double)(x))))
 | 
|---|
 | 26 | define   logf(x)     ((float)(log((double)(x))))
 | 
|---|
 | 27 | define   floorf(x)   ((float) floor((double)(x)))
 | 
|---|
 | 28 | define   ceilf(x)    ((float) ceil((double)(x)))
 | 
|---|
 | 29 | define   powf(x,y)    ((float) pow((double)(x), (double)(y)))
 | 
|---|
 | 30 | endif
 | 
|---|
| [220] | 31 | 
 | 
|---|
| [2145] | 32 | */
 | 
|---|
| [220] | 33 | 
 | 
|---|
 | 34 | 
 | 
|---|
 | 35 | #endif
 | 
|---|
 | 36 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.