Python-ELMO is a Python library which offers an encapsulation of the binary tool ELMO, in order to manipulate it easily in Python and SageMath script.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

reduce.h 207B

12345678910111213
  1. #ifndef REDUCE_H
  2. #define REDUCE_H
  3. #include <stdint.h>
  4. #define MONT 2285 // 2^16 % Q
  5. #define QINV 62209 // q^(-1) mod 2^16
  6. int16_t montgomery_reduce(int32_t a);
  7. int16_t barrett_reduce(int16_t a);
  8. #endif