scramble.h
来自「Fax and soft modem source code. - Slow m」· C头文件 代码 · 共 30 行
H
30 行
#define GPC 18
#define GPA 5
typedef unsigned int uint;
struct scrambler
{ scrambler(int pb);
void reset();
int fwd(int), rev(int);
private:
int bit(int);
int tap;
uint wd;
};
inline scrambler::scrambler(int xt)
{ tap = xt;
wd = 0;
}
inline void scrambler::reset()
{ wd = 0;
}
inline int scrambler::bit(int bn)
{ return (wd >> 23-bn) & 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?