00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #if !defined(_FLOAT_FUDGE_H_)
00031 #define _FLOAT_FUDGE_H_
00032
00033 #if defined(__USE_DOUBLE_MATH__)
00034
00035 #if defined(__cplusplus)
00036 extern "C"
00037 {
00038 #endif
00039
00040 static __inline__ float sinf(float x)
00041 {
00042 return (float) sin((double) x);
00043 }
00044
00045 static __inline__ float cosf(float x)
00046 {
00047 return (float) cos((double) x);
00048 }
00049
00050 static __inline__ float tanf(float x)
00051 {
00052 return (float) tan((double) x);
00053 }
00054
00055 static __inline__ float asinf(float x)
00056 {
00057 return (float) asin((double) x);
00058 }
00059
00060 static __inline__ float acosf(float x)
00061 {
00062 return (float) acos((double) x);
00063 }
00064
00065 static __inline__ float atanf(float x)
00066 {
00067 return (float) atan((double) x);
00068 }
00069
00070 static __inline__ float atan2f(float y, float x)
00071 {
00072 return (float) atan2((double) y, (double) x);
00073 }
00074
00075 static __inline__ float ceilf(float x)
00076 {
00077 return (float) ceil((double) x);
00078 }
00079
00080 static __inline__ float floorf(float x)
00081 {
00082 return (float) floor((double) x);
00083 }
00084
00085 static __inline__ float expf(float x)
00086 {
00087 return (float) expf((double) x);
00088 }
00089
00090 static __inline__ float logf(float x)
00091 {
00092 return (float) logf((double) x);
00093 }
00094
00095 static __inline__ float log10f(float x)
00096 {
00097 return (float) log10((double) x);
00098 }
00099
00100 static __inline__ float powf(float x, float y)
00101 {
00102 return (float) pow((double) x, (double) y);
00103 }
00104
00105 static __inline__ int rintf(float x)
00106 {
00107 return (int) rint((double) x);
00108 }
00109
00110 static __inline__ long int lrintf(float x)
00111 {
00112 return (long int) lrint((double) x);
00113 }
00114
00115 #if defined(__cplusplus)
00116 }
00117 #endif
00118
00119 #endif
00120
00121 #endif
00122
00123