1 /* $NetBSD: mpi-types.h,v 1.1.1.2 2014/04/24 12:45:39 pettai Exp $ */ 2 3 /* Type definitions generated by 'types.pl' */ 4 typedef char mp_sign; 5 typedef unsigned short mp_digit; /* 2 byte type */ 6 typedef unsigned int mp_word; /* 4 byte type */ 7 typedef unsigned int mp_size; 8 typedef int mp_err; 9 10 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit)) 11 #define MP_DIGIT_MAX USHRT_MAX 12 #define MP_WORD_BIT (CHAR_BIT*sizeof(mp_word)) 13 #define MP_WORD_MAX UINT_MAX 14 15 #define MP_DIGIT_SIZE 2 16 #define DIGIT_FMT "%04X" 17 #define RADIX (MP_DIGIT_MAX+1) 18 19 20 /* Source: /cvs/libtom/libtommath/mtest/mpi-types.h,v */ 21 /* Revision: 1.2 */ 22 /* Date: 2005/05/05 14:38:47 */ 23