bni68020.h

来自「pgp soucecode pgp soucecode」· C头文件 代码 · 共 36 行

H
36
字号
/*
 * bni68020.h - 32-bit bignum primitives for the 68020 (or 683xx) processors.
 *
 * These primitives use little-endian word order.
 * (The order of bytes within words is irrelevant.)
 *
 * $Id: bni68020.h,v 1.2 1997/05/05 19:49:11 lloyd Exp $
 */
#define BN_LITTLE_ENDIAN 1

typedef unsigned long bnword32;
#define BNWORD32 bnword32

PGP_BEGIN_C_DECLARATIONS

bnword32 bniSub1_32(bnword32 *num, unsigned len, bnword32 borrow);
bnword32 bniAdd1_32(bnword32 *num, unsigned len, bnword32 carry);
void bniMulN1_32(bnword32 *out, bnword32 const *in, unsigned len, bnword32 k);
bnword32
bniMulAdd1_32(bnword32 *out, bnword32 const *in, unsigned len, bnword32 k);
bnword32
bniMulSub1_32(bnword32 *out, bnword32 const *in, unsigned len, bnword32 k);
bnword32 bniDiv21_32(bnword32 *q, bnword32 nh, bnword32 nl, bnword32 d);
unsigned bniModQ_32(bnword32 const *n, unsigned len, unsigned d);

PGP_END_C_DECLARATIONS

/* #define the values to exclude the C versions */
#define bniSub1_32 bniSub1_32
#define bniAdd1_32 bniAdd1_32
#define bniMulN1_32 bniMulN1_32
#define bniMulAdd1_32 bniMulAdd1_32
#define bniMulSub1_32 bniMulSub1_32
#define bniDiv21_32 bniDiv21_32
#define bniModQ_32 bniModQ_32

⌨️ 快捷键说明

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