math_private.h (176552) | math_private.h (186461) |
---|---|
1/* 2 * ==================================================== 3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 * 5 * Developed at SunPro, a Sun Microsystems, Inc. business. 6 * Permission to use, copy, modify, and distribute this 7 * software is freely granted, provided that this notice 8 * is preserved. 9 * ==================================================== 10 */ 11 12/* 13 * from: @(#)fdlibm.h 5.1 93/09/24 | 1/* 2 * ==================================================== 3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 * 5 * Developed at SunPro, a Sun Microsystems, Inc. business. 6 * Permission to use, copy, modify, and distribute this 7 * software is freely granted, provided that this notice 8 * is preserved. 9 * ==================================================== 10 */ 11 12/* 13 * from: @(#)fdlibm.h 5.1 93/09/24 |
14 * $FreeBSD: head/lib/msun/src/math_private.h 176552 2008-02-25 13:33:20Z bde $ | 14 * $FreeBSD: head/lib/msun/src/math_private.h 186461 2008-12-23 22:20:59Z marcel $ |
15 */ 16 17#ifndef _MATH_PRIVATE_H_ 18#define _MATH_PRIVATE_H_ 19 20#include <sys/types.h> 21#include <machine/endian.h> 22 --- 10 unchanged lines hidden (view full) --- 33 * endianness at run time. 34 */ 35 36/* 37 * A union which permits us to convert between a double and two 32 bit 38 * ints. 39 */ 40 | 15 */ 16 17#ifndef _MATH_PRIVATE_H_ 18#define _MATH_PRIVATE_H_ 19 20#include <sys/types.h> 21#include <machine/endian.h> 22 --- 10 unchanged lines hidden (view full) --- 33 * endianness at run time. 34 */ 35 36/* 37 * A union which permits us to convert between a double and two 32 bit 38 * ints. 39 */ 40 |
41#if BYTE_ORDER == BIG_ENDIAN | 41#ifdef __arm__ 42#if defined(__VFP_FP__) 43#define IEEE_WORD_ORDER BYTE_ORDER 44#else 45#define IEEE_WORD_ORDER BIG_ENDIAN 46#endif 47#else /* __arm__ */ 48#define IEEE_WORD_ORDER BYTE_ORDER 49#endif |
42 | 50 |
51#if IEEE_WORD_ORDER == BIG_ENDIAN 52 |
|
43typedef union 44{ 45 double value; 46 struct 47 { 48 u_int32_t msw; 49 u_int32_t lsw; 50 } parts; 51} ieee_double_shape_type; 52 53#endif 54 | 53typedef union 54{ 55 double value; 56 struct 57 { 58 u_int32_t msw; 59 u_int32_t lsw; 60 } parts; 61} ieee_double_shape_type; 62 63#endif 64 |
55#if BYTE_ORDER == LITTLE_ENDIAN | 65#if IEEE_WORD_ORDER == LITTLE_ENDIAN |
56 57typedef union 58{ 59 double value; 60 struct 61 { 62 u_int32_t lsw; 63 u_int32_t msw; --- 270 unchanged lines hidden --- | 66 67typedef union 68{ 69 double value; 70 struct 71 { 72 u_int32_t lsw; 73 u_int32_t msw; --- 270 unchanged lines hidden --- |