mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
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...
This commit is contained in:
parent
11e6c85b09
commit
3c74485523
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user