📄 vcl_cmath.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 + -