Dataflow Runtime API
4.0.1.0
|
Macros | |
#define | fp_except_t int |
#define | FP_X_INV 0x01 /* invalid operation */ |
#define | FP_X_DNML 0x02 /* denormal */ |
#define | FP_X_DZ 0x04 /* zero divide */ |
#define | FP_X_OFL 0x08 /* overflow */ |
#define | FP_X_UFL 0x10 /* underflow */ |
#define | FP_X_IMP 0x20 /* (im)precision */ |
#define | FP_X_STK 0x40 /* stack fault */ |
#define | FP_MSKS_FLD 0x3f /* exception masks field */ |
#define | FP_PRC_FLD 0x300 /* precision control field */ |
#define | FP_RND_FLD 0xc00 /* rounding control field */ |
#define | FP_STKY_FLD 0x3f /* sticky flags field */ |
#define | FP_MSKS_OFF 0 /* exception masks offset */ |
#define | FP_PRC_OFF 8 /* precision control offset */ |
#define | FP_RND_OFF 10 /* rounding control offset */ |
#define | FP_STKY_OFF 0 /* sticky flags offset */ |
#define | __fldcw(addr) __asm __volatile("fldcw %0" : : "m" (*(addr))) |
#define | __fldenv(addr) __asm __volatile("fldenv %0" : : "m" (*(addr))) |
#define | __fnclex() __asm __volatile("fnclex") |
#define | __fnstcw(addr) __asm __volatile("fnstcw %0" : "=m" (*(addr))) |
#define | __fnstenv(addr) __asm __volatile("fnstenv %0" : "=m" (*(addr))) |
#define | __fnstsw(addr) __asm __volatile("fnstsw %0" : "=m" (*(addr))) |
Enumerations | |
enum | fp_rnd_t { FP_RN =0 , FP_RM , FP_RP , FP_RZ } |
enum | fp_prec_t { FP_PS =0 , FP_PRS , FP_PD , FP_PE } |
Functions | |
OLM_DLLEXPORT fp_prec_t | fpgetprec (void) |
OLM_DLLEXPORT fp_prec_t | fpsetprec (fp_prec_t _m) |
#define __fldcw | ( | addr | ) | __asm __volatile("fldcw %0" : : "m" (*(addr))) |
#define __fldenv | ( | addr | ) | __asm __volatile("fldenv %0" : : "m" (*(addr))) |
#define __fnclex | ( | ) | __asm __volatile("fnclex") |
#define __fnstcw | ( | addr | ) | __asm __volatile("fnstcw %0" : "=m" (*(addr))) |
#define __fnstenv | ( | addr | ) | __asm __volatile("fnstenv %0" : "=m" (*(addr))) |
#define __fnstsw | ( | addr | ) | __asm __volatile("fnstsw %0" : "=m" (*(addr))) |
#define fp_except_t int |
#define FP_MSKS_FLD 0x3f /* exception masks field */ |
#define FP_MSKS_OFF 0 /* exception masks offset */ |
#define FP_PRC_FLD 0x300 /* precision control field */ |
#define FP_PRC_OFF 8 /* precision control offset */ |
#define FP_RND_FLD 0xc00 /* rounding control field */ |
#define FP_RND_OFF 10 /* rounding control offset */ |
#define FP_STKY_FLD 0x3f /* sticky flags field */ |
#define FP_STKY_OFF 0 /* sticky flags offset */ |
#define FP_X_DNML 0x02 /* denormal */ |
#define FP_X_DZ 0x04 /* zero divide */ |
#define FP_X_IMP 0x20 /* (im)precision */ |
#define FP_X_INV 0x01 /* invalid operation */ |
#define FP_X_OFL 0x08 /* overflow */ |
#define FP_X_STK 0x40 /* stack fault */ |
#define FP_X_UFL 0x10 /* underflow */ |
enum fp_prec_t |
enum fp_rnd_t |
OLM_DLLEXPORT fp_prec_t fpgetprec | ( | void | ) |
OLM_DLLEXPORT fp_prec_t fpsetprec | ( | fp_prec_t | _m | ) |