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

📄 tu_math.h

📁 一个开源的Flash 播放器,可以在Windows/Linux 上运行
💻 H
字号:
// tu_math.h	-- Willem Kokke// This source code has been donated to the Public Domain.  Do// whatever you want with it.// platform abstract math.h include file#ifndef TU_MATH_H#define TU_MATH_H#include "base/tu_config.h"#include <math.h>#include <float.h>// OSX doesn't have single precision math functions defined in math.h#ifdef __MACH__    #define sinf sin    #define cosf cos    #define tanf tan    #define asinf asin    #define acosf acos    #define atanf atan    #define atan2f atan2    #define sqrtf sqrt    #define logf log    #define expf exp    #define fabsf fabs    #define powf pow#endif// isfinite() comes with C99; fake version here in case compiler lacks it.#ifndef isfinite#define isfinite(x) (sizeof(x) == sizeof(float) ? isfinitef(x) : isfinited(x))#define isfinitef(x) ((x) >= -FLT_MAX && (x) <= FLT_MAX)	// NAN should fail this, yes?#define isfinited(x) ((x) >= -DBL_MAX && (x) <= DBL_MAX)#endif // not isfinite#endif // TU_MATH_H

⌨️ 快捷键说明

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