diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:25:03 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:25:03 +0100 |
commit | 5c972901ec4cca2668d9b294077540200f403e69 (patch) | |
tree | f41afbe38095935c886ba0a401b45c7d35cb8e44 /gmp-impl.h | |
parent | bead3dcb5969491d6aee692ac7bc8d30b2e27521 (diff) | |
download | gmp-5c972901ec4cca2668d9b294077540200f403e69.tar.gz |
Get rid of BYTES_PER_MP_LIMB, most files affected.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r-- | gmp-impl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 8621daf49..2688ad804 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -206,10 +206,9 @@ along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ /* if not provided by gmp-mparam.h */ -#ifndef BYTES_PER_MP_LIMB -#define BYTES_PER_MP_LIMB SIZEOF_MP_LIMB_T +#ifndef GMP_LIMB_BYTES +#define GMP_LIMB_BYTES SIZEOF_MP_LIMB_T #endif -#define GMP_LIMB_BYTES BYTES_PER_MP_LIMB #ifndef GMP_LIMB_BITS #define GMP_LIMB_BITS (8 * SIZEOF_MP_LIMB_T) #endif @@ -3481,7 +3480,7 @@ __GMP_DECLSPEC extern const unsigned char binvert_limb_table[128]; mp_limb_t __bswapl_src = (src); \ mp_limb_t __dstl = 0; \ int __i; \ - for (__i = 0; __i < BYTES_PER_MP_LIMB; __i++) \ + for (__i = 0; __i < GMP_LIMB_BYTES; __i++) \ { \ __dstl = (__dstl << 8) | (__bswapl_src & 0xFF); \ __bswapl_src >>= 8; \ |