Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
*/
#ifndef __FPSR_H__ #define __FPSR_H__
/* The FPSR is a 32 bit register consisting of 4 parts, each exactly one byte.
SYSTEM ID EXCEPTION TRAP ENABLE BYTE SYSTEM CONTROL BYTE CUMULATIVE EXCEPTION FLAGS BYTE
The FPCR is a 32 bit register consisting of bit flags.
*/
/* SYSTEM ID ------------
Note: the system id byte is read only */
typedefunsignedint FPSR; /* type for floating point status register */ typedefunsignedint FPCR; /* type for floating point control register */
#define MASK_SYSID 0xff000000 #define BIT_HARDWARE 0x80000000 #define FP_EMULATOR 0x01000000 /* System ID for emulator */ #define FP_ACCELERATOR 0x81000000 /* System ID for FPA11 */
#define BIT_AC 0x00001000 /* use alternative C-flag definition
for compares */ #define BIT_EP 0x00000800 /* use expanded packed decimal format */ #define BIT_SO 0x00000400 /* select synchronous operation of FPA */ #define BIT_NE 0x00000200 /* NaN exception bit */ #define BIT_ND 0x00000100 /* no denormalized numbers bit */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.