diff options
Diffstat (limited to 'beecrypt')
-rw-r--r-- | beecrypt/mp.c | 2 | ||||
-rw-r--r-- | beecrypt/types.h.in | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/beecrypt/mp.c b/beecrypt/mp.c index 4d63e6528..78e487f61 100644 --- a/beecrypt/mp.c +++ b/beecrypt/mp.c @@ -1253,7 +1253,7 @@ void mpndivmod(mpw* result, size_t xsize, const mpw* xdata, size_t ysize, const /* expect ydata to be normalized */ mpw q; mpw msw = *ydata; - mpw qsize = xsize-ysize; + size_t qsize = xsize-ysize; mpcopy(xsize, result+1, xdata); if (mpge(ysize, result+1, ydata)) diff --git a/beecrypt/types.h.in b/beecrypt/types.h.in index e6e8012a8..3d4347e63 100644 --- a/beecrypt/types.h.in +++ b/beecrypt/types.h.in @@ -40,6 +40,7 @@ #if defined(__GNUC__) # if defined(__i386__) +#ifdef BORKED static inline uint32_t ROTL32(uint32_t x, const unsigned char n) { __asm__("roll %1,%0" @@ -57,6 +58,7 @@ static inline uint32_t ROTR32(uint32_t x, const unsigned char n) return x; } +#endif # elif defined(__powerpc__) static inline uint32_t ROTL32(uint32_t x, const unsigned char n) { |