Mercurial > dropbear
comparison libtommath/mtest/mpi-types.h @ 284:eed26cff980b
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 6c790cad5a7fa866ad062cb3a0c279f7ba788583)
to branch 'au.asn.ucc.matt.dropbear' (head fff0894a0399405a9410ea1c6d118f342cf2aa64)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 13:23:49 +0000 |
parents | |
children | 5ff8218bcee9 |
comparison
equal
deleted
inserted
replaced
283:bd240aa12ba7 | 284:eed26cff980b |
---|---|
1 /* Type definitions generated by 'types.pl' */ | |
2 typedef char mp_sign; | |
3 typedef unsigned short mp_digit; /* 2 byte type */ | |
4 typedef unsigned int mp_word; /* 4 byte type */ | |
5 typedef unsigned int mp_size; | |
6 typedef int mp_err; | |
7 | |
8 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit)) | |
9 #define MP_DIGIT_MAX USHRT_MAX | |
10 #define MP_WORD_BIT (CHAR_BIT*sizeof(mp_word)) | |
11 #define MP_WORD_MAX UINT_MAX | |
12 | |
13 #define MP_DIGIT_SIZE 2 | |
14 #define DIGIT_FMT "%04X" | |
15 #define RADIX (MP_DIGIT_MAX+1) | |
16 |