-rw-r--r-- 554 lib25519-20260614/crypto_multiscalar/ed25519/arm64-uma9l-p3/fe25519_getparity.c raw
// 20240926 djb: use cryptoint
// linker define fe25519_getparity
// linker define fe25519_9l_dense_getparity
// linker use fe25519_freeze
// linker use fe25519_9l_dense_to_4l
#include "fe25519.h"
#include "crypto_uint8.h"
unsigned char fe25519_getparity(const fe25519 *x)
{
fe25519 t = *x;
fe25519_freeze(&t);
return crypto_uint8_bottombit_01(t.v[0]);
}
unsigned char fe25519_9l_dense_getparity(const fe25519_9l_dense *x)
{
fe25519 t;
fe25519_9l_dense_to_4l(&t,x);
fe25519_freeze(&t);
return crypto_uint8_bottombit_01(t.v[0]);
}