mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Add multiple inclusion prevention macro
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
#ifndef BIGNUM64_H
|
||||||
|
#define BIGNUM64_H
|
||||||
|
|
||||||
// Support 64-bit word operations on 32-bit platforms
|
// Support 64-bit word operations on 32-bit platforms
|
||||||
|
|
||||||
static int BN_add_word64(BIGNUM *a, uint64 w)
|
static int BN_add_word64(BIGNUM *a, uint64 w)
|
||||||
@@ -26,3 +29,5 @@ static uint64 BN_div_word64(BIGNUM *a, uint64 w)
|
|||||||
CAutoBN_CTX ctx;
|
CAutoBN_CTX ctx;
|
||||||
return (BN_div(a, NULL, a, &bn, ctx) == 1) ? 0 : ((uint64)-1);
|
return (BN_div(a, NULL, a, &bn, ctx) == 1) ? 0 : ((uint64)-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user