summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-12-04 10:52:48 +0000
committerdfr <dfr@FreeBSD.org>1998-12-04 10:52:48 +0000
commit8f01fff32f94dc39467983f7207be602213d0730 (patch)
tree008714999f57f4465bc9805f8d58777620fd1a81 /sys/compat/linux/linux_misc.c
parent20107e8f4764aa3175f409771cda14a671f81324 (diff)
downloadFreeBSD-src-8f01fff32f94dc39467983f7207be602213d0730.zip
FreeBSD-src-8f01fff32f94dc39467983f7207be602213d0730.tar.gz
Implement 'software completion' for floating point arithmetic. On the
alpha, operations involving non-finite numbers or denormalised numbers or operations which should generate such numbers will cause an arithmetic exception. For programs which follow some strict code generation rules, the kernel trap handler can then 'complete' the operation by emulating the faulting instruction. To use software completion, a program must be compiled with the arguments '-mtrap-precision=i' and '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Programs compiled in this way can use non-finite and denormalised numbers at the expense of slightly less efficient code generation of floating point instructions. Programs not compiled with these options will receive a SIGFPE signal when non-finite or denormalised numbers are used or generated. Reviewed by: John Polstra <jdp@polstra.com>
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud