| 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_x86.c -- Nonportable component of the floating point code |
| 6 | * |
| 7 | * Copyright (c) 2005, Juan Jose Garcia Ripoll. |
| 8 | * |
| 9 | * See file 'LICENSE' for the copyright details. |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | /* See fpe_none.c for a description. */ |
| 14 | |
| 15 | #ifdef _MSC_VER |
| 16 | # ifdef _WIN64 |
| 17 | # error "This file shouldn't have been included!" |
| 18 | # else |
| 19 | # define ecl_detect_fpe() __asm fwait |
| 20 | # endif |
| 21 | #endif |
| 22 | |
| 23 | #ifdef __GNUC__ |
| 24 | #define ecl_detect_fpe() asm("fwait") |
| 25 | #endif |