提交 5b7af0dd 编写于 作者: E Emilia Kasper

Curve25519: fix const-initialization

Clang is permissive of this, but gcc fails.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 5b70372d
......@@ -62,10 +62,10 @@
* context. */
typedef int32_t fe[10];
static const int64_t kBottom25Bits = 0x1ffffff;
static const int64_t kBottom26Bits = 0x3ffffff;
static const int64_t kTop39Bits = ~kBottom25Bits;
static const int64_t kTop38Bits = ~kBottom26Bits;
static const int64_t kBottom25Bits = 0x1ffffffLL;
static const int64_t kBottom26Bits = 0x3ffffffLL;
static const int64_t kTop39Bits = 0xfffffffffe000000LL;
static const int64_t kTop38Bits = 0xfffffffffc000000LL;
static uint64_t load_3(const uint8_t *in) {
uint64_t result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册