/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1986 by Sun Microsystems, Inc.
*/
#ifndef _SYS_FSR_H
#define _SYS_FSR_H
#pragma ident "%Z%%M% %I% %E% SMI" /* from SunOS psl.h 1.2 */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Floating Point State Register (FSR)
*
* Notes:
* On v9 cpus, the fsr is 64b.
* On v7 and v8 cpus, it is 32b.
*
* FCC1 thru FCC3 are v9 only.
* RP is v7 only (v8 dropped extended precision).
* PR was dropped before v7.
*
* |------------------------------------------------------------------------|
* | --- | FCC3 | FCC2 | FCC1 |
* |---------------------------------------------------|------|------|------|
* 63 38 37 36 35 34 33 32
*
* |------------------------------------------------------------------------|
* | RD | RP | TEM | NS | --- | VER | FTT | QNE | PR | FCC0 | AEXC | CEXC |
* |-----|-----|-----|----|-----|-----|-----|-----|----|------|------|------|
* 31 30 29 28 27 23 22 21 20 19 17 16 14 13 12 11 10 9 5 4 0
*/
/*
* Definition of CEXC (Current EXCeption) bit field of fsr
*/
/*
* Definition of AEXC (Accrued EXCeption) bit field of fsr
*/
/*
* Definition of FTT (Floating-point Trap Type) field within the FSR
*/
/*
* Definition of TEM (Trap Enable Mask) bit field of fsr
*/
/*
* Definition of RP (Rounding Precision) field of fsr
*/
/*
* Definition of RD (Rounding Direction) field of fsr
*/
/*
* Floating Point Registers State (FPRS)
* (For V9 only)
*
* |---------------|
* | FEF | DU | DL |
* |-----|----|----|
* 2 1 0
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FSR_H */