📄 cgs.h
字号:
#ifndef CGS_H
#define CGS_H
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include "spwtypes.h"
#include "ovector.h"
#include "cgsfilt.h"
#include "cgsnoise.h"
#include "rayleigh_fad.h"
#include "bench_parameters.h"
/*
#include "cgstype.h"
#include "cgsovr.h"
#include "cgsdecl.h"
#include "omatrix.h"
#include "cgsfile.h"
*/
#ifndef NULL
#define NULL 0L
#endif
// Complex data type function declarations
Complex c_add(Complex s_c1, Complex s_c2);
Complex c_sub(Complex s_c1, Complex s_c2);
Complex c_mul(Complex s_c1, Complex s_c2);
Complex c_dvd(Complex s_c1, Complex s_c2);
Complex c_conj(Complex s_c);
Complex c_sqrt(Complex s_v);
double c_mag(Complex s_c);
/*
* Defines for spwExit()
*/
#ifndef SYS_FATAL
#define SYS_FATAL -1
#endif
#ifndef SYS_TERM
#define SYS_TERM 1
#endif
#ifndef SYS_OK
#define SYS_OK 0
#endif
#ifndef SYS_SUSPEND
#define SYS_SUSPEND 2
#endif
#ifndef SYS_DONE
#define SYS_DONE 3
#endif
/*
* Multirate
*/
#define spbBufStart(vp_pin) ((void *) vp_pin)
#define spbBufAdvance(vp_ptr, i_n, vp_pin) (vp_ptr += i_n)
#define spbBufNext(vp_ptr, vp_pin) (vp_ptr++)
#define spbBufPrev(vp_ptr, vp_pin) (vp_ptr--)
#define spbBufNorm(vp_ptr, vp_pin)
/*
* Constants
*/
#ifndef PI
#define PI 3.141592653589793
#endif
#ifndef PI2
#define PI2 6.283185307179586
#endif
double J25(double x);
double J0(double x);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -