Package list libcryptx-perl / 2194fd4
ltm update Karel Miko 3 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1616 unsigned long mp_get_int(const mp_int *a)
1717 {
1818 int i;
19 unsigned long res;
19 mp_min_u32 res;
2020
2121 if (a->used == 0) {
2222 return 0;
9292 /* otherwise the bits per digit is calculated automatically from the size of a mp_digit */
9393 #ifndef DIGIT_BIT
9494 # define DIGIT_BIT (((CHAR_BIT * MP_SIZEOF_MP_DIGIT) - 1)) /* bits per digit */
95 typedef unsigned long mp_min_u32;
96 #else
97 typedef mp_digit mp_min_u32;
9598 #endif
9699
97100 #define MP_DIGIT_BIT DIGIT_BIT