summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/math
Commit message (Collapse)AuthorAgeFilesLines
* * mingw: Delete obsolete directory.Christopher Faylor2012-11-07152-9905/+0
| | | | * w32api: Ditto.
* 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>Chris Sutcliffe2009-07-241-1/+1
| | | | * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
* 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-07-189-300/+300
| | | | | | | * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
* Avoid precision errors in round(), lround() and llround() functions.Keith Marshall2008-06-0312-138/+270
|
* 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-11-2710-97/+97
| | | | | | | | | | | | | | | * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets. * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines. * mingwex/math/log10f.S: Correct issue with comments. * mingwex/math/log10l.S: Ditto. * mingwex/math/log1p.S: Ditto. * mingwex/math/log1pf.S: Ditto. * mingwex/math/log1pl.S: Ditto. * mingwex/math/log2.S: Ditto. * mingwex/math/log2f.S: Ditto. * mingwex/math/log2l.S: Ditto. * mingwex/math/logf.S: Ditto. * mingwex/math/logl.S: Ditto.
* Import David Gay's gdtoa library.Danny Smith2006-08-312-2031/+0
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * mingwex/math/tgamma.c (SQTPI): Add braces.Danny Smith2006-06-261-1/+1
|
* * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.Danny Smith2006-06-263-20/+36
| | | | | | | | * 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.
* * mingwex/math/nexttoward.c: New file.Danny Smith2005-05-103-0/+84
| | | | | | | | | | * 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.
* * mingwex/math/nextafterf.c (nextafterf): CorrectDanny Smith2005-05-092-8/+67
| | | | | | | | 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.
* * mingwex/math/erfl.c: New file.Danny Smith2005-05-081-0/+299
| | | | | | * mingwex/Makefile.i (MATH_DISTFILES): Add erfl.c. (MATH_OBJS): Add erfl.o. * include/math.h (erfl, erfcl): Uncomment prototypes.
* * mingwex/math/signbit.c (__signbit): Make return valueDanny Smith2005-05-033-3/+3
| | | | | | | | 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-02-11 Gregory W. Chicares <chicares at cox dot net>Danny Smith2005-02-113-0/+86
| | | | | | | | | | | | 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.
* * include/math.h (ashinh, asinhf, asinhl, acosh, acoshf, acoshl,Danny Smith2004-10-0610-0/+367
| | | | | | | | | | | | | | | | | 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.
* * mingwex/math/powl.c (powl): Revert change of 2004-02-01.Danny Smith2004-07-281-14/+35
| | | | | | (__convert_inf_to_maxnum): New.static inline. (reducl): Use it to protect against Inf - Inf. (__fast_ldexpl): New function. Use in lieu of ldexpl.
* * mingwex/math/expl.c (expl): Move body of code to new staticDanny Smith2004-07-271-20/+14
| | | | | function __expl, removing tests for +/-Inf. Extern function expl calls __expl after testing for max, min log thresholds.
* * mingwex/math/cephes_emath.h (__etens): Remove declaration.Danny Smith2004-07-121-2/+0
|
* * mingwex/math/lround.c: Rewrite.Danny Smith2004-04-226-116/+92
| | | | | | | | * 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.
* * mingwex/math/round.c: Rewrite.Danny Smith2004-03-293-79/+15
| | | | | * mingwex/math/roundf.c: Rewrite. * mingwex/math/roundl.c: Rewrite.
* * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")Danny Smith2004-02-011-8/+13
| | | | directly, rather than via scabnl.
* * mingwex/math/powl.c (powl): Return infinity ifDanny Smith2004-02-011-0/+8
| | | | | extended precision multiplication of x by log2(y) overflows.
* * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.Danny Smith2004-01-311-10/+13
| | | | | (__enan_NI16): Fix another one. (__enan_NBITS): Tidy.
* * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):Danny Smith2003-10-211-3/+23
| | | | | Use GCC __builtin's if available. (INFINITY, INFINITYF, INFINITYL): Likewise.
* * mingwex/math/s_erf.c (erf): Set errno to ERANGE ifDanny Smith2003-10-212-1/+9
| | | | | beyond approximation limit. * mingwex/math/sf_erf.c (erff): Likewise.
* * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.Danny Smith2003-07-035-23/+23
| | | | | | | * mingwex/math/truncf.c (truncf): Likewise. * mingwex/math/truncl.c (truncl): Likewise. * mingwex/math/modff.c (modff): Likewise. * mingwex/math/modfl.c (modfl): Likewise.
* * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):Earnie Boyd2003-07-013-8/+8
| | | | Rename to Small (case difference).
* Get rid of some warnings Danny Smith2003-03-173-7/+16
| | | | | | | | | | | | | * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning. * mingwex/strtoimax.c (strtoimax): Likewise. * mingwex/wcstoimax.c (wcstoimax): Likewise. * mingwex/wtoll.c (wtoll): Remove unnecessary ';' * mingwex/fesentenv.c: Include float.h. * mingwex/math/powl.c: Eliminate type punning/strict aliasing warning. * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in constants. * mingwex/math/tgammal.c: Likewise.
* * mingwex/math/cephes_emath.h: Don't redefine INFINITY.Danny Smith2003-02-101-1/+0
|
* * mingwex/math/llround.c: Correct function name andDanny Smith2003-01-111-3/+3
| | | | change return value to long long.
* * mingwex/math/s_erf.c: New file.Danny Smith2002-12-082-0/+601
| | | | | | | | * mingwex/math/sf_erf.c: New file. * mingwex/Makefile.in (MATH_DISTFILES): Add new files. (MATH_OBJS): Add new objects. * include/math.h (erf[f]): Add prototypes. (erfc[f]): Add prototypes.
* * mingwex/math/lgamma.c: New file.Danny Smith2002-11-277-0/+2277
| | | | | | | | | | | | | | | * mingwex/math/lgammaf.c: New file. * mingwex/math/lgammal.c: New file. * mingwex/math/tgamma.c: New file. * mingwex/math/tgammaf.c: New file. * mingwex/math/tgammal.c: New file. * mingwex/math/cephes_mconf (polevlf): Add float version. (p1evlf): Likewise. Define _CEPHES_USE_ERRNO. * mingwex/Makefile.in (MATH_DISTFILES): Add new files. (MATH_OBJS): Add new objects. * include/math.h (lgamma[fl]): Add prototypes. (tgamma[fl]): Add prototypes.
* Add strtold and wcstold to libmingwex.aDanny Smith2002-11-262-0/+2031
| | | | | | | | | | | | | | | | | * mingwex/strtold.c: New file. * mingwex/wcstold.c: New file. * mingwex/ldtoa.c: New file. * mingwex/math/cephes_emath.h: New file. * mingwex/math/cephes_emath.c: New file. * mingwex/Makefile.in (DISTFILES): Add new files. (MATH_DISTFILES): Ditto. (STDLIB_OBJS): New. Define as strtold.c wcstold.c. (MATH_OBJS): Add cephes_emath.o. (LIB_OBJS): Add $(STDLIB_OBJS). * include/stdlib.h (strtold, wcstold): Add prototypes. * include/wchar.h (wcstold): Add prototype. Add missing ChangeLog entry for 2002-11-09.
* * include/math.h (sqrt): Remove inline definition.Danny Smith2002-11-092-6/+29
| | | | | | | | | | (sqrtf): Replace inline definition with prototype. (sqrtl): Likewise. * mingwex/math/sqrtf.c (sqrtf): Set domain error if argument less than zero. * mingwex/math/sqrtf.c (sqrtl): Likewise. Correct typo in 2002-10-30 ChangeLog entry.
* * mingwex/math/powil.c: Rename powil to __powil.Danny Smith2002-10-066-63/+1348
| | | | | | | | | | | | | | | * mingwex/math/powl.c: Adjust declaration and call to __powil. Remove comment on powil. * mingwex/math/powi.c: New file. * mingwex/math/powif.c: New file. * mingwex/math/pow.c: New file. * mingwex/math/cephes_mconf.h. Add double and float versions of constants. (polevl): Add double precision function. (p1evl): Likewise. * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c, powi.c, powif.c. (MATH_OBJS): Add pow.o, powi.o, powif.o.
* * mingwex/math/files.txt: Remove inadvertantly added file.Danny Smith2002-09-191-1/+0
|
* * mingwex/math/hypotl.c: Replace with version based on cephesDanny Smith2002-09-021-43/+58
| | | | library.
* Add incomplet long double math support to libmingwex.aDanny Smith2002-07-29131-0/+4685