[問題] define func(x)
#ifndef RR_H
#define RR_H
#include<stdio.h>
#define move(c)
#define SQRT(c)#
define TRANS(c)#
define FUNC(c)#
#endif
怎麼 #define func(x)___________
↑
後面都沒有接條件式
然後在它諸多的.cpp中都直接以 " MOVE(1) "
MOVE(3)
之類的方式在使用?
指針?
會指到哪裡?
有好幾同一個CPP檔案下的MOVE(1) 後面所描述/*point to________ */ 都不一樣
這是@@?
有請高手指點
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.37.17.164
推
03/30 05:32, , 1F
03/30 05:32, 1F
#include <math.h>
#include <string.h>
#include "cfftn.h"#
include "rr.h"
/* the 3GPP instrumenting tool */
#define MAX_FACTORS 23
#define MAX_PERM 209
#define NFACTOR 11
#ifndef M_PI#define M_PI 3.14159265358979323846264338327950288
#endif
#define SIN60 0.86602540378443865
#define COS72 0.30901699437494742
#define SIN72 0.95105651629515357
int cfftn(float Re[],loat Im[], int nTotal,int nPass,int nSpan, int iSign){
int ii,mfactor, kspan, ispan, inc;
int j, jc, jf, jj, k, k1, k2, k3=0, k4, kk, kt, nn, ns, nt;
double radf; double c1, c2=0.0, c3=0.0, cd; double s1,
s2=0.0, s3=0.0, sd; float ak,bk,akp,bkp,ajp,bjp,ajm,
bjm,akm,bkm,aj,bj,aa,bb;
float Rtmp[MAX_FACTORS];
float Itmp[MAX_FACTORS];
double Cos[MAX_FACTORS];
double Sin[MAX_FACTORS];
int Perm[MAX_PERM];
int factor [NFACTOR];
double s60 = SIN60;
double c72 = COS72;
double s72 = SIN72;
double pi2 = M_PI;
COUNT_sub_start("cfftn");
PTR_INIT(6); /* pointer for Rtmp[], Itmp[], Cos[],
Sin[], Perm[],factor[] */
ADD(2);
Re--;
Im--;
ADD(1);
BRANCH(1);
if (nPass < 2) { COUNT_sub_end(); return 0; }
MOVE(1);
inc = iSign;
BRANCH(1);
if( iSign < 0 ) { MULT(4); s72 = -s72; s60 = -s60; pi2 = -pi2;
inc = -inc; }
.......................
..........................
...............................
類似像這樣的後面還有很多....不太懂他的意涵
※ 編輯: wowrz 來自: 114.37.17.164 (03/30 06:16)
→
03/30 09:32, , 2F
03/30 09:32, 2F
推
03/30 09:48, , 3F
03/30 09:48, 3F
→
03/30 12:35, , 4F
03/30 12:35, 4F
→
03/30 12:35, , 5F
03/30 12:35, 5F
→
03/30 13:09, , 6F
03/30 13:09, 6F
→
03/30 13:10, , 7F
03/30 13:10, 7F
推
04/01 01:16, , 8F
04/01 01:16, 8F
→
04/01 01:17, , 9F
04/01 01:17, 9F
→
04/01 13:43, , 10F
04/01 13:43, 10F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
5
21