vcl_cmath.h

来自「InsightToolkit-1.4.0(有大量的优化算法程序)」· C头文件 代码 · 共 21 行

H
21
字号
#ifndef vcl_sunpro_cmath_h_
#define vcl_sunpro_cmath_h_

// include system header
#include "../iso/vcl_cmath.h"

//fix system header.
#if defined(VCL_SUNPRO_CC_50)
//Conflicts with <cstdio>:
// # include <math.h> // for the HUGE_VAL macro.
# undef M_PI_4     // avoid redef. it's non-iso anyway.
#endif

#undef  vcl_abs
#define vcl_abs vcl_abs
inline float       vcl_abs(float       x) { return x >= 0.0f ? x : -x; }
inline double      vcl_abs(double      x) { return x >= 0.0  ? x : -x; }
inline long double vcl_abs(long double x) { return x >= 0.0  ? x : -x; }

#endif // vcl_cmath_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?