Commit Graph

167 Commits

Author SHA1 Message Date
Ulrich Drepper
16e4bf6fec Correct return value according to the standard. 2000-01-31 07:56:49 +00:00
Ulrich Drepper
6d1adc8734 Protect definitions for math.h against double inclusion. 1999-12-18 19:36:39 +00:00
Ulrich Drepper
146bade74f Return value and add alias. 1999-10-31 23:13:47 +00:00
Ulrich Drepper
6c555ab57e Replace __USE_ISOC9X by __USE_ISOC99 and also recognize _ISOC99_SOURCE. 1999-10-31 17:31:25 +00:00
Andreas Schwab
d38f39d005 New file. 1999-06-26 18:11:01 +00:00
Andreas Schwab
5da9d1244a * sysdeps/m68k/fpu/bits/mathinline.h: Move all libm internal
definitions...
	* sysdeps/m68k/fpu/mathimpl.h: ... here.  New file.
	* sysdeps/m68k/fpu/e_acos.c: Include "mathimpl.h".
	* sysdeps/m68k/fpu/e_atan2.c: Likewise.
	* sysdeps/m68k/fpu/e_fmod.c: Likewise.
	* sysdeps/m68k/fpu/e_pow.c: Likewise.
	* sysdeps/m68k/fpu/e_scalb.c: Likewise.
	* sysdeps/m68k/fpu/s_ccos.c: Likewise.
	* sysdeps/m68k/fpu/s_ccosh.c: Likewise.
	* sysdeps/m68k/fpu/s_cexp.c: Likewise.
	* sysdeps/m68k/fpu/s_csin.c: Likewise.
	* sysdeps/m68k/fpu/s_csinh.c: Likewise.
	* sysdeps/m68k/fpu/s_ilogb.c: Likewise.
	* sysdeps/m68k/fpu/s_llrint.c: Likewise.
	* sysdeps/m68k/fpu/s_llrintf.c: Likewise.
	* sysdeps/m68k/fpu/s_llrintl.c: Likewise.
	* sysdeps/m68k/fpu/s_modf.c: Likewise.
1999-06-26 16:43:55 +00:00
Andreas Schwab
303e53829a * sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
names to protect from user's macro namespace.
	* sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c:
	Adapted.
1999-05-22 17:14:30 +00:00
Andreas Schwab
02c1ba5bdf * sysdeps/m68k/fpu/s_modf.c: Optimized by using __m81_test instead
of separare explicit comparisons.
1999-02-13 16:51:29 +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
Ulrich Drepper
79df5fdb24 Define only if __USE_ISOC9X. 1998-11-05 18:05:39 +00:00
Andreas Schwab
a2ffe12b49 * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
C9x macro.
1998-09-09 01:35:38 +00:00
Ulrich Drepper
5fc184edcc List only one file per line. 1998-07-04 14:37:17 +00:00
Andreas Schwab
c21b35ecda * sysdeps/m68k/fpu/bits/mathinline.h: Define __ieee754_exp10 as
inline.
	* sysdeps/m68k/fpu/e_exp10.c: New file.
	* sysdeps/m68k/fpu/e_exp10f.c: New file.
	* sysdeps/m68k/fpu/e_exp10l.c: New file.
1998-06-10 05:27:41 +00:00
Andreas Schwab
4f558ff150 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal,
isless, islessequal, islessgreater, isunordered): Return zero or
	one.
1998-03-13 01:27:51 +00:00
Ulrich Drepper
d424955575 (FE_TOWARDZERO): Correct typo. 1998-02-26 08:38:37 +00:00
Andreas Schwab
ef5e0ac67b Stub file 1998-02-18 01:32:32 +00:00
Ulrich Drepper
7eaf35c740 Don't define exp2 inline.
Define scalbln{,f,l} under __USE_ISOC9X, not __USE_MISC.
1997-12-22 18:53:56 +00:00
Ulrich Drepper
3632b95d0a Protect declarations of inline functions by feature tests to avoid
warning about missing prototype declarations.
1997-12-14 22:09:47 +00:00
Ulrich Drepper
ac442bf7a9 (fenv_t): Add member to hold fpiar value, to match spirit of the
standard.
1997-12-14 22:09:29 +00:00
Ulrich Drepper
053ed29047 Save/restore fpiar. 1997-12-14 22:09:13 +00:00
Ulrich Drepper
fc1eaef3e8 Don't define ___LIBC_INTERNAL_MATH_INLINES here. 1997-12-03 23:31:37 +00:00
Ulrich Drepper
905714080f Issue error message if the header is used directly. 1997-11-26 04:14:44 +00:00
Ulrich Drepper
e00fbfc6aa Define optimizations if __LIBC_INTERNAL_MATH_INLINES is defined. 1997-11-22 18:47:44 +00:00
Ulrich Drepper
e729bad58b Define __LIBC_INTERNAL_MATH_INLINES instead of
__LIBC_M81_MATH_INLINES.
1997-11-22 18:45:43 +00:00
Ulrich Drepper
2ecd6b510f Define INFINITY as of type float.
Define DECIMAL_DIG.
1997-11-13 00:15:53 +00:00
Ulrich Drepper
d2d2125ecd m68k specific llrint implementation. 1997-11-11 23:48:16 +00:00
Ulrich Drepper
d391bc58dd Make compilable and fix overflow condition. 1997-11-11 23:47:20 +00:00
Ulrich Drepper
b6d0dce1cc Add fma and scalbln. Update lrint and scalbn.
(__m81_inline) [__cplusplus]: Define to __inline.
1997-10-26 19:59:32 +00:00
Ulrich Drepper
c43ee646dd Add scalbln alias. 1997-10-26 19:59:09 +00:00
Ulrich Drepper
95d16178a8 New (empty) file. 1997-10-26 19:58:56 +00:00
Ulrich Drepper
f6672b01b5 Add standard skeleton stuff. 1997-10-26 19:58:40 +00:00
Ulrich Drepper
d0b9a80c6e Rename exp2{,l,f} to __ieee754_exp2{,l,f}. 1997-09-30 16:58:36 +00:00
Ulrich Drepper
80bf28e227 Add empty file to prevent the version from libm-ieee754 be compiled
since the later is not needed.
1997-08-10 17:34:46 +00:00
Ulrich Drepper
75dc7e89eb Don't handle FE_INEXACT specially, the standard doesn't require it. 1997-07-24 01:32:45 +00:00
Ulrich Drepper
216f1b7f7c Define ISO C9x comparison function always. 1997-07-14 21:44:57 +00:00
Ulrich Drepper
6cabe500f3 (fesetenv): Shift the exception mask in the right position. 1997-07-11 01:13:24 +00:00
Ulrich Drepper
07ce00df82 Shift the exception mask in the right position. 1997-07-11 01:13:11 +00:00
Ulrich Drepper
c49416b519 Correct the FE_INEXACT and FE_UNDERFLOW cases. 1997-07-06 21:45:05 +00:00
Ulrich Drepper
ca50e0187a Adapated for change of s_ilogb.c. 1997-06-26 22:19:58 +00:00
Ulrich Drepper
3fe409285e Define it here. Handle zero, NaN and infinity specially. 1997-06-26 22:19:45 +00:00
Ulrich Drepper
8be9676b25 (FP_ILOGB0): Correct value. 1997-06-26 22:19:12 +00:00
Ulrich Drepper
e775757079 Don't undef macros for unordered comparison before definition.
Don't define __ilogb.
1997-06-26 22:19:04 +00:00
Ulrich Drepper
5290f57812 Fix type of second argument. 1997-06-23 21:44:36 +00:00
Ulrich Drepper
79c6cc00ff Rewritten. 1997-06-23 21:44:21 +00:00
Ulrich Drepper
622cae1af0 (FP_ILOGB0, FP_ILOGBNAN): Define. 1997-06-23 21:43:50 +00:00
Ulrich Drepper
1594e779ba (__scalbn): Fix type of second argument.
(__ilogb): Remove special case for zero, add stupid special case for NaN.
(__ieee754_scalb): Remove definition.
1997-06-23 21:43:40 +00:00
Ulrich Drepper
788c7990eb Moved to bits/. 1997-06-21 02:40:36 +00:00
Ulrich Drepper
15c1225093 m68k w/out FPU specific math inline functions. 1997-06-21 02:34:13 +00:00
Ulrich Drepper
ef8a52eeee m68k specific math inline functions. 1997-06-21 02:34:00 +00:00
Ulrich Drepper
19b9549252 m68k specific math definitions. 1997-06-21 02:33:02 +00:00