|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3099 (0xc1b) Types: TextFile Notes: UNIX file Names: »fp.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦a6ab2eb36⟧ UNIX Filesystem └─⟦this⟧ »kc/new/usr/include/sys/fp.h«
/* Copyright (c) 1984 AT&T */ /* All Rights Reserved */ /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */ /* The copyright notice above does not evidence any */ /* actual or intended publication of such source code. */ #ident "@(#)fp.h 1.9 - 88/06/17" /* * 80287/80387 floating point processor definitions */ /* * values that go into fp_kind */ #define FP_NO 0 /* no fp chip, no emulator (no fp support) */ #define FP_SW 1 /* no fp chip, using software emulator */ #define FP_HW 2 /* chip present bit */ #define FP_287 2 /* 80287 chip present */ #define FP_387 3 /* 80387 chip present */ /* * masks for 80387 control word */ #define FPINV 0x00000001 /* invalid operation */ #define FPDNO 0x00000002 /* denormalized operand */ #define FPZDIV 0x00000004 /* zero divide */ #define FPOVR 0x00000008 /* overflow */ #define FPUNR 0x00000010 /* underflow */ #define FPPRE 0x00000020 /* precision */ #define FPPC 0x00000300 /* precision control */ #define FPRC 0x00000C00 /* rounding control */ #define FPIC 0x00001000 /* infinity control */ #define WFPDE 0x00000080 /* data chain exception */ /* * precision, rounding, and infinity options in control word */ #define FPSIG24 0x00000000 /* 24-bit significand precision (short) */ #define FPSIG53 0x00000200 /* 53-bit significand precision (long) */ #define FPSIG64 0x00000300 /* 64-bit significand precision (temp) */ #define FPRTN 0x00000000 /* round to nearest or even */ #define FPRD 0x00000400 /* round down */ #define FPRU 0x00000800 /* round up */ #define FPCHOP 0x00000C00 /* chop (truncate toward zero) */ #define FPP 0x00000000 /* projective infinity */ #define FPA 0x00001000 /* affine infinity */ #define WFPB17 0x00020000 /* bit 17 */ #define WFPB24 0x01000000 /* bit 24 */ /* * Status word definitions */ /* * Use the Control word definitions for exceptions since the bits end * up in the same place. */ #define FPERRS 0x00000080 /* Error summary: on if unmasked excp */ #define FPC0 0x00000100 /* C0 condition code bit */ #define FPC1 0x00000200 /* C1 condition code bit */ #define FPC2 0x00000400 /* C2 condition code bit */ #define FPC3 0x00004000 /* C3 condition code bit */ #define FPST 0x00003800 /* Stack top register index */ #define FPBSY 0x00008000 /* Unit is busy */ extern char fp_kind; /* kind of fp support */ extern struct proc *fp_proc; /* process that owns the fp unit */