Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Macros
field_10x26.h File Reference
#include <stdint.h>
Include dependency graph for field_10x26.h:
This graph shows which files directly or indirectly include this file:

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)   {{ (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }}
 
#define SECP256K1_FE_STORAGE_CONST_GET(d)   d.n[7], d.n[6], d.n[5], d.n[4],d.n[3], d.n[2], d.n[1], d.n[0]
 

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 40 of file field_10x26.h.

◆ SECP256K1_FE_CONST_INNER

#define SECP256K1_FE_CONST_INNER (   d7,
  d6,
  d5,
  d4,
  d3,
  d2,
  d1,
  d0 
)
Value:
{ \
(d0) & 0x3FFFFFFUL, \
(((uint32_t)d0) >> 26) | (((uint32_t)(d1) & 0xFFFFFUL) << 6), \
(((uint32_t)d1) >> 20) | (((uint32_t)(d2) & 0x3FFFUL) << 12), \
(((uint32_t)d2) >> 14) | (((uint32_t)(d3) & 0xFFUL) << 18), \
(((uint32_t)d3) >> 8) | (((uint32_t)(d4) & 0x3UL) << 24), \
(((uint32_t)d4) >> 2) & 0x3FFFFFFUL, \
(((uint32_t)d4) >> 28) | (((uint32_t)(d5) & 0x3FFFFFUL) << 4), \
(((uint32_t)d5) >> 22) | (((uint32_t)(d6) & 0xFFFFUL) << 10), \
(((uint32_t)d6) >> 16) | (((uint32_t)(d7) & 0x3FFUL) << 16), \
(((uint32_t)d7) >> 10) \
}

Definition at line 24 of file field_10x26.h.

◆ SECP256K1_FE_STORAGE_CONST

#define SECP256K1_FE_STORAGE_CONST (   d7,
  d6,
  d5,
  d4,
  d3,
  d2,
  d1,
  d0 
)    {{ (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }}

Definition at line 47 of file field_10x26.h.

◆ SECP256K1_FE_STORAGE_CONST_GET

#define SECP256K1_FE_STORAGE_CONST_GET (   d)    d.n[7], d.n[6], d.n[5], d.n[4],d.n[3], d.n[2], d.n[1], d.n[0]

Definition at line 48 of file field_10x26.h.