[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-24
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-2406-ged310df |
Date: |
Sun, 15 Jan 2017 19:21:39 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/api-mpfr has been updated
via ed310df632070db175d86e02fce3e4d2515d7066 (commit)
via 0c3c1a2aa8318e0035f90fc3a5d30de470d949b3 (commit)
via 2fd82e70b4a9b85427a126f103841ebcb8e8bb16 (commit)
from 50ff28c905e8bb7c79b45db1f3f18a4b3e485adc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=ed310df632070db175d86e02fce3e4d2515d7066
commit ed310df632070db175d86e02fce3e4d2515d7066
Merge: 50ff28c 0c3c1a2
Author: Arnold D. Robbins <address@hidden>
Date: Sun Jan 15 21:21:31 2017 +0200
Merge branch 'master' into feature/api-mpfr
diff --cc ChangeLog
index 0e73da2,ea490ad..c741b4a
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,45 -1,10 +1,52 @@@
+ 2017-01-15 Andrew J. Schorr <address@hidden>
+
+ * interpret.h (r_interpret): Fix bug in Op_assign_concat reported
+ on Cygwin mailing list. The string concatenation optimization was
+ not updating the node correctly by setting STRING and STRCUR flags
+ and setting stfmt.
+
+2017-01-06 Andrew J. Schorr <address@hidden>
+
+ Enhance API to support extended-precision arithmetic.
+ * awk.h (enum block_id): Add new values BLOCK_MPFR and BLOCK_MPZ.
+ (make_number_node): New inline function to reduce code duplication
+ for creating numeric nodes.
+ * gawkapi.h (gawk_api_major_version): Bump to 3.
+ (awk_number_t): New typedef to represent numbers with varying internal
+ representations.
+ (awk_value_t): For numbers, replace double with awk_number_t.
+ (num_value): Redefine.
+ (num_type, num_ptr): New defines for awk_number_t union members.
+ (gawk_api_t): Add constants for version checking: gmp_major_version,
+ gmp_minor_version, mpfr_major_version, and mpfr_minor_version.
+ Add functions api_get_mpfr and api_get_mpz to allocate memory for
+ extended-precision numbers to hand to gawk.
+ (get_mpfr_ptr, get_mpz_ptr): Helper macros to warp api_get_mpfr and
+ api_get_mpz.
+ (make_number): Modify to populate awk_number_t correctly.
+ (make_number_mpz, make_number_mpfr): New helper functions to create
+ extended-precision numeric nodes.
+ (check_mpfr_version): New macro to check GMP/MPFR version compatibility
+ in extensions that want to support extended-precision math.
+ * gawkapi.c (getmpfr, freempfr, getmpz, freempz): New macros to
+ allocate and free memory blocks for extended-precision math.
+ (awk_value_to_node): For AWK_NUMBER values, support 3 different kinds
+ of internal numbers: double, mpz_t, and mpfr_t.
+ (assign_number): New helper function to convert a numeric node to
+ an awk_value_t.
+ (node_to_awk_value): Use assign_number in a couple of places to
+ pass numbers properly.
+ (api_get_mpfr): Implement new api_get_mpfr hook.
+ (api_get_mpfz): Implement new api_get_mpz hook.
+ (api_impl): Add GMP & MPFR versions, api_get_mpfr, and api_get_mpz.
+ * node.c (r_make_number): Use new make_number_node inline function
+ to reduce code duplication.
+ (nextfree): Add block allocators for mpfr_t and mpz_t.
+ (more_blocks): Add an assert to protect against cases where the block
+ size is too small to hold our structure.
+ * mpfr.c (mpg_node): Use new make_number_node inline function
+ to reduce code duplication.
+
2017-01-04 Arnold Robbins <address@hidden>
* config.guess, config.sub, compile, depcomp: Sync from latest
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
interpret.h | 6 ++++--
test/ChangeLog | 6 ++++++
test/Makefile.am | 4 +++-
test/Makefile.in | 9 ++++++++-
test/Maketests | 5 +++++
test/concat5.awk | 7 +++++++
test/concat5.ok | 1 +
8 files changed, 41 insertions(+), 4 deletions(-)
create mode 100644 test/concat5.awk
create mode 100644 test/concat5.ok
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-2406-ged310df,
Arnold Robbins <=