From bb5e0820bccb4333f3ef107cb67f7efcdefa66a8 Mon Sep 17 00:00:00 2001 From: kleink Date: Sat, 25 Oct 2003 16:17:44 +0000 Subject: [PATCH] Redo the VFP/endianness conditional logic of this file, making it easier to read. No functional change except for the side-effect of fixing the ARMEB FPA case, which wasn't supported anyway. --- lib/libc/arch/arm/gen/infinity.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/arch/arm/gen/infinity.c b/lib/libc/arch/arm/gen/infinity.c index 10c58385e11f..d5bb4485b11a 100644 --- a/lib/libc/arch/arm/gen/infinity.c +++ b/lib/libc/arch/arm/gen/infinity.c @@ -1,4 +1,4 @@ -/* $NetBSD: infinity.c,v 1.3 2002/02/19 20:08:19 bjh21 Exp $ */ +/* $NetBSD: infinity.c,v 1.4 2003/10/25 16:17:44 kleink Exp $ */ /* * IEEE-compatible infinity.c -- public domain. @@ -8,12 +8,12 @@ #include const union __double_u __infinity = -#if BYTE_ORDER == BIG_ENDIAN - { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0} }; -#else #ifdef __VFP_FP__ - { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f} }; +#if BYTE_ORDER == BIG_ENDIAN + { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } }; #else - { { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0} }; -#endif -#endif + { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; +#endif /* BYTE_ORDER == BIG_ENDIAN */ +#else + { { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 } }; +#endif /* __VFP_FP__ */