fe25519_getparity
unsigned char fe25519_getparity(const fe25519 *x);
if(fe25519_getparity(&r->x) != (1-par))
r[31] ^= fe25519_getparity(&tx) << 7;