fix amd64 asm stuff calling on windows

This commit is contained in:
cathugger
2022-05-31 01:41:03 +03:00
parent fca1c18def
commit 4e20f086e3
12 changed files with 84 additions and 57 deletions

View File

@@ -2,6 +2,7 @@
#define FE25519_H
#include <stddef.h>
#include "compat.h"
#define fe25519 CRYPTO_NAMESPACE(batch_fe25519)
#define fe25519_freeze CRYPTO_NAMESPACE(batch_fe25519_freeze)
@@ -29,7 +30,7 @@ typedef struct
}
fe25519;
void fe25519_freeze(fe25519 *r);
void fe25519_freeze(fe25519 *r) SYSVABI;
void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
@@ -53,13 +54,13 @@ void fe25519_add(fe25519 *r, const fe25519 *x, const fe25519 *y);
void fe25519_sub(fe25519 *r, const fe25519 *x, const fe25519 *y);
void fe25519_mul(fe25519 *r, const fe25519 *x, const fe25519 *y);
void fe25519_mul(fe25519 *r, const fe25519 *x, const fe25519 *y) SYSVABI;
void fe25519_mul121666(fe25519 *r, const fe25519 *x);
void fe25519_square(fe25519 *r, const fe25519 *x);
void fe25519_square(fe25519 *r, const fe25519 *x) SYSVABI;
void fe25519_nsquare(fe25519 *r, unsigned long long n);
void fe25519_nsquare(fe25519 *r, unsigned long long n) SYSVABI;
void fe25519_invert(fe25519 *r, const fe25519 *x);