From d1fb15c154b99f9ca8d2356fa9057827b0ab89af Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 13 Nov 2007 09:37:59 -0800 Subject: Address data is int64_t; simplify writing an address object Address data is always int64_t even if the size itself is smaller; this was broken on bigendian hosts (still need testing!) Create simple "write sized object" macros. --- float.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'float.c') diff --git a/float.c b/float.c index eddb719..c4582cd 100644 --- a/float.c +++ b/float.c @@ -45,7 +45,7 @@ typedef uint64_t fp_2limb; #define LIMB_ALL_BYTES ((fp_limb)0x01010101) #define LIMB_BYTE(x) ((x)*LIMB_ALL_BYTES) -#if defined(__i386__) || defined(__x86_64__) +#if X86_MEMORY #define put(a,b) (*(uint32_t *)(a) = (b)) #else #define put(a,b) (((a)[0] = (b)), \ -- cgit v1.2.3