tgmath.h
来自「传真通信V27 V29 V17 T38解调与解码」· C头文件 代码 · 共 85 行
H
85 行
/* * SpanDSP - a series of DSP components for telephony * * tgmath.h - a fudge for MSVC, which lacks this header * * Written by Steve Underwood <steveu@coppice.org> * * Copyright (C) 2006 Michael Jerris * * * This file is released in the public domain. * */#if !defined(_TGMATH_H_)#define _TGMATH_H_#include <math.h>#if !defined(M_PI)/* C99 systems may not define M_PI */#define M_PI 3.14159265358979323846264338327#endif#ifdef __cplusplusextern "C" {#endif/* A kindofa rint() for VC++ (only kindofa, because rint should be type generic, and this one is purely float to int */static inline long int lrintf(float a){ long int i; __asm { fld a fistp i } return i;}static inline long int lrint(double a){ long int i; __asm { fld a fistp i } return i;}static inline int rintf(float a){ int i; __asm { fld a fistp i } return i;}static inline int rint(double a){ int i; __asm { fld a fistp i } return i;}#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?