Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
field_5x52.h File Reference
#include <stdint.h>
Include dependency graph for field_5x52.h:

Go to the source code of this file.

Classes

struct  secp256k1_fe
 
struct  secp256k1_fe_storage
 

Macros

#define SECP256K1_FE_CONST_INNER(d7, d6, d5, d4, d3, d2, d1, d0)
 
#define SECP256K1_FE_CONST(d7, d6, d5, d4, d3, d2, d1, d0)
 
#define SECP256K1_FE_STORAGE_CONST(d7, d6, d5, d4, d3, d2, d1, d0)
 
#define SECP256K1_FE_STORAGE_CONST_GET(d)
 

Macro Definition Documentation

◆ SECP256K1_FE_CONST

#define SECP256K1_FE_CONST ( d7,
d6,
d5,
d4,
d3,
d2,
d1,
d0 )
Value:
{SECP256K1_FE_CONST_INNER((d7), (d6), (d5), (d4), (d3), (d2), (d1), (d0))}
#define d1
#define d0
#define SECP256K1_FE_CONST_INNER(d7, d6, d5, d4, d3, d2, d1, d0)
Definition field_5x52.h:24

Definition at line 35 of file field_5x52.h.

◆ SECP256K1_FE_CONST_INNER

#define SECP256K1_FE_CONST_INNER ( d7,
d6,
d5,
d4,
d3,
d2,
d1,
d0 )
Value:
{ \
(d0) | (((uint64_t)(d1) & 0xFFFFFUL) << 32), \
((uint64_t)(d1) >> 20) | (((uint64_t)(d2)) << 12) | (((uint64_t)(d3) & 0xFFUL) << 44), \
((uint64_t)(d3) >> 8) | (((uint64_t)(d4) & 0xFFFFFFFUL) << 24), \
((uint64_t)(d4) >> 28) | (((uint64_t)(d5)) << 4) | (((uint64_t)(d6) & 0xFFFFUL) << 36), \
((uint64_t)(d6) >> 16) | (((uint64_t)(d7)) << 16) \
}
unsigned __int64 uint64_t
Definition stdint.h:136

Definition at line 24 of file field_5x52.h.

24#define SECP256K1_FE_CONST_INNER(d7, d6, d5, d4, d3, d2, d1, d0) { \
25 (d0) | (((uint64_t)(d1) & 0xFFFFFUL) << 32), \
26 ((uint64_t)(d1) >> 20) | (((uint64_t)(d2)) << 12) | (((uint64_t)(d3) & 0xFFUL) << 44), \
27 ((uint64_t)(d3) >> 8) | (((uint64_t)(d4) & 0xFFFFFFFUL) << 24), \
28 ((uint64_t)(d4) >> 28) | (((uint64_t)(d5)) << 4) | (((uint64_t)(d6) & 0xFFFFUL) << 36), \
29 ((uint64_t)(d6) >> 16) | (((uint64_t)(d7)) << 16) \
30}

◆ SECP256K1_FE_STORAGE_CONST

#define SECP256K1_FE_STORAGE_CONST ( d7,
d6,
d5,
d4,
d3,
d2,
d1,
d0 )
Value:
{{ \
(d0) | (((uint64_t)(d1)) << 32), \
(d2) | (((uint64_t)(d3)) << 32), \
(d4) | (((uint64_t)(d5)) << 32), \
(d6) | (((uint64_t)(d7)) << 32) \
}}

Definition at line 42 of file field_5x52.h.

42#define SECP256K1_FE_STORAGE_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{ \
43 (d0) | (((uint64_t)(d1)) << 32), \
44 (d2) | (((uint64_t)(d3)) << 32), \
45 (d4) | (((uint64_t)(d5)) << 32), \
46 (d6) | (((uint64_t)(d7)) << 32) \
47}}

◆ SECP256K1_FE_STORAGE_CONST_GET

#define SECP256K1_FE_STORAGE_CONST_GET ( d)
Value:
(uint32_t)(d.n[3] >> 32), (uint32_t)d.n[3], \
(uint32_t)(d.n[2] >> 32), (uint32_t)d.n[2], \
(uint32_t)(d.n[1] >> 32), (uint32_t)d.n[1], \
(uint32_t)(d.n[0] >> 32), (uint32_t)d.n[0]
unsigned int uint32_t
Definition stdint.h:126
CK_ULONG d

Definition at line 49 of file field_5x52.h.

49#define SECP256K1_FE_STORAGE_CONST_GET(d) \
50 (uint32_t)(d.n[3] >> 32), (uint32_t)d.n[3], \
51 (uint32_t)(d.n[2] >> 32), (uint32_t)d.n[2], \
52 (uint32_t)(d.n[1] >> 32), (uint32_t)d.n[1], \
53 (uint32_t)(d.n[0] >> 32), (uint32_t)d.n[0]