rcmath.h

来自「C语言前端编译器,yacc/lex编写,可自行修改代码.」· C头文件 代码 · 共 34 行

H
34
字号
// Copyright 2000 by Robert Dick.
// All rights reserved.

#ifndef R_CMATH_H_
#define R_CMATH_H_

/* Ugly tricks and hacks needed to use part of ISOC99 cmath header on
different platforms.

FIXME: This should go away when ISOC99 is supported correctly.
FIXME: This mess can go away when the compiler supports numeric_limits<>.
FIXME: When numeric limits used, turn off ISOC99 extensions. */

/*###########################################################################*/
#include <cmath>

// Don't use this.
const double R_HUGE_VAL_ = HUGE_VAL;
#undef HUGE_VAL

// Use this.
const double HUGE_VAL = R_HUGE_VAL_;

#ifdef SunOS
extern "C" {
#	include <ieeefp.h>
}
#endif

inline bool isfinite(double x) { return finite(x); }

/*###########################################################################*/
#endif

⌨️ 快捷键说明

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