Commit Graph

72 Commits

Author SHA1 Message Date
Jameson Nash
b190082731 gdtoa: Sync to match the latest version at netlib.org
As of Jan. 06 2023. Changelog from http://netlib.org/fp/changes (filtered):

20121220
  dtoa.c and gdtoa.tgz:  to avoid a possible one-time race when
Infinity or NaN appear in decimal->binary conversions done in parallel
threads, replace hexdig_init() with static initialization.

20131209
  dtoa.c, gdtoa.tgz: when strtod computes its starting approximation,
allow z to involve one more digit for IEEE arithmetic and two more
digits for IBM-mainframe and VAX arithmetics.  Thanks to Walter Qian
(water.qian@gmail.com) for suggesting this change, which makes some
conversions faster.

20151020
  dtoa.c:  add a test for dtoa() to return "1" under mode 4 when
converting some very small powers of 10, such as 1e-322 with
ndigits = 4 and 1e-319 with ndigits = 7 (examples provided by
jay.foad@gmail.com).

20160219
  gdtoa.tgz: Adjust gdtoa(...,mode,...) to assume
"round near" when mode is 0 or 1.  Make various tweaks to banish
(useless) warnings from "gcc -Wall -Wextra".  Thanks to Jarkko
Hietaniemi <jhi@iki.fi> for advocating the latter exercise (and
correcting a typo in README).

20160307
  dtoa.c:  fix glitches with floating-point values in hexadecimal
notation:  some values that should overflow to (appropriately signed)
Infinity, such as 0x1p1025, were mishandled, and values greater than
0x1p-1075 and less than 0x1.0000000000001p-1075 where treated as zero
rather than the smallest denormal number.
  gdtoa.tgz:  fix a bug with hexadecimal input greater than the
smallest denormal and less than the smallest denormal times the
smallest number greater than one.  In round-to-nearest values, such
values should round to the smallest denormal rather than to zero.
Thanks to Albert Chan <albertmcchan@yahoo.com> for bug reports.

20160325
  dtoa.c:  fix a bug whereby dtoa(...,mode,...) with, e.g., mode = 2 or
3 could return a string with trailing zeros, contrary to specification.
An example provided by Albert Chan:  dtoa(81320560005., 2, 10,...).
  gdtoa.tgz: fix the analogous bug in gdtoa/dtoa.c and gdtoa/gdtoa.c
and apply the bug fix of 20151020 to gdtoa/dtoa.c.

20160429
  dtoa.c, gdtoa.tgz (file dtoa.c):  Fix a bug with dtoa mode 0 when
Honor_FLT_ROUNDS is defined:  with some inputs and nondefault rounding
modes (e.g., 1.23 with round toward zero), the returned string was off
by one.  When the new 64-bit integer logic is used, the test in
question is very unlikely to be used.  This is another bug reported by
Albert Chan.

20160505
  dtoa.c:  fix some glitches in strtod() when Honor_FLT_ROUNDS is
defined:  zero was returned for some decimal values that should have
been rounded to +- the smallest denormal, and +-Infinity was returned
for some hexadecimal strings with huge values that should have been
rounded to +- the largest finite value.

20160506
  gdtoa.tgz: analogous bug fixes to those of 20160505.

20180730
  strtodg.c in gdtoa.c:  fix a glitch, introduced 20160506, with some
return values of +-Infinity:  the STRTOG_Overflow bit was not set.
2023-06-12 23:51:11 +03:00
Pali Rohár
ae2c774d17 crt: Fix -Wimplicit-fallthrough for gdtoa
gdtoa/gethex.c: In function ‘__gethex_D2A’:
    gdtoa/gethex.c:127:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
        esign = 1;
        ~~~~~~^~~
    gdtoa/gethex.c:129:5: note: here
         case '+':
         ^~~~
    gdtoa/dtoa.c: In function ‘__dtoa’:
    gdtoa/dtoa.c:284:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
        leftright = 0;
        ~~~~~~~~~~^~~
    gdtoa/dtoa.c:286:3: note: here
       case 4:
       ^~~~
    gdtoa/dtoa.c:292:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
        leftright = 0;
        ~~~~~~~~~~^~~
    gdtoa/dtoa.c:294:3: note: here
       case 5:
       ^~~~
    gdtoa/gdtoa.c: In function ‘__gdtoa’:
    gdtoa/gdtoa.c:272:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
        leftright = 0;
        ~~~~~~~~~~^~~
    gdtoa/gdtoa.c:274:3: note: here
       case 4:
       ^~~~
    gdtoa/gdtoa.c:280:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
        leftright = 0;
        ~~~~~~~~~~^~~
    gdtoa/gdtoa.c:282:3: note: here
       case 5:
       ^~~~
    gdtoa/strtodg.c: In function ‘__strtodg’:
    gdtoa/strtodg.c:311:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
        sign = 1;
        ~~~~~^~~
    gdtoa/strtodg.c:313:3: note: here
       case '+':
       ^~~~
    gdtoa/strtodg.c:314:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
        if (*++s)
           ^
    gdtoa/strtodg.c:317:3: note: here
       case 0:
       ^~~~
    gdtoa/strtodg.c:413:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
         esign = 1;
         ~~~~~~^~~
    gdtoa/strtodg.c:414:4: note: here
        case '+':
        ^~~~

Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-12-19 22:14:32 +08:00
Martin Storsjö
54bbe83dfe crt: Split out the strtold/wcstold frontend aliases to separate object files
This avoids linker conflicts if object files refer to both 'strtold'
or 'wcstold' and include them from libucrt*.a before other object
files pull in the __mingw_* counterparts.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-18 14:32:23 +03:00
Martin Storsjö
73806c0709 crt: Use the __mingw_strtold implementation for strtold, too
The second implementation, which was under the 'strtold' name, was
lacking (it didn't support e.g. strings like "0x125p-1"), while the
'__mingw_strtold' one seemed correct and complete.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-06-08 11:41:17 +03:00
Martin Storsjö
2beac2e332 crt: Fix sscanf with double/long double output for arm
The __mingw_*scanf functions use __mingw_strtold for both double and
long double output, but previously the __mingw_strtold function
produced the x86 80 bit long double format, regardless of architecture.

Instead skip the function that produces 80 bit doubles, and make
__mingw_strtold an alias for __mingw_strtod.

Signed-off-by: Martin Storsjö <martin@martin.st>
2019-12-04 15:11:27 +02:00
Jonathan Yong
e09effa2fc strtod C compliant aliases
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5537 4407c894-4637-0410-b4f5-ada5f102cad1
2013-01-11 16:20:29 +00:00
Kai Tietz
bb36a56ac3 * gdtoa/dg_qnan.h: Make Nan constants positive valued.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5361 4407c894-4637-0410-b4f5-ada5f102cad1
2012-08-08 17:51:28 +00:00
Kai Tietz
87b280cff9 Fix Nan to use QNAN with proper _1/_0 indexes.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5360 4407c894-4637-0410-b4f5-ada5f102cad1
2012-08-08 14:56:05 +00:00
Kai Tietz
288eb3dbf5 PR 3521401
* gdtoa/strtodnrp.c (__strtod): Add Int_max initializer to fpi.
        * gdtoa/strtof.c (__strtof): Add Int_max initializer to fpi0.
        * gdtoa/strtopx.c (__strtopx): Add Int_max initializer to fpi0.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4970 4407c894-4637-0410-b4f5-ada5f102cad1
2012-05-02 08:54:36 +00:00
Ozkan Sezer
f64ee42328 gdtoa: Sync to match the latest version at netlib.org as of Nov. 02
2011.  Changelog from http://netlib.org/fp/changes :
    Add field int_max to struct FPI and adjust gdtoa.c and *fmt.c
    so gdtoa.c tests against fpi->int_max rather than Int_max. This
    only affects some conversions by g_ffmt.c, which in some cases
    produced too many digits.

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4577 4407c894-4637-0410-b4f5-ada5f102cad1
2011-11-04 07:36:36 +00:00
Ozkan Sezer
eae25930cb * gdtoa/gdtoa.c, gdtoa/gdtoa.h, gdtoa/gdtoaimp.h: Sync gdtoa to
match the latest version at netlib.org as of 2011-03-21.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4151 4407c894-4637-0410-b4f5-ada5f102cad1
2011-04-26 07:12:11 +00:00
Kai Tietz
09562589ec Resolve conflicting symbol in combination with libquadmath of 4.6
(This fix should be moved to 1.0 branch, too)


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@3830 4407c894-4637-0410-b4f5-ada5f102cad1
2010-11-30 15:31:36 +00:00
Ozkan Sezer
8f8460fba4 update readme file
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@3682 4407c894-4637-0410-b4f5-ada5f102cad1
2010-09-30 16:02:49 +00:00
Ozkan Sezer
31102f30cd Update gdtoa from netlib.org based on cahnges from Sep. 15, 2010:
* gdtoa/g_dfmt.c (__g_dfmt): Set the STRTOG_Neg flag for __gdtoa()
call if sign is found.
* gdtoa/dtoa.c (__dtoa): Fix bugs with -DROUND_BIASED.
* gdtoa/gdtoa.c (__gdtoa): Likewise.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@3617 4407c894-4637-0410-b4f5-ada5f102cad1
2010-09-24 07:29:40 +00:00
Ozkan Sezer
b70ccce6fc The portions we make use of gdtoa are still in sync with the
official release at netlib.org/fp as of Jan. 23, 2010. thusly
adjusted the README.mingw file.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1813 4407c894-4637-0410-b4f5-ada5f102cad1
2010-01-29 12:01:11 +00:00
Ozkan Sezer
a7d13bae06 whitespace tidy-up
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1592 4407c894-4637-0410-b4f5-ada5f102cad1
2009-12-02 08:56:55 +00:00
Kai Tietz
258dbed086 2009-12-01 Kai Tietz <kai.tietz@onevision.com>
Merged from mingw.org's repository.
        2009-11-25  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1589 4407c894-4637-0410-b4f5-ada5f102cad1
2009-12-01 14:42:23 +00:00
Ozkan Sezer
76b5630649 2009-08-29 Ozkan Sezer <sezeroz@gmail.com>
* mingw-w64-crt/gdtoa/dtoa.c: Fix -Wshadow warnings.
	* mingw-w64-crt/gdtoa/gdtoa.c: Likewise.
	* mingw-w64-crt/gdtoa/gethex.c: Likewise.
	* mingw-w64-crt/gdtoa/strtodg.c: Likewise.
	* mingw-w64-crt/gdtoa/strtodnrp.c: Likewise.
	* mingw-w64-crt/gdtoa/strtof.c: Likewise.
	* mingw-w64-crt/gdtoa/strtopx.c: Likewise.
	* mingw-w64-crt/stdio/mingw_pformat.c: Likewise.
	* mingw-w64-crt/misc/strtold.c: Likewise. Whitespace/indentation tidy-up.
	* mingw-w64-crt/math/cephes_emath.c: Likewise. Whitespace/indentation tidy-up.
	* mingw-w64-crt/math/cephes_emath.h: Likewise. Whitespace/indentation tidy-up.
	* mingw-w64-crt/math/cephes_mconf.h: Whitespace/indentation tidy-up.

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1278 4407c894-4637-0410-b4f5-ada5f102cad1
2009-08-29 20:33:52 +00:00
Kai Tietz
022fcbaccb Fix -Wextra 1/4.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1199 4407c894-4637-0410-b4f5-ada5f102cad1
2009-08-23 05:22:57 +00:00
Kai Tietz
47d3f5f4a2 Fix -Wextra warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1198 4407c894-4637-0410-b4f5-ada5f102cad1
2009-08-22 19:57:51 +00:00
Ozkan Sezer
daabd71049 define WIN32_LEAN_AND_MEAN if not defined already.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1193 4407c894-4637-0410-b4f5-ada5f102cad1
2009-08-22 18:11:19 +00:00
Kai Tietz
76c801b89d 2009-06-27 Kai Tietz <kai.tietz@onevision.com>
* gdtoa/strtof.c (__strtof): Pre initialize local variable u to
        avoid warning.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@968 4407c894-4637-0410-b4f5-ada5f102cad1
2009-06-27 11:00:06 +00:00
Ozkan Sezer
c8ed1a42fb 2009-04-20 Ozkan Sezer <sezeroz@gmail.com>
FR/2619978:
	* mingw-w64-crt/gdtoa/strtof.c, mingw-w64-crt/gdtoa/strtopx.c:  Prepend
	the strtof and strtold symbols with '__mingw_' to provide both of strtof
	and strtold which rely on msvcrt, and __mingw_strtof and __mingw_strtold
	which rely on the internal gdtoa library.
	* mingw-w64-headers/include/stdlib.h:  Properly provide the prototypes
	for __mingw_strtof and __mingw_strtold.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@811 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-20 13:48:53 +00:00
Ozkan Sezer
4562a24fee 2009-04-20 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/misc.c: Sync'ed with the netlib.org sources from April 20, 2009.
	The author's changelog states: "do not attempt to allocate large memory
	blocks from the private memory pool (which was an unlikely event, but a
	bug)."
	* gdtoa/strtopx.c: Sync'ed with the netlib.org sources from April 20, 2009.
	The author's changelog states: supply explicit bit for Infinity. "Note
	that the Q routines (which do not supply this bit) are appropriate for
	Sparc quad precision (probably known as long double with most current
	compilers)."


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@810 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-20 13:15:20 +00:00
Ozkan Sezer
c5c7896be8 2009-04-19 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoa.h: Go back to defining 'Long' as 'long' instead of int
	in order to maintain compatibility and avoid compiler warnings.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@809 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-19 14:21:43 +00:00
Ozkan Sezer
eca276c519 gdtoa/strtopx.c: wrong patch merged in the prev. commit. bad day...
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@801 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 21:51:36 +00:00
Ozkan Sezer
8d9d6d402d 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtopx.c: All references I found indicate that the
	mainstream code is correct of the STRTOG_Infinite case.  See, for
	example, http://docs.sun.com/source/819-3688/data.rep.app.html


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@800 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 21:45:36 +00:00
Ozkan Sezer
2c021be399 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoaimp.h, gdtoa/gethex.c, gdtoa/strtodg.c: Defined a
	SET_ERRNO() macro for less ifdefs in actual C code.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@799 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 21:27:42 +00:00
Ozkan Sezer
83582586c8 * gdtoa/g_xfmt.c: Fixed my ultra-lame typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@798 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 19:37:21 +00:00
Ozkan Sezer
616de58b28 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/README.mingw: New.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@797 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 14:40:36 +00:00
Ozkan Sezer
6f6dd7bed4 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gethex.c: Avoid compiler warnings about pointer targets differing
	in signedness.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@796 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 14:00:17 +00:00
Ozkan Sezer
17007aa7ee 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/g_xfmt.c: Added maintream code for general purposes and kept
	our fpclassiy() code for mingw builds.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@795 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 13:25:35 +00:00
Ozkan Sezer
b0445975ac 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoaimp.h, gdtoa/g_dfmt.c, gdtoa/misc.c: Reduce Kmax, and use
	MALLOC and free for huge blocks, which are possible only in pathological
	cases, such as dtoa calls in mode 3 with thousands of digits requested,
	or strtod() calls with thousand of digits. from the netlib.org sources.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@794 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 13:18:39 +00:00
Ozkan Sezer
a0bc67ab9f 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/README, gdtoa/gdtoaimp.h, gdtoa/gethex.c, gdtoa/g__fmt.c,
	gdtoa/strtodg.c: Merged the locale-specific decimal point character
	cache code from netlib.org.  We are building with NO_LOCALE_CACHE,
	though, because when user alters the decimal point in locale during
	the execution of a program, we wouldn't do the desired thing.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@793 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 13:12:53 +00:00
Ozkan Sezer
320f27a3cf 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/qnan.c: Added a comment about why the union has an array of 8
	instead of 5.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@792 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 13:08:17 +00:00
Ozkan Sezer
2b05793651 2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtopx.c: Added the maintream code of case STRTOG_Infinite
	in commented out form: it makes out of Infinite a Zero value. Until
	we know better we should keep our version.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@791 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-16 13:03:40 +00:00
Ozkan Sezer
389f9e88af 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gethex.c, gdtoa/strtodg.c: Add missing cases of setting errno
	to ERANGE (from netlib.org sources.)


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@790 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 20:02:21 +00:00
Ozkan Sezer
8f207cca1e 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/g__fmt.c: Fixed a compiler warning with -DUSE_LOCALE builds.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@789 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 18:44:53 +00:00
Ozkan Sezer
8228b91fbf 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/README, gdtoa/g__fmt.c, gdtoa/g_dfmt.c, gdtoa/g_ffmt.c,
	gdtoa/g_xfmt.c, gdtoa/gethex.c, gdtoa/smisc.c, gdtoa/strtodg.c,
	gdtoa/gdtoa.h, gdtoa/gdtoaimp.h: Merged the locale-specific decimal
	point fixes from netlib.org: if compiled with -DUSE_LOCALE, use the
	current locale's decimal point character string. bufsize changed from
	unsigned to size_t. g__fmt() now explicitly checks bufsize. fix
	glitches in the strto* routines when compiled with -DUSE_LOCALE and
	the locale's decimal-point string is two or more characters long.
	The mingw build does compile with USE_LOCALE and was exposed to this
	bug.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@788 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 18:20:35 +00:00
Ozkan Sezer
b8684d2a12 * gdtoa/*: some insignificant changes for smaller diffs with the
mainstream source. nothing to affect the binary output.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@786 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 15:56:22 +00:00
Ozkan Sezer
92b7b02871 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gethex.c: fix an off-by-one bug in a rounding test. merge the
	rest of the rounding stuff. (from netlib.org sources.)


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@785 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 15:23:21 +00:00
Ozkan Sezer
d329d78027 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/hexnan.c: Allow optional initial 0x or 0X.
	* gdtoa/gdtoaimp.h: Update accordingly for GDTOA_NON_PEDANTIC_NANCHECK.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@784 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 15:20:10 +00:00
Ozkan Sezer
be51b3eb8b 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gethex.c (gethex): Another 32/ULbits change.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@783 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 14:37:57 +00:00
Ozkan Sezer
653edf7260 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtodg.c: Merge the rest of the rounding changes since the
	commit rev.776.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@782 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 13:40:15 +00:00
Ozkan Sezer
6caedaf94b 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gethex.c (gethex): Use ULbits as the multiplier, not 32 (from
	netlib.org sources.)


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@781 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 13:35:40 +00:00
Ozkan Sezer
abc788b05d 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtodg.c: fix a botch in the test of whether to increase
	rvbits before terminating the big for(;;) loop with dsign true (from
	netlib.org sources.)


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@780 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 13:32:30 +00:00
Ozkan Sezer
3424cadf93 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoaimp.h, gdtoa/strtodg.c: decrement() now returns void.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@779 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 13:28:41 +00:00
Ozkan Sezer
fef98cff07 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoa_fltrnds.h: New.
	* gdtoa/README, gdtoa/g_dfmt.c, gdtoa/g_ffmt.c, gdtoa/g_xfmt.c,
	gdtoa/gdtoaimp.h, gdtoa/strtof.c, gdtoa/strtopx.c: Merged in the
	Honor_FLT_ROUNDS/fegetround() bits from the current netlib.org sources.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@776 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 09:53:14 +00:00
Ozkan Sezer
b49043572b 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoa.h:  Minor cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@775 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 08:35:48 +00:00
Ozkan Sezer
9656113d8f 2009-04-15 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/gdtoa.c: Sync'ed with the netlib.org sources.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@774 4407c894-4637-0410-b4f5-ada5f102cad1
2009-04-15 08:03:49 +00:00