Commit graph

73 commits

Author SHA1 Message Date
Juan Jose Garcia Ripoll
e54d9a6173 Rename type_of -> ecl_t_of 2012-07-05 23:07:34 +02:00
Juan Jose Garcia Ripoll
825fc8cbd3 Cnil and Ct are now part of legacy 2012-06-30 23:01:40 +02:00
Juan Jose Garcia-Ripoll
8441a08c97 VALUES() is now part of legacy.h 2012-06-30 11:48:01 +02:00
Juan Jose Garcia Ripoll
7b79e8d2d7 Hide functions that convert floats to integers 2012-06-10 00:31:47 +02:00
Juan Jose Garcia Ripoll
d9ed24c440 Change ecl_make_(single|double|long)float to ecl_make_*_flat, splitting the name for consistency 2012-06-10 00:09:41 +02:00
Juan Jose Garcia Ripoll
cb1cf92713 Rename ecl_fix() to ecl_fixnum(), just like ecl_long_float() or ecl_double_float() 2012-06-07 23:55:43 +02:00
Juan Jose Garcia Ripoll
235a587cc6 Rename sf(), df(), and the bignum suffixes big_size, big_dim and big_limbs. Old versions moved to legacy.h 2012-06-06 21:08:47 +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
fbd3587b1a Removed further warnings about uninitialized or unused variables and functions 2012-04-11 23:04:27 +02:00
Juan Jose Garcia Ripoll
036cb55928 Fixes to remove warnings about unused variables. Replaced some uses of @(return) with ecl_return*() 2012-04-10 23:20:40 +02:00
Juan Jose Garcia Ripoll
5c0c72f337 Fix error check when FLOOR and CEILING get a complex second argument 2011-08-07 19:24:17 +02:00
Juan Jose Garcia Ripoll
29fa06188a Fixed rounding towards even numbers in ROUND. 2010-12-25 19:29:56 +01:00
Juan Jose Garcia Ripoll
f0793de5b4 New function ecl_signbit() 2010-12-19 20:06:15 +01:00
Juan Jose Garcia Ripoll
4f23ce577c Ported SBCL's FLONUM-TO-STRING to ECL's core (in C).
New function INTEGER-TO-STRING added to ECL's core.
Both FLOAT-TO-STRING and INTEGER-TO-STRING are used in ECL's printer.
FORMAT uses ECL's new FLOAT-TO-STRING.
2010-10-17 14:38:47 +02:00
Juan Jose Garcia Ripoll
e83bd3dfb4 Unboxed type SHORT-FLOAT removed from the core. 2010-08-17 19:47:14 +02:00
Juan Jose Garcia Ripoll
86c211a6a1 Optimize ecl-inl.h for small cons and use of ecl_unlikely. New macros ECL_CONSP, ECL_LISTP, ECL_ATOM, ECL_SYMBOLP 2010-02-27 09:47:05 +01:00
Juan Jose Garcia Ripoll
6e4d572bfb Tag many error checks using ecl_unlikely 2010-02-26 10:43:37 +01:00
Juan Jose Garcia Ripoll
29a988d222 Replaced many calls to ecl_type_error() with the more expressive but uncorrectable FEwrong_type_nth_arg() 2010-02-25 15:32:42 +01:00
Juan Jose Garcia Ripoll
83eddf11f9 Intoduced _ecl_fix_times_fix, _ecl_big_ceiling and _ecl_big_floor. 2010-01-28 23:08:16 +01:00
Juan Jose Garcia Ripoll
484fb955ab Renamed all remaining internal functions that work with bignums. 2009-08-28 22:31:39 +02:00
Juan Jose Garcia Ripoll
44443c10b8 Prefixed the big_register* functions with _ecl_ 2009-08-28 20:06:40 +02:00
Juan Jose Garcia Ripoll
cde8fae5c9 FLOAT-FIX ignores its second value. 2009-08-12 23:55:39 +02:00
Juan Jose Garcia Ripoll
31612d0f48 Fixed typo in cl_imagpart 2009-06-14 21:07:29 +02:00
Juan Jose Garcia Ripoll
0b0e026664 Create constants in cl_core for variants of -0.0 and use them in compiled code. IMAGPART now produces signed zeros for negative real numbers. 2009-06-14 11:48:04 +02:00
Juan Jose Garcia Ripoll
13763bae70 Implement sign comparisons using signbit(), which defaults to (x==y) where it is not available. Since floats may have extra unused bits (long double), we cannot implement eql using bit comparisons 2009-06-13 22:50:28 +02:00
Juan Jose Garcia Ripoll
77cde5c2f8 Several fixes for various compiler warnings. 2009-06-07 00:02:49 +02:00
Juan Jose Garcia Ripoll
5008fdd45f Big patch for introducing NaNs and infinities. 2009-06-04 15:55:13 +02:00
Juan Jose Garcia Ripoll
42fdda5e1c Whenever isfinite is not defined, use finite(). Additionally, in Solaris, load ieefp.h before using this macro. 2009-05-20 19:29:16 +02:00
Juan Jose Garcia Ripoll
020af55b65 FLOOR, CEILING, etc, return a second value that is a signed zero, as in (FLOOR -1.0 -1.0). 2008-12-23 12:19:25 +01:00
Juan Jose Garcia Ripoll
5a41a55a2d Since dpp now generates code that uses 'the_env', it has to be defined in functions that use @(return) 2008-10-11 23:47:40 +02:00
Juan Jose Garcia Ripoll
3f1419fe35 New flag --with-signed-zero (Juanjo). RUN-PROGRAM now returns exit code of program (Josh Elsasser). 2008-10-05 00:04:15 +02:00
jjgarcia
22538df177 FLOAT-SIGN returns the right value on negative zeros. 2008-09-28 20:11:58 +00:00
jjgarcia
767365d964 Rounding of numbers is now performed towards closest even integer, not odd as before. 2008-08-03 15:25:59 +00:00
jjgarcia
924825d457 Missing break statement, caused IMAGPART to return NUL on long doubles 2008-07-25 14:59:09 +00:00
jjgarcia
07e49ba844 Simplify code slightly by removing all direct references to VALUES and NVALUES. 2008-06-28 18:13:40 +00:00
jgarcia
5ef5d32e74 Enforce indent and mode conditions on files 2008-01-26 10:30:41 +00:00
jgarcia
aa3dfe4058 Prefix most functions with 'ecl_' to avoid name collisions when embedding ECL in other libraries 2007-01-18 11:46:07 +00:00
jgarcia
34f8e69dc8 frexpf() takes a _float_ as input. When passed a double it can lead to FPE. 2006-11-11 13:44:21 +00:00
jgarcia
6b5f1fd969 Implemented generic type checker based on ecl type tags and used it to replace multiple assertions. 2006-10-30 10:50:58 +00:00
jgarcia
ffa984809d New functions for type errors with error recovery (ecl_type_error, si:wrong-type-argument). Incorporated this facility to all functions in num_sfun.d and num_co.d, as well as to make_complex() 2006-10-29 10:34:32 +00:00
jgarcia
9aef6425e2 Fixed typo. 2006-10-22 19:03:47 +00:00
jgarcia
ca55a61116 Improved accuracy of long floats in reading, writing and conversion to integers. 2006-10-13 17:29:26 +00:00
jgarcia
a8ba6f5c01 Initital support for long double and immediate short floats. 2006-10-13 17:28:51 +00:00
jgarcia
12799c7305 Move from short/long-float to single/double-float (by L. Brinkhoff) 2006-09-01 15:15:57 +00:00
jjgarcia
d9997268f8 Final fixes to make the new directory structure work with MSVC++ 2006-02-28 14:21:26 +00:00
jjgarcia
936b7fb6f6 Header files are now kept in a directory named 'ecl', so as to avoid name clashes with other headers. 2006-02-28 14:05:47 +00:00
jjgarcia
bb6d96d968 Fixed error which arises with (FLOOR 1/2 1.0d). 2005-10-24 08:38:00 +00:00
japhie
51136f3ef4 - Added possibility of configuring --without-gmp when cross-compiling
to reduce memory usage when true bignums aren't needed (doesn't work
  for native compilation because compiler needs bignums).
2005-09-19 21:52:46 +00:00
jjgarcia
ea7b544af3 Xmas fixes. See CHANGELOG for list of changes. 2005-01-07 11:51:23 +00:00
jjgarcia
6c53cff251 Include math.h before ecl.h so that we can undefine complex in MSVC 2004-11-29 13:09:31 +00:00