fix clang build for MP_{8,16}BIT
This commit is contained in:
parent
d5328bfade
commit
e156e7efcf
@ -15,6 +15,9 @@
|
||||
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
|
||||
*/
|
||||
|
||||
#if defined(MP_8BIT) || defined(MP_16BIT)
|
||||
#define MP_GEN_RANDOM_SHIFT DIGIT_BIT
|
||||
#else
|
||||
#if MP_GEN_RANDOM_MAX == 0xffffffffu
|
||||
#define MP_GEN_RANDOM_SHIFT 32
|
||||
#elif MP_GEN_RANDOM_MAX == 32767
|
||||
@ -26,6 +29,7 @@
|
||||
#elif !defined(MP_GEN_RANDOM_SHIFT)
|
||||
#error Thou shalt define their own valid MP_GEN_RANDOM_SHIFT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* makes a pseudo-random int of a given size */
|
||||
static mp_digit s_gen_random(void)
|
||||
|
Loading…
Reference in New Issue
Block a user