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.
This commit is contained in:
parent
0e9360f160
commit
bb5e0820bc
@ -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 <machine/endian.h>
|
||||
|
||||
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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user