38#ifndef _MACHINE_IEEEFP_H_
39#define _MACHINE_IEEEFP_H_
76#define fp_except_t int
92#define FP_MSKS_FLD 0x3f
93#define FP_PRC_FLD 0x300
94#define FP_RND_FLD 0xc00
99#define FP_STKY_FLD 0x3f
116#define __fldcw(addr) __asm __volatile("fldcw %0" : : "m" (*(addr)))
117#define __fldenv(addr) __asm __volatile("fldenv %0" : : "m" (*(addr)))
118#define __fnclex() __asm __volatile("fnclex")
119#define __fnstcw(addr) __asm __volatile("fnstcw %0" : "=m" (*(addr)))
120#define __fnstenv(addr) __asm __volatile("fnstenv %0" : "=m" (*(addr)))
121#define __fnstsw(addr) __asm __volatile("fnstsw %0" : "=m" (*(addr)))
131__fnldcw(
unsigned short _cw,
unsigned short _newcw)
164 unsigned short _cw, _newcw;
168 _newcw = _cw & ~FP_RND_FLD;
170 __fnldcw(_cw, _newcw);
189 unsigned short _cw, _newcw;
193 _newcw = _cw & ~FP_PRC_FLD;
195 __fnldcw(_cw, _newcw);
218 unsigned short _cw, _newcw;
222 _newcw = _cw & ~FP_MSKS_FLD;
224 __fnldcw(_cw, _newcw);
251 if ((_p & ~_m) == _p)
253 if ((_p & ~_m) == 0) {
OLM_DLLEXPORT fp_prec_t fpsetprec(fp_prec_t _m)
OLM_DLLEXPORT fp_prec_t fpgetprec(void)