⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcl_cmath.h

📁 InsightToolkit-1.4.0(有大量的优化算法程序)
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -