Commit Graph

40 Commits

Author SHA1 Message Date
Matt Turner
24d6e175c2 alpha: Use const instead of __const. 2012-04-27 07:33:47 -07:00
Paul Eggert
ab84e3ff9c Replace FSF snail mail address by URL. 2012-03-09 23:56:38 +00:00
Ulrich Drepper
c393be3d2f (__MATH_INLINE): Define to __extern_inline whenever that macro is defined. 2007-09-15 02:31:47 +00:00
Richard Henderson
91d46f8a9b 2007-05-07 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
        if __NO_LONG_DOUBLE_MATH.
        * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
        available in the compiler, add .arch directive to ethe assembly.

2007-05-07  Jakub Jelinek  <jakub@redhat.com>

        * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
        compat_symbol to GLIBC_2_1.
        * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
        * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
        * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
        * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
        * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
        * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
        * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
        libc, not libm.
        (__isnanl): New compat_symbol.
2007-05-07 22:57:20 +00:00
Ulrich Drepper
8d4fccc442 Use __extern_inline and __extern_always_inline where appropriate. 2007-03-17 17:04:09 +00:00
Richard Henderson
bebc49030c * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
* sysdeps/alpha/fpu/s_ceilf.c: Likewise.
	* sysdeps/alpha/fpu/s_floor.c: Likewise.
	* sysdeps/alpha/fpu/s_floorf.c: Likewise.
	* sysdeps/alpha/fpu/s_rint.c: Likewise.
	* sysdeps/alpha/fpu/s_rintf.c: Likewise.

	* sysdeps/alpha/fpu/s_fmax.S: New file.
	* sysdeps/alpha/fpu/s_fmaxf.S: New file.
	* sysdeps/alpha/fpu/s_fmin.S: New file.
	* sysdeps/alpha/fpu/s_fminf.S: New file.
	* sysdeps/alpha/fpu/s_isnan.c: New file.
	* sysdeps/alpha/fpu/s_isnanf.c: New file.
	* sysdeps/alpha/fpu/s_llrint.c: New file.
	* sysdeps/alpha/fpu/s_llrintf.c: New file.
	* sysdeps/alpha/fpu/s_lrint.c: New file.
	* sysdeps/alpha/fpu/s_lrintf.c: New file.
	* sysdeps/alpha/fpu/s_nearbyint.c: New file.
	* sysdeps/alpha/fpu/s_nearbyintf.c: New file.

	* sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
	(__fdimf, fdimf, __fdim, fdim): Remove.
	(__signbitf, __signbit, __signbitl): Use gcc builtin if available.
	(__isnanf, __isnan, __isnanl): New.
2007-03-14 17:44:14 +00:00
Richard Henderson
9ea0d86579 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
* sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
        * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
        * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
        * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
        * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
2007-03-14 00:40:50 +00:00
Roland McGrath
400a25460a 2006-01-31 Roland McGrath <roland@redhat.com>
* sysdeps/alpha/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/alpha/bits/mathdef.h: ... here.
	* sysdeps/i386/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/i386/bits/mathdef.h: ... here.
	* sysdeps/mips/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/mips/bits/mathdef.h: ... here.
	* sysdeps/m68k/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/m68k/bits/mathdef.h: ... here.
	* sysdeps/powerpc/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/powerpc/bits/mathdef.h: ... here.
	* sysdeps/sparc/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/sparc/bits/mathdef.h: ... here.
	* sysdeps/ia64/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/ia64/bits/mathdef.h: ... here.
	* sysdeps/sh/sh4/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/sh/sh4/bits/mathdef.h: ... here.
	* sysdeps/x86_64/fpu/bits/mathdef.h: Moved to ...
	* sysdeps/x86_64/bits/mathdef.h: ... here.
2006-02-01 02:59:59 +00:00
Richard Henderson
a795af472d * math/math_private.h (__copysign): Define as builtin for gcc 4.
(__copysignf, __copysignl): Likewise.
        * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
        for gcc 4.0.
        (copysignf, copysignl, fabsf, fabs): Likewise.
        (__copysign, __copysignf, __copysignl): Remove.
        (__fabs, __fabsf): Remove.
2005-02-08 04:37:48 +00:00
Ulrich Drepper
3e08e73f58 (__fdimf, __fdim, fdimf, fdim): Handle +inf/+inf. 2004-09-30 06:16:28 +00:00
Ulrich Drepper
6d74bdcd30 Use __NTH instead of __THROW in inline function definitions. 2004-09-12 18:13:16 +00:00
Richard Henderson
154a5429ac * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h,
and bits/inf.h.
        * math/math.h: Include them.

        * sysdeps/alpha/fpu/bits/mathdef.h, sysdeps/arm/fpu/bits/mathdef.h,
        sysdeps/generic/bits/mathdef.h, sysdeps/i386/fpu/bits/mathdef.h,
        sysdeps/ia64/fpu/bits/mathdef.h, sysdeps/m68k/fpu/bits/mathdef.h,
        sysdeps/mips/fpu/bits/mathdef.h, sysdeps/powerpc/fpu/bits/mathdef.h,
        sysdeps/sh/sh4/fpu/bits/mathdef.h, sysdeps/sparc/fpu/bits/mathdef.h,
        sysdeps/x86_64/fpu/bits/mathdef.h: Remove INFINITY.

        * sysdeps/arm/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
        (HUGE_VALF, HUGE_VALL): Remove.
        * sysdeps/ieee754/bits/huge_val.h: Likewise.
        * sysdeps/sh/bits/huge_val.h: Likewise.

        * sysdeps/generic/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
        * sysdeps/generic/bits/huge_valf.h: New file.
        * sysdeps/generic/bits/huge_vall.h: New file.
        * sysdeps/generic/bits/inf.h: New file.
        * sysdeps/ieee754/bits/huge_valf.h: New file.
        * sysdeps/ieee754/bits/inf.h: New file.
        * sysdeps/i386/bits/huge_val.h: Remove file.
        * sysdeps/i386/bits/huge_vall.h: New file.
        * sysdeps/ia64/bits/huge_val.h: Remove file.
        * sysdeps/ia64/bits/huge_vall.h: New file.
        * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: New file.
        * sysdeps/m68k/bits/huge_val.h: Remove file.
        * sysdeps/m68k/bits/huge_vall.h: New file.
        * sysdeps/s390/bits/huge_val.h: Remove file.
        * sysdeps/sh/sh4/fpu/bits/huge_val.h: Remove file.
        * sysdeps/sparc/bits/huge_vall.h: New file.
        * sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Remove file.
        * sysdeps/sparc/sparc64/fpu/bits/huge_val.h: Remove file.

        * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf.
        * sysdeps/mips/bits/nan.h (NAN): Likewise.
2004-03-15 21:44:10 +00:00
Ulrich Drepper
15d7e9922c (isgreater, isgreaterequal, isless, islessequal, islessgreater): Remove;
use default.
(isunordered): Convert inputs to double.
2004-03-10 05:58:46 +00:00
Richard Henderson
cfbf1a2f78 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
Cast old up to uint64_t before back down to inner width.
        (__arch_compare_and_exchange_xxx_16_int): Likewise.
        (__arch_compare_and_exchange_xxx_32_int): Likewise.
        (__arch_compare_and_exchange_xxx_64_int): Likewise.
        (__arch_compare_and_exchange_val_8_int): Cast result to
        the type of the memory.
        (__arch_compare_and_exchange_val_16_int): Likewise.
        (__arch_compare_and_exchange_val_32_int): Likewise.
        (__arch_compare_and_exchange_val_64_int): Likewise.
        (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
        (atomic_compare_and_exchange_bool_rel): Likewise.

        * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
        based on HAVE___THREAD instead of USE_TLS.

        * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
        (__adjtimex_tv64): Use it.

        * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
        to void* rather than directly to the compatibility structure type.
        * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.

        * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
        Forward declare.
2004-01-13 09:15:58 +00:00
Richard Henderson
981e63c822 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
__LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
2003-06-24 16:33:49 +00:00
Ulrich Drepper
be3abeade2 Remove FLT_EVAL_METHOD definition. 2003-04-09 07:39:17 +00:00
Andreas Jaeger
3214b89b32 Update to LGPL v2.1. 2001-07-06 04:56:23 +00:00
Ulrich Drepper
b72a1aa920 Honour __NO_MATH_INLINES. 2001-02-07 18:20:36 +00:00
Ulrich Drepper
e9a0b83c8f Remove FLT_EVAL_METHOD and DECIMAL_DIG definitions. 2000-12-04 08:37:22 +00:00
Ulrich Drepper
d31dde9292 Make FP_ILOGB0 and FP_ILOGBNAN int values. 2000-09-01 06:32:15 +00:00
Ulrich Drepper
858db9cbc8 Change type of FE_*_ENV macros to const fenv_t*. 2000-09-01 04:41:12 +00:00
Ulrich Drepper
1829753231 (FE_DENORMAL): New.
(FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2000-08-19 16:07:53 +00:00
Ulrich Drepper
d3d5b656c5 (__fdimf): Only declare if __USE_ISOC99.
(fdimf, __fdim, fdim): Likewise.
2000-06-07 16:53:09 +00:00
Ulrich Drepper
eb29107be8 Add __THROW to all inlines to match prototypes in mathcalls.h. 2000-06-04 16:10:51 +00:00
Andreas Jaeger
d41b66ce6a Remove K&R support, use ANSI C prototypes. 2000-05-23 08:42:59 +00:00
Ulrich Drepper
6d1adc8734 Protect definitions for math.h against double inclusion. 1999-12-18 19:36:39 +00:00
Ulrich Drepper
6c555ab57e Replace __USE_ISOC9X by __USE_ISOC99 and also recognize _ISOC99_SOURCE. 1999-10-31 17:31:25 +00:00
Ulrich Drepper
e261a74e16 Use __GNUC_PREREQ. 1999-06-19 09:57:23 +00:00
Ulrich Drepper
d31690f156 Pretty print. 1999-05-23 10:11:27 +00:00
Ulrich Drepper
200172bd3f Define ISO C 9X stuff only if included from math.h and __USE_ISOC9X is
defined.
1998-11-10 19:10:36 +00:00
Richard Henderson
d7bb0de178 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
        * sysdeps/alpha/fpu/s_floor.c: New.
        * sysdeps/alpha/fpu/s_floorf.c: New.
        * sysdeps/alpha/fpu/s_ceil.c: New.
        * sysdeps/alpha/fpu/s_ceilf.c: New.
1998-08-23 04:09:49 +00:00
Richard Henderson
9ba8164eb6 * shlib-versions: Match alpha*.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add adjtimex.
        * sysdeps/unix/sysv/linux/alpha/adjtimex.S: Remove.
        * sysdeps/alpha/fpu/bits/mathinline.h (isunordered et al): New.
        Implement copysign* with and without __ prefix.
        Likewise for fabs; use builtin for gcc 2.8.
        (floor*): New.
        (fdim*): New.
        * elf/elf.h (EF_SPARC*, EF_ALPHA*, SHT_ALPHA*, SHF_ALPHA*): New.
        (R_SPARC*): Match current v9 ABI.
        * sysdeps/wordsize-64/stdint.h (intptr_t): Is a long.
        * sunrpc/clnt_udp.c (clntudp_call): Use socklen_t.
        * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
        * sunrpc/svc_tcp.c (svctcp_create, rendezvous_request): Likewise.
        * sysdeps/generic/getresgid.c: Use prototype form because of warning.
        * sysdeps/unix/sysv/linux/getdents.c: Likewise.
        * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
        * sysdeps/unix/grantpt.c (argv): Fix consts.
        * sysdeps/unix/sysv/linux/getpt.c: Include <string.h>
        * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1998-03-01 00:56:41 +00:00
Ulrich Drepper
d424955575 (FE_TOWARDZERO): Correct typo. 1998-02-26 08:38:37 +00:00
Ulrich Drepper
5faf38aeab Add definition of FP_ILOGB0 and FP_ILOGNAN. 1998-01-21 17:00:32 +00:00
Ulrich Drepper
905714080f Issue error message if the header is used directly. 1997-11-26 04:14:44 +00:00
Ulrich Drepper
2ecd6b510f Define INFINITY as of type float.
Define DECIMAL_DIG.
1997-11-13 00:15:53 +00:00
Ulrich Drepper
eca7f27242 Only define functions if __OPTIMIZE__. 1997-07-14 21:41:49 +00:00
Ulrich Drepper
b3539abf29 Alpha specific math inline functions. 1997-06-21 02:33:37 +00:00
Ulrich Drepper
5d4b2fb954 Alpha specific math definitions. 1997-06-21 02:32:30 +00:00
Ulrich Drepper
dc75d9cbc3 Alpha specific FP environment definitions. 1997-06-21 02:31:00 +00:00