/*=====================================Abs=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Abs, float x)
+FCIMPL1_V(float, COMSingle::Abs, float x)
FCALL_CONTRACT;
return (float)fabsf(x);
/*=====================================Acos=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Acos, float x)
+FCIMPL1_V(float, COMSingle::Acos, float x)
FCALL_CONTRACT;
return (float)acosf(x);
/*=====================================Asin=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Asin, float x)
+FCIMPL1_V(float, COMSingle::Asin, float x)
FCALL_CONTRACT;
return (float)asinf(x);
/*=====================================Atan=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Atan, float x)
+FCIMPL1_V(float, COMSingle::Atan, float x)
FCALL_CONTRACT;
return (float)atanf(x);
/*=====================================Atan2====================================
**
==============================================================================*/
-FCIMPL2(float, COMSingle::Atan2, float y, float x)
+FCIMPL2_VV(float, COMSingle::Atan2, float y, float x)
FCALL_CONTRACT;
// atan2f(+/-INFINITY, +/-INFINITY) produces +/-0.785398163f (x is +INFINITY) and
/*====================================Ceil======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Ceil, float x)
+FCIMPL1_V(float, COMSingle::Ceil, float x)
FCALL_CONTRACT;
return (float)ceilf(x);
/*=====================================Cos======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Cos, float x)
+FCIMPL1_V(float, COMSingle::Cos, float x)
FCALL_CONTRACT;
return (float)cosf(x);
/*=====================================Cosh=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Cosh, float x)
+FCIMPL1_V(float, COMSingle::Cosh, float x)
FCALL_CONTRACT;
return (float)coshf(x);
/*=====================================Exp======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Exp, float x)
+FCIMPL1_V(float, COMSingle::Exp, float x)
FCALL_CONTRACT;
return (float)expf(x);
/*====================================Floor=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Floor, float x)
+FCIMPL1_V(float, COMSingle::Floor, float x)
FCALL_CONTRACT;
return (float)floorf(x);
/*=====================================Log======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Log, float x)
+FCIMPL1_V(float, COMSingle::Log, float x)
FCALL_CONTRACT;
return (float)logf(x);
/*====================================Log10=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Log10, float x)
+FCIMPL1_V(float, COMSingle::Log10, float x)
FCALL_CONTRACT;
return (float)log10f(x);
/*=====================================Pow======================================
**
==============================================================================*/
-FCIMPL2(float, COMSingle::Pow, float x, float y)
+FCIMPL2_VV(float, COMSingle::Pow, float x, float y)
FCALL_CONTRACT;
// The CRT version of pow preserves the NaN payload of x over the NaN payload of y.
/*====================================Round=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Round, float x)
+FCIMPL1_V(float, COMSingle::Round, float x)
FCALL_CONTRACT;
// If the number has no fractional part do nothing
/*=====================================Sin======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Sin, float x)
+FCIMPL1_V(float, COMSingle::Sin, float x)
FCALL_CONTRACT;
return (float)sinf(x);
/*=====================================Sinh=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Sinh, float x)
+FCIMPL1_V(float, COMSingle::Sinh, float x)
FCALL_CONTRACT;
return (float)sinhf(x);
/*=====================================Sqrt=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Sqrt, float x)
+FCIMPL1_V(float, COMSingle::Sqrt, float x)
FCALL_CONTRACT;
return (float)sqrtf(x);
/*=====================================Tan======================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Tan, float x)
+FCIMPL1_V(float, COMSingle::Tan, float x)
FCALL_CONTRACT;
return (float)tanf(x);
/*=====================================Tanh=====================================
**
==============================================================================*/
-FCIMPL1(float, COMSingle::Tanh, float x)
+FCIMPL1_V(float, COMSingle::Tanh, float x)
FCALL_CONTRACT;
return (float)tanhf(x);
class COMSingle {
public:
- FCDECL1(static float, Abs, float x);
- FCDECL1(static float, Acos, float x);
- FCDECL1(static float, Asin, float x);
- FCDECL1(static float, Atan, float x);
- FCDECL2(static float, Atan2, float y, float x);
- FCDECL1(static float, Ceil, float x);
- FCDECL1(static float, Cos, float x);
- FCDECL1(static float, Cosh, float x);
- FCDECL1(static float, Exp, float x);
- FCDECL1(static float, Floor, float x);
- FCDECL1(static float, Log, float x);
- FCDECL1(static float, Log10, float x);
+ FCDECL1_V(static float, Abs, float x);
+ FCDECL1_V(static float, Acos, float x);
+ FCDECL1_V(static float, Asin, float x);
+ FCDECL1_V(static float, Atan, float x);
+ FCDECL2_VV(static float, Atan2, float y, float x);
+ FCDECL1_V(static float, Ceil, float x);
+ FCDECL1_V(static float, Cos, float x);
+ FCDECL1_V(static float, Cosh, float x);
+ FCDECL1_V(static float, Exp, float x);
+ FCDECL1_V(static float, Floor, float x);
+ FCDECL1_V(static float, Log, float x);
+ FCDECL1_V(static float, Log10, float x);
FCDECL1(static float, ModF, float* iptr);
- FCDECL2(static float, Pow, float x, float y);
- FCDECL1(static float, Round, float x);
- FCDECL1(static float, Sin, float x);
- FCDECL1(static float, Sinh, float x);
- FCDECL1(static float, Sqrt, float x);
- FCDECL1(static float, Tan, float x);
- FCDECL1(static float, Tanh, float x);
+ FCDECL2_VV(static float, Pow, float x, float y);
+ FCDECL1_V(static float, Round, float x);
+ FCDECL1_V(static float, Sin, float x);
+ FCDECL1_V(static float, Sinh, float x);
+ FCDECL1_V(static float, Sqrt, float x);
+ FCDECL1_V(static float, Tan, float x);
+ FCDECL1_V(static float, Tanh, float x);
};
#endif // _FLOATSINGLE_H_