* bignum.c (bytes_2comp): Define it only for little endian
environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7cc26c722c
commit
0c3d124571
@ -1,3 +1,8 @@
|
|||||||
|
Tue Sep 3 07:39:58 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* bignum.c (bytes_2comp): Define it only for little endian
|
||||||
|
environment.
|
||||||
|
|
||||||
Tue Sep 3 07:31:29 2013 Akinori MUSHA <knu@iDaemons.org>
|
Tue Sep 3 07:31:29 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* numeric.c (NUM_STEP_SCAN_ARGS): Numeral#step should raise
|
* numeric.c (NUM_STEP_SCAN_ARGS): Numeral#step should raise
|
||||||
|
2
bignum.c
2
bignum.c
@ -608,6 +608,7 @@ integer_pack_take_lowbits(int n, BDIGIT_DBL *ddp, int *numbits_in_dd_p)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(WORDS_BIGENDIAN)
|
||||||
static int
|
static int
|
||||||
bytes_2comp(unsigned char *buf, size_t len)
|
bytes_2comp(unsigned char *buf, size_t len)
|
||||||
{
|
{
|
||||||
@ -621,6 +622,7 @@ bytes_2comp(unsigned char *buf, size_t len)
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
bary_pack(int sign, BDIGIT *ds, size_t num_bdigits, void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
|
bary_pack(int sign, BDIGIT *ds, size_t num_bdigits, void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user