diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-03-09 13:16:57 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-03-09 13:16:57 +0800 |
commit | bc141e2d30c211758d2c92b55bf25424ea56bbdc (patch) | |
tree | 332785f77bf6a608c06d360de6da330c6bcc1892 | |
parent | edb66932fa5756e4eeb65089c8c77f4ce9437f04 (diff) | |
download | tangerine-mcl-release20190309.tar.gz tangerine-mcl-release20190309.tar.zst tangerine-mcl-release20190309.zip |
fix comment of mclBnFr_setLittleEndianrelease20190309
-rw-r--r-- | include/mcl/bn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mcl/bn.h b/include/mcl/bn.h index ca26000..589798f 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -229,7 +229,9 @@ MCLBN_DLL_API void mclBnFp2_clear(mclBnFp2 *x); MCLBN_DLL_API void mclBnFr_setInt(mclBnFr *y, mclInt x); MCLBN_DLL_API void mclBnFr_setInt32(mclBnFr *y, int x); -// mask buf with (1 << (bitLen(r) - 1)) - 1 if buf >= r +// x = buf & (1 << bitLen(r)) - 1 +// if (x >= r) x &= (1 << (bitLen(r) - 1)) - 1 +// always return 0 MCLBN_DLL_API int mclBnFr_setLittleEndian(mclBnFr *x, const void *buf, mclSize bufSize); MCLBN_DLL_API int mclBnFp_setLittleEndian(mclBnFp *x, const void *buf, mclSize bufSize); |