diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-10 14:44:09 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-10 14:44:09 -0700 |
commit | 3c744855236c9a8d788b3dc6571701482f00a31f (patch) | |
tree | 8ecc93e62fbd9683a456df46761a2d7ea001ae99 /nasmlib.c | |
parent | 11e6c85b093aa8ae0502897d5e628cbb05eeb191 (diff) | |
download | nasm-3c744855236c9a8d788b3dc6571701482f00a31f.tar.gz nasm-3c744855236c9a8d788b3dc6571701482f00a31f.tar.bz2 nasm-3c744855236c9a8d788b3dc6571701482f00a31f.zip |
nasmlib.c: fwriteint*() only need WORDS_LITTLEENDIAN
fwriteint*() don't require unaligned references, so they can be
optimized for WORDS_LITTLEENDIAN rather than X86_MEMORY...
Diffstat (limited to 'nasmlib.c')
-rw-r--r-- | nasmlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -385,7 +385,7 @@ int32_t seg_alloc(void) return (next_seg += 2) - 2; } -#if X86_MEMORY +#ifdef WORDS_LITTLEENDIAN void fwriteint16_t(uint16_t data, FILE * fp) { @@ -407,7 +407,7 @@ void fwriteaddr(uint64_t data, int size, FILE * fp) fwrite(&data, 1, size, fp); } -#else /* !X86_MEMORY */ +#else /* not WORDS_LITTLEENDIAN */ void fwriteint16_t(uint16_t data, FILE * fp) { |