diff options
author | Chris Zankel <chris@zankel.net> | 2013-07-08 01:10:26 -0700 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2013-07-08 01:10:26 -0700 |
commit | 033d777f548645c3a906b73eef5d665aeee55092 (patch) | |
tree | 707dd7757ed59882fb1ecaf73313c325fa20dec8 /lib/mpi | |
parent | fd95ee7380ae973c6f11b897af6ef9d253a1df9e (diff) | |
parent | 73b0cd674ccc64c921e25bd7154f26d342116539 (diff) |
Merge branch 'timers-core-for-linus' of https://git.kernel.org/cgit/linux/kernel/git/tip/tip into tst5
Diffstat (limited to 'lib/mpi')
-rw-r--r-- | lib/mpi/longlong.h | 5 | ||||
-rw-r--r-- | lib/mpi/mpicoder.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index 095ab157a521..d411355f238e 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h @@ -318,7 +318,8 @@ extern UDItype __udiv_qrnnd(); "rM" ((USItype)(bh)), \ "rM" ((USItype)(al)), \ "rM" ((USItype)(bl))) -#if defined(_PA_RISC1_1) +#if 0 && defined(_PA_RISC1_1) +/* xmpyu uses floating point register which is not allowed in Linux kernel. */ #define umul_ppmm(wh, wl, u, v) \ do { \ union {UDItype __ll; \ @@ -337,7 +338,7 @@ do { \ #define UMUL_TIME 40 #define UDIV_TIME 80 #endif -#ifndef LONGLONG_STANDALONE +#if 0 /* #ifndef LONGLONG_STANDALONE */ #define udiv_qrnnd(q, r, n1, n0, d) \ do { USItype __r; \ (q) = __udiv_qrnnd(&__r, (n1), (n0), (d)); \ diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c index 5f9c44cdf1f5..4cc6442733f4 100644 --- a/lib/mpi/mpicoder.c +++ b/lib/mpi/mpicoder.c @@ -37,7 +37,7 @@ MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) mpi_limb_t a; MPI val = NULL; - while (nbytes >= 0 && buffer[0] == 0) { + while (nbytes > 0 && buffer[0] == 0) { buffer++; nbytes--; } |