ieeefp.h (1862) | ieeefp.h (13765) |
---|---|
1/*- 2 * Copyright (c) 1990 Andrew Moore, Talke Studio 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#) ieeefp.h 1.0 (Berkeley) 9/23/93 | 1/*- 2 * Copyright (c) 1990 Andrew Moore, Talke Studio 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#) ieeefp.h 1.0 (Berkeley) 9/23/93 |
34 * $Id: ieeefp.h,v 1.1 1994/08/04 19:16:37 wollman Exp $ | 34 * $Id: ieeefp.h,v 1.2 1994/08/05 14:36:04 wollman Exp $ |
35 */ 36 37/* 38 * IEEE floating point type and constant definitions. 39 */ 40 41#ifndef _MACHINE_IEEEFP_H_ 42#define _MACHINE_IEEEFP_H_ --- 4 unchanged lines hidden (view full) --- 47typedef enum { 48 FP_RN=0, /* round to nearest */ 49 FP_RM, /* round down to minus infinity */ 50 FP_RP, /* round up to plus infinity */ 51 FP_RZ /* truncate */ 52} fp_rnd_t; 53 54/* | 35 */ 36 37/* 38 * IEEE floating point type and constant definitions. 39 */ 40 41#ifndef _MACHINE_IEEEFP_H_ 42#define _MACHINE_IEEEFP_H_ --- 4 unchanged lines hidden (view full) --- 47typedef enum { 48 FP_RN=0, /* round to nearest */ 49 FP_RM, /* round down to minus infinity */ 50 FP_RP, /* round up to plus infinity */ 51 FP_RZ /* truncate */ 52} fp_rnd_t; 53 54/* |
55 * FP precison modes | 55 * FP precision modes |
56 */ 57typedef enum { | 56 */ 57typedef enum { |
58 FP_PS=0, /* 24 bit (single-precsion) */ | 58 FP_PS=0, /* 24 bit (single-precision) */ |
59 FP_PRS, /* reserved */ 60 FP_PD, /* 53 bit (double-precision) */ | 59 FP_PRS, /* reserved */ 60 FP_PD, /* 53 bit (double-precision) */ |
61 FP_PE /* 64 bit (extended-precsion) */ | 61 FP_PE /* 64 bit (extended-precision) */ |
62} fp_prec_t; 63 64#define fp_except_t int 65 66/* 67 * FP exception masks 68 */ 69#define FP_X_INV 0x01 /* invalid operation */ --- 31 unchanged lines hidden --- | 62} fp_prec_t; 63 64#define fp_except_t int 65 66/* 67 * FP exception masks 68 */ 69#define FP_X_INV 0x01 /* invalid operation */ --- 31 unchanged lines hidden --- |