-rw-r--r-- 594 ntruprime-20201007/Reference_Implementation/kem/ntrulpr1277/int32.h
#ifndef INT32_H
#define INT32_H
#define int32_div_uint14 CRYPTO_NAMESPACE(int32_div_uint14)
#define int32_mod_uint14 CRYPTO_NAMESPACE(int32_mod_uint14)
#define int32_divmod_uint14 CRYPTO_NAMESPACE(int32_divmod_uint14)
#include "uint16.h"
typedef int32_t int32;
/*
assuming 1 <= m < 16384:
q = int32_div_uint14(x,m) means q = x/m
r = int32_mod_uint14(x,m) means r = x/m
int32_moddiv_uint14(&q,&r,x,m) means q = x/m, r = x%m
*/
extern int32 int32_div_uint14(int32,uint16);
extern uint16 int32_mod_uint14(int32,uint16);
extern void int32_divmod_uint14(int32 *,uint16 *,int32,uint16);
#endif