Print this page
*** 36,59 ****
*/
#include "libm.h"
#include <sys/isa_defs.h>
! #if defined(_BIG_ENDIAN)
static const union {
unsigned i[2];
double d;
} __nan_union = { 0x7fffffff, 0xffffffff };
! #else
static const union {
unsigned i[2];
double d;
} __nan_union = { 0xffffffff, 0x7fffffff };
#endif
/* ARGSUSED0 */
double
__nan(const char *c) {
--- 36,61 ----
*/
#include "libm.h"
#include <sys/isa_defs.h>
! #if defined(__sparc)
static const union {
unsigned i[2];
double d;
} __nan_union = { 0x7fffffff, 0xffffffff };
! #elif defined(__i386) || defined(__amd64)
static const union {
unsigned i[2];
double d;
} __nan_union = { 0xffffffff, 0x7fffffff };
+ #else
+ #error Unknown architecture
#endif
/* ARGSUSED0 */
double
__nan(const char *c) {