Commit graph

19 commits

Author SHA1 Message Date
Marius Gerbershagen
d1718a1f7e ieee-fp: remove old floating point environment workarounds
It is better to let the user disable these features with configure
options than having a bunch of unmaintained workarounds lying around.
2019-06-30 13:04:18 +02:00
Marius Gerbershagen
b891630699 ieee-fp: introduce new macro for toggling between Lisp and C fpe
This is primarly useful for embedding. Lisp code can be safely
executed without leaking the floating point environment into other C
code.
2019-06-30 13:01:06 +02:00
Daniel Kochmański
ea87100a06 long-float: remove conditionalization
Many parts of the source code were bent backward to support builds
without long floats which are always present given we depend expect
c99 compiler.

The corresponding C macros (ECL_LONG_FLOAT) and the *feature*
entry (:long-float) are marked as deprecated in the documentation.
2019-05-24 21:04:59 +00:00
Daniel Kochmański
fdc40520a2 complex float: extend math_dispatch macros and add appropriate stubs 2019-05-15 16:35:11 +02:00
Daniel Kochmański
c2b2941768 fix without_fpe C macro
Closes #317.
2016-12-21 08:27:45 +01:00
Daniel Kochmański
7544863af1 cosmetic: typo 2016-09-06 18:02:53 +02:00
Matthew Mondor
8f07cd58d8 The ECL code no longer uses tabulator characters, they were replaced
by spaces.

A custom script was used to insert/replace Emacs and ViM per-file editor
settings according to their type and the new ECL coding style.
2015-09-03 07:35:47 -04:00
Juan Jose Garcia Ripoll
e54d9a6173 Rename type_of -> ecl_t_of 2012-07-05 23:07:34 +02:00
Juan Jose Garcia Ripoll
64a9168434 CHARACTERP, BASE_CHAR_P, BASE_CHAR_CODE_P, CODE_CHAR, CHAR_CODE, REAL_TYPE, IMMEDIATE, IMMEDIATE_TAG, FIXNUM_TAG, FIXNUM_MINUSP, FIXNUM_PLUSP, FIXNUMP and fix get the ecl_ prefix 2012-06-06 11:19:55 +02:00
Juan Jose Garcia Ripoll
b8ee75a5af Avoid including fenv.h twice 2011-03-25 23:03:33 +01:00
Juan Jose Garcia Ripoll
f7328fb74a In impl/math_fenv.h, define FE_OVERFLOW to allow processing of NaN/inf as error conditions in platforms without fenv.h 2010-12-10 20:48:35 +01:00
Juan Jose Garcia Ripoll
a995a89c1d Fix detection of NaN/inf for platforms without fenv.h 2010-12-02 22:46:40 +01:00
Juan Jose Garcia Ripoll
6a27599282 Fix warning about duplicate definition of _GNU_SOURCE (J. Jaakkola) 2010-11-19 18:08:05 +01:00
Juan Jose Garcia Ripoll
3801f5dfe3 Added a new file, impl/math_fenv.h, grouping all definitions related to floating point exceptions and their handling. This is completed with impl/math_fenv_msvc.h with inline definitions of the C99 fenv.h functions for Microsoft's compiler 2010-11-09 00:44:12 +01:00
Juan Jose Garcia Ripoll
729baa8935 Split +,-,*,/ into separate files with a slightly more compact dispatch 2010-11-04 23:40:11 +01:00
Juan Jose Garcia Ripoll
bfb526a46c Slight optimization of math dispatch (smaller code by inlining typeof) 2010-11-02 18:09:44 +01:00
Juan Jose Garcia Ripoll
58105da96b The dispatch function for maths allows different code for bignums, fixnums and ratios 2010-11-02 16:50:29 +01:00
Juan Jose Garcia Ripoll
7838cb5897 In OS X, inline fetestexcept() and feclearexcept(). 2010-11-01 23:07:49 +01:00
Juan Jose Garcia Ripoll
b363bd53aa Split num_sfun.d into multiple files, each one implementing one dispatch routine, as inlined from impl/math_dispatch.h 2010-11-01 19:45:05 +01:00