global.h
来自「基于DCT的小波变换EZW压缩算法以及毕业设计论文」· C头文件 代码 · 共 35 行
H
35 行
#ifndef _GLOBAL_
#define _GLOBAL_
#include <math.h>
#include "cdib.h"
#include <complex>
#include <stdio.h>
#include <stdlib.h>
/*---------------------------------------------------------------------------*/
// standard #defines
/*---------------------------------------------------------------------------*/
#define TRUE 1
#define FALSE 0
/*---------------------------------------------------------------------------*/
// useful constants
/*---------------------------------------------------------------------------*/
const double Pi = 3.14159265358979;
const double Sqrt2 = sqrt(2.0);
const double Log2 = log(2.0);
/*---------------------------------------------------------------------------*/
// helpful inline functions
/*---------------------------------------------------------------------------*/
inline int log2 (int x)
{
int count = 0;
while (x >>= 1) count++;
return count;
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?