10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
24 */
25 /*
26 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
27 * Use is subject to license terms.
28 */
29
30 #pragma weak remquol = __remquol
31
32 #include "libm.h"
33 #include "libm_synonyms.h"
34 #if defined(__SUNPRO_C)
35 #include <sunmath.h> /* fabsl */
36 #endif
37 /* INDENT OFF */
38 static const int
39 is = -0x7fffffff - 1,
40 im = 0x0000ffff,
41 iu = 0x00010000;
42
43 static const long double zero = 0.0L, one = 1.0L;
44 /* INDENT ON */
45
46 #if defined(__sparc)
47 #define __H0(x) ((int *) &x)[0]
48 #define __H1(x) ((int *) &x)[1]
49 #define __H2(x) ((int *) &x)[2]
50 #define __H3(x) ((int *) &x)[3]
51 #else
52 #error Unsupported architecture
53 #endif
|
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
24 */
25 /*
26 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
27 * Use is subject to license terms.
28 */
29
30 #pragma weak __remquol = remquol
31
32 #include "libm.h"
33 #if defined(__SUNPRO_C)
34 #include <sunmath.h> /* fabsl */
35 #endif
36 /* INDENT OFF */
37 static const int
38 is = -0x7fffffff - 1,
39 im = 0x0000ffff,
40 iu = 0x00010000;
41
42 static const long double zero = 0.0L, one = 1.0L;
43 /* INDENT ON */
44
45 #if defined(__sparc)
46 #define __H0(x) ((int *) &x)[0]
47 #define __H1(x) ((int *) &x)[1]
48 #define __H2(x) ((int *) &x)[2]
49 #define __H3(x) ((int *) &x)[3]
50 #else
51 #error Unsupported architecture
52 #endif
|