Commit Graph

33 Commits

Author SHA1 Message Date
he c2dbd6e374 Make this build again. 2008-03-28 00:56:54 +00:00
christos ab6254493d Don't coredump on out of memory conditions. This solution leaks, but gdtoa
is too complicated to fix. Try printf %99999999999.9999999999f 2
2008-03-21 23:13:48 +00:00
mrg ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
mrg e6f4791d95 make sun2 build again with liberal use of -O0. 2008-02-05 02:41:15 +00:00
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
christos 82708d0ba0 deal with the vax in a slightly disgusting way. 2007-02-26 01:29:25 +00:00
christos aa221faf9e vax does not have <machine/ieee.h> or long double
It would be nice if the compiler provided something like __IEEE_MATH__
2007-02-23 17:45:59 +00:00
uwe 3bc8e00664 Fix previous, add forgotten pointer dereference in the call to dtoa(). 2007-02-04 03:20:22 +00:00
christos 971e3bb846 use dtoa() instead of returning empty when we don't have extended precision
information.
2007-02-04 03:05:01 +00:00
christos c8e7c68742 int/size_t changes 2007-02-03 18:09:20 +00:00
christos 818764fc7c some int -> size_t
deal with sparc64 that has 112 bits of mantissa.
2007-02-03 16:44:02 +00:00
christos 113cee3dbe add the new files to the build. Note I am not bumping libc now, because
these are not used yet.
2007-02-02 23:06:34 +00:00
christos 9ad6657285 add new prototypes. 2007-02-02 23:05:56 +00:00
christos 1634560e9d make this compile. 2007-02-02 23:05:41 +00:00
christos 482b8dd60c add long double and hex double support from freebsd. 2007-02-02 23:03:35 +00:00
christos b24124a73d static before const. 2006-10-15 16:11:04 +00:00
mrg da78757b0f initialise some variables for gcc. 2006-06-02 19:46:56 +00:00
christos fc716ffaeb It is really bad style to define ULong unsigned long in one file and
uint32_t in another. No wonder lint was bitching (hello kjk)
2006-05-04 18:59:23 +00:00
christos 109ac28f93 Only do the mutex dance if _REENTRANT 2006-05-04 18:38:56 +00:00
kleink 6fbc3967e6 Revert previous indentation fix to keep the diff to strtof.c as small
as possible.
2006-03-24 16:04:32 +00:00
he 33dca3ba88 Fix what has to be a typo -- don't __weak_alias() "strtold" but "strtof".
Also minor indentation fix.  Fixes build problem (linking groff's grodvi).
2006-03-23 18:08:20 +00:00
christos e3f25002a4 Coverity CID 590: since bdif > 0, k = bdif - 1 >= 0, so k < 0 cannot happen.
Remove dead code.
2006-03-19 03:04:04 +00:00
kleink bc89c06cbf Add strtof(3) and strtold(3); welcome libc 12.137. 2006-03-15 17:35:17 +00:00
kleink f8228ce452 Const poisoning. 2006-03-11 18:38:14 +00:00
kleink 11ef0797ab Restore the UCB __dtoa() behavior as previously done in stdlib/strtod.c:
revision 1.9
 date: 1993/12/07 18:54:32;  author: jtc;  state: Exp;  lines: +5 -1
 Restore 4 lines of code that UCB added that got lost when I upgraded to
 the latest version of this code.  This bug was responsible for printf
 formatting errors when values were rounded to 0.

Fixes PR lib/32951.
2006-02-28 18:51:08 +00:00
christos c975cdc86c - s/notyet/WIDE_DOUBLE/
- Add a little more glue for WIDE_DOUBLE; not done yet.
- s/def FLOATING_POINT/ndef NO_FLOATING_POINT/ to reduce diffs with FreeBSD.
- fix memory leak where each double formatted leaked 24 by calling __freedtoa()
  appropriately. the new gdtoa keeps a list of memory chunks allocated by
  malloc(), and it must maintained properly by calling __freedtoa() on the
  results of __dtoa() Hi Klaus!
- in vfwprintf() make cvt return char * and convert it using __mbsconv(),
  instead of having it return wchar_t *.

This should fix the memory leaks people have been reporting (eg. in top etc.)
2006-02-16 23:26:19 +00:00
scw 7317e21306 Workaround for a gcc-3.3.3 ICE compiling strtod.c for sh5.
Reported by skrll@
2006-01-31 10:56:57 +00:00
kleink ce9a62e944 Keep strtodg() in private namespace. 2006-01-26 11:17:38 +00:00
kleink ff019fa54c Revert previous, unintended change. 2006-01-25 16:40:57 +00:00
kleink 3cd8501c1e Drop in gdtoa as a replacement for dtoa, strtod() from stdlib/strtod.c. 2006-01-25 15:43:01 +00:00
kleink 2c9824c5d7 * Pacify compiler; delint.
* Add MI NetBSD definitions.
* Rename IEEE_{8087,MC68k} to IEEE_{LITTLE,BIG}_ENDIAN, as previously
  done in strtod.c.
* Some const poisoning, more to follow.
2006-01-25 15:36:13 +00:00
kleink ac898a2630 * Pacify compiler; delint.
* Add MI NetBSD definitions.
* Rename IEEE_{8087,MC68k} to IEEE_{LITTLE,BIG}_ENDIAN, as previously
  done in strtod.c.
* Some const poisoning, more to follow.
2006-01-25 15:27:42 +00:00
kleink 7684d5e0fc Import gdtoa-2005-09-23; test suite will be imported separately. 2006-01-25 15:18:40 +00:00