summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-10 14:44:09 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-10 14:44:09 -0700
commit3c744855236c9a8d788b3dc6571701482f00a31f (patch)
tree8ecc93e62fbd9683a456df46761a2d7ea001ae99 /nasmlib.c
parent11e6c85b093aa8ae0502897d5e628cbb05eeb191 (diff)
downloadnasm-3c744855236c9a8d788b3dc6571701482f00a31f.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 4d78eef2..db4b2f17 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -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)
{