| 1 | /* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */ |
| 2 | /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */ |
| 3 | |
| 4 | /* |
| 5 | * fpe_none.c -- Nonportable component of the floating point code (dummy) |
| 6 | * |
| 7 | * Copyright (c) 2005, Juan Jose Garcia Ripoll. |
| 8 | * |
| 9 | * See file 'LICENSE' for the copyright details. |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | /* |
| 14 | * The ecl_detect_fpe() is a macro (or a function) that detects whether a |
| 15 | * floating point exception has been produced in a recent time. Currently |
| 16 | * it is of great importance in the x86 architecture because exceptions |
| 17 | * are not signaled on the instruction that originates the problem, but on |
| 18 | * the next FP instruction. However, we could conceivably write a more |
| 19 | * complex code on architectures that do not signal FP exceptions by |
| 20 | * checking the control word of the FPU and doing the dispatching ourselves |
| 21 | * instead of using signal(). |
| 22 | */ |
| 23 | |
| 24 | #define ecl_detect_fpe() (void)0 |