lookup.h

来自「This a framework to test new ideas in tr」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef LOOKUP_H__#define LOOKUP_H__// Put OPTIMIZE to 0 to use the original math functions#define OPTIMIZE 1//#define T 160#define T 1200#define TA 4095#define MAX_VALUE 10/* If OPTIMIZE is defined, the lookup-functions are used, else the original * functions are used. * This function is used to restrict the input values which are in doubles * to a MAX specified by the int */double restrict(double,int);#if OPTIMIZE// Lookup-table functions for log and exp.short int lookup_tanh( int x );short int lookup_atanh( int x );void lookup_init();void lookup_exit();#else#include <math.h>#define lookup_init() {}#define lookup_exit() {}#define lookup_tanh tanh#define lookup_atanh() atanh#endif#endif

⌨️ 快捷键说明

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