Danny Smith
e635b30956
Import David Gay's gdtoa library.
...
* mingwex/gdtoa: New directory.
* mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
ulp.c): New files.
* mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
* mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
* mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
* mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
* mingwex/wcstold.c: Avoid using strtold internals.
* mingwex/wcstof.c: Rewrite.
* mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
(GDTOA_OBJS): Add to library.
(DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
(STDLIB_OBJS): Remove.
(STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
(Q8_OBJS): Add wcstof.o wcstold.o.
* include/stdlib.h (strtof): Remove inline definition.
(wcstof): Likewise.
* include/wchar.h (wcstof): Remove inline definition.
2006-08-31 23:48:56 +00:00
Danny Smith
bb1a7afa67
* include/ctype.h (_BLANK): Expand comment.
...
(isblank): Add prototype and inline definition.
(iswblank): Add prototype and inline definition.
* include/wctype.h (iswblank): Add prototype and inline definition.
* mingwex/isblank.c: New file.
* mingwex/iswblank.c: New file.
* mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2006-08-03 07:44:30 +00:00
Danny Smith
66e7d55998
* mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2006-07-03 20:51:58 +00:00
Danny Smith
f34428eb35
Support SSE float environment in fenv.h functions.
...
* cpu_features.c: New file.
* cpu_features.h: New file.
* crt1.c: Include "cpu_features.h".
(__mingw_CRTStartup): Call cpu_features_init().
* Makefile.in (MING_OBJS): Add cpu_features.c.
(SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
* include/fenv,h ( fenv_t;): Append __mxcsr field.
(__MXCSR_EXCEPT_FLAG_SHIFT): New define.
(__MXCSR_EXCEPT_MASK_SHIFT): New define.
(__MXCSR_ROUND_FLAG_SHIFT): New define.
* mingwex/feclearexcept.c: Include "cpu_features.h".
Handle SSE environment.
* mingwex/fegetenv.c: Likewise.
* mingwex/feholdexcept.c: Likewise.
* mingwex/fesetenv.c: Likewise.
* mingwex/fesetexceptflag.c: Likewise.
* mingwex/fesetround.c: Likewise.
* mingwex/fetestexcept.c: Likewise.
* mingwex/feupdateenv.c: Likewise.
* mingwex/fegetround.c: Add comment.
2006-07-03 10:32:58 +00:00
Danny Smith
4a7163e8a0
* mingwex/math/tgamma.c (SQTPI): Add braces.
2006-06-26 00:56:40 +00:00
Danny Smith
1dcd64ff55
* mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
...
* mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
(LS2PI): Likewise.
* mingwex/math/sf_erf.c (erff): Initialize z.
(erfcf): Likewise.
* mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2006-06-26 00:53:34 +00:00
Danny Smith
71bbb04de9
* mingwex/dirent.c (_tGetFileAttributes): New helper function.
...
(_topendir): Use it.
2006-06-18 08:43:34 +00:00
Danny Smith
5ade5bb0ea
* include/sys/time.h: Add header guard. Add extern "C" bracketing
...
for __cplusplus.
(gettimeofday): Add prototype.
* mingwex/gettimeofday.c: New file.
* mingwex/makefile.in: Add gettimeofday source and object.
2006-06-18 08:16:55 +00:00
Danny Smith
a91cc828cc
* mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2006-06-12 21:48:08 +00:00
Christopher Faylor
99fc5e10f3
update to newer autoconf
2006-05-24 16:59:03 +00:00
Danny Smith
01668fecd4
* mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
...
Use supplied codepage as arg to WideCharToMultiByte.
2006-05-17 07:49:39 +00:00
Danny Smith
0efe737420
* mingwex/complex/csqrt.c (csqrt): The sign of real part
...
of result is positive when real part of arg == 0;
* mingwex/complex/csqrtf.c (csqrtf): Ditto.
* mingwex/complex/csqrtl.c (csqrtl): Ditto.
2005-10-12 06:46:18 +00:00
Danny Smith
a174593722
* mingwex/fegetenv.c (fegetenv): Restore exception masks.
...
* mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
to non-stop. Use "fnclex" to clear exception flags.
2005-10-08 02:14:45 +00:00
Danny Smith
9e28e551f2
* mingwex/fe*.c: Revert previous changes.
...
* include/fenv.h: Revert previous changes.
Add Changelog entry for the reverted change.
2005-08-25 08:39:54 +00:00
Danny Smith
5092e4a714
* mingwex/feclearexcept.c (feclearexcept): Change declaration.
...
Do not return a value.
* mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
* mingwex/feraiseexcept.c (feraiseexcept): Likewise.
* mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
* mingwex/fegetenv.c (fegetenv): Likewise.
* mingwex/fesetenv.c (fesetenv): Likewise.
* mingwex/feupdateenv.c (feupdateenv): Likewise.
* include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
prototypes.
2005-08-25 02:35:34 +00:00
Danny Smith
03ee0ba163
* mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
...
getting filelength for SEEK_END.
2005-08-25 02:04:59 +00:00
Danny Smith
96c837f0ca
* mingwex/math/nexttoward.c: New file.
...
* mingwex/math/nexttowardf.c: New file.
* mingwex/math/nextafterl.c: Add nexttowardl aliaa.
* mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
mexttowardf.c,
(MATH_OBJS): Add nexttoward.o, mexttowardf.o,
* include/math.h (nexttoward, nextowardf, nexttowardl): Add
prototypes.
2005-05-10 08:39:07 +00:00
Danny Smith
5b91f0a6ef
* mingwex/math/nextafterf.c (nextafterf): Correct
...
handling of -0.0.
* mingwex/math/nextafterl.c: New file.
* mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
(MATH_OBJS): Add nextafterl.o.
* include/math.h (nextafterl): Uncomment prototype.
2005-05-09 09:36:10 +00:00
Danny Smith
02626f616d
* mingwex/math/erfl.c: New file.
...
* mingwex/Makefile.i (MATH_DISTFILES): Add erfl.c.
(MATH_OBJS): Add erfl.o.
* include/math.h (erfl, erfcl): Uncomment prototypes.
2005-05-08 08:07:18 +00:00
Danny Smith
8559dd92d0
* mingwex/math/signbit.c (__signbit): Make return value
...
consistent with GCC's __builtin_signbit.
* mingwex/math/signbitf.c (__signbitf): Likewise.
* mingwex/math/signbitf.c (__signbitl): Likewise.
* include/math.h (__signbit, __signbitf, __signbitl): Likewise
for inlines.
2005-05-03 08:39:19 +00:00
Danny Smith
38efa5f128
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
...
variadic macro.
* mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
Remove unused MBTOWC_FLAGS define.
2005-05-02 08:03:34 +00:00
Danny Smith
6fbeb6a3f0
* mingwex/mbrtowc.c: New file.
...
* mingwex/wcrtomb.c: New file.
* mingwex/btowc.c: New file.
* mingwex/wctob.c: New file.
* mingwex/mb_wc_common.h: New file.
* mingwex/Makefile.in (DISTFILES): Add new files.
(Q8_OBJS): Add new objects.
* include/wchar.h: Adjust comment about mbrtowc() and related
funcions. Add __restrict__ to pointer params in prototypes.
(wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
arg names from protototypes.
2005-04-24 11:30:27 +00:00
Danny Smith
4fc953d6a1
2005-04-23 Wu Yongwei <adah@sh163.net>
...
mingwex/dirent.c: Formatting changes.
mingwex/dirent.c (_topendir): Make the end-of-path slash check
MBCS-safe.
2005-04-24 10:26:37 +00:00
Danny Smith
bc47d398b2
* include/stdio.h (__mingw_fwrite): Change return value to
...
size_t.
* mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2005-03-24 05:58:52 +00:00
Danny Smith
7e9439a0eb
* mingwex/wctype.c: New file.
...
* mingwex/wctrans.c: New file.
* mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
* mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2005-02-25 01:43:43 +00:00
Danny Smith
ba16f5aa83
2005-02-11 Gregory W. Chicares <chicares at cox dot net>
...
Danny Smith <dannysmith@users at sourceforge dot net>
* include/math.h (expm1, expm1f, expmll): Add prototypes.
* mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
expm1f.c, expm1l.c.
(MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
* mingwex/math/expm1.c: New file.
* mingwex/math/expm1f.c: New file.
* mingwex/math/expm1l.c: New file.
2005-02-11 04:15:17 +00:00
Danny Smith
d93998b17a
* mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
...
string is not valid.
2005-02-01 03:51:21 +00:00
Danny Smith
4073a59300
* mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
...
casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
ctanl.c ctanhl.c): New files.
* mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
(COMPLEX_OBJS): Adjust.
* include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
Declare.
2005-01-10 05:03:55 +00:00
Danny Smith
9a3412eea8
* mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
...
casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
ctanf.c ctanhf.c): New files.
* mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
(COMPLEX_OBJS(: Adjust.
* include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
Declare.
2004-12-25 23:56:19 +00:00
Danny Smith
72db1c11e9
* include/math.h (ashinh, asinhf, asinhl, acosh, acoshf, acoshl,
...
atanh, atanhf, atanhl): Add prototypes.
* mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
(MATH_DISTFILES): Add sources for above and fastmath.h to list.
Specify dependency on fastmath.h for new objects.
* mingwex/math/fastmath.h: New file.
* mingwex/math/ashinh.c: New file.
* mingwex/math/asinhf.c: New file.
* mingwex/math/asinhl.c: New file.
* mingwex/math/acosh.c: New file.
* mingwex/math/acoshf.c: New file.
* mingwex/math/acoshl.c: New file.
* mingwex/math/atanh.c: New file.
* mingwex/math/atanhf.c: New file.
* mingwex/math/atanhl.c: New file.
2004-10-06 20:31:32 +00:00
Earnie Boyd
71c68d9607
* mingwex/Makefile.in: Correct typo in list of DISTFILES.
2004-09-05 14:15:01 +00:00
Danny Smith
d5afcd86f9
* include/malloc.h (__mingw_aligned_offset_malloc,
...
__mingw_aligned_offset_realloc, __mingw_aligned_malloc,
__mingw_aligned_realloc, __mingw_aligned_free): Add
prototypes.
* mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
tst-aligned-malloc.c.
(REPLACE_OBJS): Add mingw-aligned-malloc.o.
2004-08-24 09:02:45 +00:00
Danny Smith
a6c2ea7e7c
2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
...
* mingwex/mingw-aligned-malloc.c: New file.
* mingwex/tst-aligned-malloc.c: New file.
2004-08-24 08:55:42 +00:00
Danny Smith
48a27980be
* mingwex/fopen64.c: Move.
...
* mingwex/fseeko64.c: Move.
* mingwex/ftello64.c: Move.
* mingwex/lseek64.c: Move.
* mingwex/stdio/fopen64.c: To here.
* mingwex/stdio/fseeko64.c: To here.
* mingwex/stdio/ftello64.c: To here.
* mingwex/stdio/lseek64.c: To here.
White space cleanup in ChangeLog
2004-08-15 11:28:09 +00:00
Christopher Faylor
3f604cbca4
* mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2004-08-09 01:17:28 +00:00
Danny Smith
ab8cc34bb7
* mingwex/math/powl.c (powl): Revert change of 2004-02-01.
...
(__convert_inf_to_maxnum): New.static inline.
(reducl): Use it to protect against Inf - Inf.
(__fast_ldexpl): New function. Use in lieu of ldexpl.
2004-07-28 11:25:27 +00:00
Danny Smith
5ea3a6e152
* mingwex/math/expl.c (expl): Move body of code to new static
...
function __expl, removing tests for +/-Inf. Extern function
expl calls __expl after testing for max, min log thresholds.
2004-07-27 08:03:36 +00:00
Danny Smith
1856fdbe03
* mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
...
* mingwex/stdio/vfscanf.c: Likewise.
* mingwex/stdio/vswscanf.c: Likewise.
* mingwex/stdio/vfwscanf.c: Likewise.
2004-07-27 00:06:07 +00:00
Danny Smith
756301b7de
* include/_mingw.h: Use only two underscores to uglify
...
__MINGW_ATTRIB_* macros.
* include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
* includ/setjmp.h: Likewise.
* include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
string functions.
(_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2004-07-26 23:45:03 +00:00
Danny Smith
e651690002
* mingwex/complex/cargs.c: New file.
...
* mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2004-07-15 11:35:13 +00:00
Corinna Vinschen
a062ed9840
* Makefile.in (INCLUDES): Temporarily revert previous change.
...
* mingwex/Makefile,in (INCLUDES): Ditto.
* profile/Makefile,in (INCLUDES): Ditto.
* mingwex/Makefile,in: Drop carg.o dependency.
2004-07-15 10:40:37 +00:00
Christopher Faylor
a671e18c42
* mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
2004-07-15 02:43:19 +00:00
Danny Smith
8e47f4464b
* Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
...
system dir.
* mingwex/Makefile,in (INCLUDES): Ditto.
* profile/Makefile,in (INCLUDES): Ditto.
* mingwex/Makefile,in: Add carg.o to libmingwex.a.
2004-07-14 23:44:50 +00:00
Earnie Boyd
650bcf9d74
* Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
...
for C modules.
* mingwex/Makefile.in: Ditto.
* profile/Makefile.in: Ditto.
2004-07-13 13:01:28 +00:00
Danny Smith
e4cb4efab3
* mingwex/math/cephes_emath.h (__etens): Remove declaration.
2004-07-12 07:33:17 +00:00
Danny Smith
1b0314715b
* include/unistd.h (ftruncate): Add inline definition.
...
* mingwex/ftruncate.c: New file.
* mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2004-07-11 10:01:41 +00:00
Danny Smith
64b9893f0d
2 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
...
(MATH_OBJS): Remove pow,o.
* include/math.h (pow): Declare with _CRTIMP.
Add comment on how to avoid excess precision problems.
2004-07-02 10:01:51 +00:00
Danny Smith
81223d017f
2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
...
Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (fopen64): Add inline function.
(fseeko64): Add prototype.
(ftello64): Add inline function.
* include/io.h (lseek64): Add inline function.
* include/sys/types (off64_t): Add typedef.
(fpos64_t): Add typedef.
* mingwex/fopen64.c: New file.
* mingwex/fseeko64.c: New file.
* mingwex/ftello64.c: New file.
* mingwex/lseek64.c: New file.
* mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
fseeko.64.c, ftello64.c, lseek64.c.
(STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (__mingw_fseeko64): Add prototype.
* mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
(__mingw_fwrite): Handle huge files.
2004-06-30 04:51:18 +00:00
Danny Smith
1a4b7623f4
* mingwex/math/lround.c: Rewrite.
...
* mingwex/math/lroundf.c: Rewrite.
* mingwex/math/lroundl.c: Rewrite.
* mingwex/math/llround.c: Rewrite.
* mingwex/math/llroundf.c: Rewrite.
* mingwex/math/llroundl.c: Rewrite.
2004-04-22 04:38:24 +00:00
Earnie Boyd
4d6c899474
* CONTRIBUTORS: New file.
...
* DISCLAIMER: Ditto.
* CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
section CONTRIBUTORS file. Remove RCS tags.
* CRTFmode.c: Ditto.
* CRTglob.c: Ditto.
* CRTinit.c: Ditto.
* crt1.c: Ditto.
* crtdll.dev: Ditto.
* dllcrt1.c: Ditto.
* dllmain.c: Ditto.
* gccmain.c: Ditto.
* init.c: Ditto.
* isascii.c: Ditto.
* iscsym.c: Ditto.
* iscsymf.c: Ditto.
* jamfile: Ditto.
* main.c: Ditto.
* msvcrt.def.in: Ditto.
* strcasecmp.c: Ditto.
* toascii.c: Ditto.
* wcscmpi.c: Ditto.
* include/assert.h: Ditto.
* include/conio.h: Ditto.
* include/ctype.h: Ditto.
* include/direct.h: Ditto.
* include/dirent.h: Ditto.
* include/dos.h: Ditto.
* include/errno.h: Ditto.
* include/excpt.h: Ditto.
* include/fcntl.h: Ditto.
* include/float.h: Ditto.
* include/io.h: Ditto.
* include/locale.h: Ditto.
* include/malloc.h: Ditto.
* include/math.h: Ditto.
* include/process.h: Ditto.
* include/setjmp.h: Ditto.
* include/share.h: Ditto.
* include/signal.h: Ditto.
* include/stdio.h: Ditto.
* include/stdlib.h: Ditto.
* include/string.h: Ditto.
* include/tchar.h: Ditto.
* include/time.h: Ditto.
* include/wchar.h: Ditto.
* include/sys/locking.h: Ditto.
* include/sys/param.h: Ditto.
* include/sys/stat.h: Ditto.
* include/sys/timeb.h: Ditto.
* include/sys/types.h: Ditto.
* include/sys/utime.h: Ditto.
* mingwex/dirent.c: Ditto.
2004-04-20 22:49:32 +00:00