-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpi64_parameter.h
66 lines (51 loc) · 1.78 KB
/
pi64_parameter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* pi64_parameter.h
*
* Created on: 2015-09-12
* Author: bg
*/
#ifndef PI64_PARAMETER_H_
#define PI64_PARAMETER_H_
typedef uint64_t word_t;
#define PI_WORD_SIZE 64
#define PI_TAG_BITS 512
#define PI_TAG_BYTES (PI_TAG_BITS / 8)
#define PI_MU_CONST_0 0xF0E8E4E2E1D8D4D2ll
#define PI_MU_CONST_1 0xD1CCCAC9C6C5C3B8ll
#define PI_MU_CONST_2 0xB4B2B1ACAAA9A6A5ll
#define PI_MU_CONST_3 0xA39C9A999695938Ell
#define PI_MU_CONST { \
0xF0E8E4E2E1D8D4D2ll, \
0xD1CCCAC9C6C5C3B8ll, \
0xB4B2B1ACAAA9A6A5ll, \
0xA39C9A999695938Ell \
}
#define PI_MU_ROT_CONST_0 7
#define PI_MU_ROT_CONST_1 19
#define PI_MU_ROT_CONST_2 31
#define PI_MU_ROT_CONST_3 53
#define PI_MU_ROT_CONST { 7, 19, 31, 53 }
#define PI_NY_CONST_0 0x8D8B87787472716Cll
#define PI_NY_CONST_1 0x6A696665635C5A59ll
#define PI_NY_CONST_2 0x5655534E4D4B473Cll
#define PI_NY_CONST_3 0x3A393635332E2D2Bll
#define PI_NY_CONST { \
0x8D8B87787472716Cll, \
0x6A696665635C5A59ll, \
0x5655534E4D4B473Cll, \
0x3A393635332E2D2Bll \
}
#define PI_NY_ROT_CONST_0 11
#define PI_NY_ROT_CONST_1 23
#define PI_NY_ROT_CONST_2 37
#define PI_NY_ROT_CONST_3 59
#define PI_NY_ROT_CONST { 11, 23, 37, 59 }
#define PI_CONST { \
{ 0x271E1D1B170FF0E8ll, 0xE4E2E1D8D4D2D1CCll, 0xCAC9C6C5C3B8B4B2ll, 0xB1ACAAA9A6A5A39Cll }, \
{ 0x9A999695938E8D8Bll, 0x87787472716C6A69ll, 0x6665635C5A595655ll, 0x534E4D4B473C3A39ll }, \
{ 0x3635332E2D2B271Ell, 0x1D1B170FF0E8E4E2ll, 0xE1D8D4D2D1CCCAC9ll, 0xC6C5C3B8B4B2B1ACll }, \
{ 0xAAA9A6A5A39C9A99ll, 0x9695938E8D8B8778ll, 0x7472716C6A696665ll, 0x635C5A595655534Ell }, \
{ 0x4D4B473C3A393635ll, 0x332E2D2B271E1D1Bll, 0x170FF0E8E4E2E1D8ll, 0xD4D2D1CCCAC9C6C5ll }, \
{ 0xC3B8B4B2B1ACAAA9ll, 0xA6A5A39C9A999695ll, 0x938E8D8B87787472ll, 0x716C6A696665635Cll } \
}
#endif /* PI64_PARAMETER_H_ */