Add SECP256K1_FE_STORAGE_CONST_GET to 5x52 field
So far this has not been needed, as it's only used by the static precomputation which always builds with 32-bit fields. This prepares for the ability to have __int128 detected on the C side, breaking that restriction.
This commit is contained in:
parent
805082de11
commit
0d7727f95e
@ -46,4 +46,10 @@ typedef struct {
|
|||||||
(d6) | (((uint64_t)(d7)) << 32) \
|
(d6) | (((uint64_t)(d7)) << 32) \
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
#define SECP256K1_FE_STORAGE_CONST_GET(d) \
|
||||||
|
(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]
|
||||||
|
|
||||||
#endif /* SECP256K1_FIELD_REPR_H */
|
#endif /* SECP256K1_FIELD_REPR_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user