| Last change
 on this file since 1670 was             234, checked in by ansari, 27 years ago | 
        
          | 
adaptation SGI IRIX64  Reza 13/04/99
 | 
        
          | File size:
            1018 bytes | 
      
      
| Rev | Line |  | 
|---|
| [220] | 1 | /*    Declaration de fonctions math pour float   */ | 
|---|
|  | 2 |  | 
|---|
|  | 3 | #ifndef  FMATH_H_SEEN | 
|---|
|  | 4 | #define  FMATH_H_SEEN | 
|---|
|  | 5 |  | 
|---|
|  | 6 | #include <math.h> | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifdef __cplusplus | 
|---|
|  | 9 | extern "C" { | 
|---|
|  | 10 | #endif | 
|---|
|  | 11 |  | 
|---|
|  | 12 |  | 
|---|
| [234] | 13 | #if defined(OSF1) | 
|---|
| [220] | 14 | #define   fexp(x)       expf(x) | 
|---|
|  | 15 | #define   fsqrt(x)      sqrtf(x) | 
|---|
|  | 16 | #define   flog10(x)     log10f(x) | 
|---|
|  | 17 | #define   flog(x)       logf(x) | 
|---|
| [234] | 18 | #elif !defined(IRIX64) | 
|---|
| [220] | 19 | #define   fexp(x)     ((float)(exp((double)(x)))) | 
|---|
|  | 20 | #define   expf(x)     ((float)(exp((double)(x)))) | 
|---|
|  | 21 | #define   fabsf(x)    ((float)(fabs((double)(x)))) | 
|---|
|  | 22 | #define   fsqrt(x)    ((float)(sqrt((double)(x)))) | 
|---|
|  | 23 | #define   sqrtf(x)    ((float)(sqrt((double)(x)))) | 
|---|
|  | 24 | #define   flog10(x)   ((float)(log10((double)(x)))) | 
|---|
|  | 25 | #define   log10f(x)   ((float)(log10((double)(x)))) | 
|---|
|  | 26 | #define   flog(x)     ((float)(log((double)(x)))) | 
|---|
|  | 27 | #define   logf(x)     ((float)(log((double)(x)))) | 
|---|
|  | 28 | #define   floorf(x)   ((float) floor((double)(x))) | 
|---|
|  | 29 | #define   ceilf(x)    ((float) ceil((double)(x))) | 
|---|
|  | 30 | #define   powf(x,y)    ((float) pow((double)(x), (double)(y))) | 
|---|
|  | 31 | #define   nintf (int) | 
|---|
|  | 32 | #endif | 
|---|
|  | 33 |  | 
|---|
|  | 34 | #ifdef __cplusplus | 
|---|
|  | 35 | } | 
|---|
|  | 36 | #endif | 
|---|
|  | 37 |  | 
|---|
|  | 38 | #endif | 
|---|
|  | 39 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.