Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Macros
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)   {SECP256K1_FE_CONST_INNER((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 
)    {SECP256K1_FE_CONST_INNER((d7), (d6), (d5), (d4), (d3), (d2), (d1), (d0))}

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) \
}

Definition at line 24 of file field_5x52.h.

◆ 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.

◆ 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]

Definition at line 49 of file field_5x52.h.