diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-02 22:41:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-02 22:41:07 +0000 |
commit | 0c3d1245715dd7708a594299228ad6f62e38aa74 (patch) | |
tree | c9b7a2e014d6e0ed8ddeb4f529a41ffec1a01f72 /bignum.c | |
parent | 7cc26c722ce6c88fc5ed20ca9820d9444cc5369f (diff) | |
download | ruby-0c3d1245715dd7708a594299228ad6f62e38aa74.tar.gz |
* 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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -608,6 +608,7 @@ integer_pack_take_lowbits(int n, BDIGIT_DBL *ddp, int *numbits_in_dd_p) return ret; } +#if !defined(WORDS_BIGENDIAN) static int bytes_2comp(unsigned char *buf, size_t len) { @@ -621,6 +622,7 @@ bytes_2comp(unsigned char *buf, size_t len) } return 1; } +#endif 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) |