4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI" /* SunOS4.0 1.6 */
37 * Sun types for IEEE floating point.
42 enum fp_direction_type
{ /* rounding direction */
49 enum fp_precision_type
{ /* extended rounding precision */
56 enum fp_exception_type
{ /* exceptions according to bit number */
64 enum fp_trap_enable_type
{ /* trap enable bits according to bit number */
67 fp_trap_underflow
= 2,
72 #elif defined(__i386) || defined(__amd64)
74 enum fp_direction_type
{ /* rounding direction */
81 enum fp_precision_type
{ /* extended rounding precision */
88 enum fp_exception_type
{ /* exceptions according to bit number */
97 enum fp_trap_enable_type
{ /* trap enable bits according to bit number */
99 fp_trap_denormalized
= 1,
100 fp_trap_division
= 2,
101 fp_trap_overflow
= 3,
102 fp_trap_underflow
= 4,
106 #endif /* __i386 || __amd64 */
108 enum fp_class_type
{ /* floating-point classes */
121 #endif /* _SYS_IEEEFP_H */