2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = -I$(srcdir)/../common $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
src = k_standard.c k_rem_pio2.c \
|
|
|
|
k_cos.c k_sin.c k_tan.c \
|
|
|
|
e_acos.c e_acosh.c e_asin.c e_atan2.c \
|
|
|
|
e_atanh.c e_cosh.c e_exp.c e_fmod.c \
|
|
|
|
er_gamma.c e_hypot.c e_j0.c \
|
|
|
|
e_j1.c e_jn.c er_lgamma.c \
|
|
|
|
e_log.c e_log10.c e_pow.c e_rem_pio2.c e_remainder.c \
|
|
|
|
e_scalb.c e_sinh.c e_sqrt.c \
|
|
|
|
w_acos.c w_acosh.c w_asin.c w_atan2.c \
|
|
|
|
w_atanh.c w_cosh.c w_exp.c w_fmod.c \
|
|
|
|
w_gamma.c wr_gamma.c w_hypot.c w_j0.c \
|
|
|
|
w_j1.c w_jn.c w_lgamma.c wr_lgamma.c \
|
|
|
|
w_log.c w_log10.c w_pow.c w_remainder.c \
|
|
|
|
w_scalb.c w_sinh.c w_sqrt.c \
|
2002-08-17 05:29:45 +08:00
|
|
|
w_sincos.c \
|
2010-10-08 18:49:28 +08:00
|
|
|
w_drem.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
s_asinh.c s_atan.c s_ceil.c \
|
|
|
|
s_cos.c s_erf.c s_fabs.c s_floor.c \
|
2006-02-28 07:51:28 +08:00
|
|
|
s_frexp.c s_ldexp.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
s_signif.c s_sin.c \
|
|
|
|
s_tan.c s_tanh.c \
|
2002-06-08 05:59:57 +08:00
|
|
|
w_exp2.c w_tgamma.c
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
fsrc = kf_rem_pio2.c \
|
|
|
|
kf_cos.c kf_sin.c kf_tan.c \
|
|
|
|
ef_acos.c ef_acosh.c ef_asin.c ef_atan2.c \
|
|
|
|
ef_atanh.c ef_cosh.c ef_exp.c ef_fmod.c \
|
|
|
|
erf_gamma.c ef_hypot.c ef_j0.c \
|
|
|
|
ef_j1.c ef_jn.c erf_lgamma.c \
|
|
|
|
ef_log.c ef_log10.c ef_pow.c ef_rem_pio2.c ef_remainder.c \
|
|
|
|
ef_scalb.c ef_sinh.c ef_sqrt.c \
|
|
|
|
wf_acos.c wf_acosh.c wf_asin.c wf_atan2.c \
|
|
|
|
wf_atanh.c wf_cosh.c wf_exp.c wf_fmod.c \
|
|
|
|
wf_gamma.c wrf_gamma.c wf_hypot.c wf_j0.c \
|
|
|
|
wf_j1.c wf_jn.c wf_lgamma.c wrf_lgamma.c \
|
|
|
|
wf_log.c wf_log10.c wf_pow.c wf_remainder.c \
|
|
|
|
wf_scalb.c wf_sinh.c wf_sqrt.c \
|
2002-08-17 05:29:45 +08:00
|
|
|
wf_sincos.c \
|
2010-10-08 18:49:28 +08:00
|
|
|
wf_drem.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
sf_asinh.c sf_atan.c sf_ceil.c \
|
|
|
|
sf_cos.c sf_erf.c sf_fabs.c sf_floor.c \
|
2006-02-28 07:51:28 +08:00
|
|
|
sf_frexp.c sf_ldexp.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
sf_signif.c sf_sin.c \
|
|
|
|
sf_tan.c sf_tanh.c \
|
2002-06-08 05:59:57 +08:00
|
|
|
wf_exp2.c wf_tgamma.c
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2015-02-07 00:14:04 +08:00
|
|
|
lsrc = el_hypot.c
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
libmath_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libmath.la
|
2015-02-07 00:14:04 +08:00
|
|
|
libmath_la_SOURCES = $(src) $(fsrc) $(lsrc)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2015-02-07 00:14:04 +08:00
|
|
|
lib_a_SOURCES = $(src) $(fsrc) $(lsrc)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2009-03-25 Craig Howland <howland@LGSInnovations.com>
* libc/include/math.h: (llround, llroundf): Declare.
* libm/common/s_llround.c: New file, implementing llround().
* libm/common/sf_llround.c: New file, implementing llroundf().
* libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
version of function.
* libm/common/sf_lrint.c: Ditto.
* libm/common/sf_logb.c: Corrected return for subnormal argument
by replacing existing function with a version created from sf_ilogb.c.
* libm/common/s_logb.c: Ditto, except starting point s_ilogb.c. Also
added documentation for logb() and logbf().
* libm/common/s_signbit.c: Add signbit() documentation.
* libm/common/s_log2.c: Update return values to match what w_log2.c has,
since log2 uses log(); add note about being derived instead of direct.
* libm/common/sf_fma.c: Add casts to attempt to get correct results,
as well as comments pointing out problems with the implementation.
* libm/common/s_fma.c: Add fma() and fmaf() documentation.
* libm/common/sf_remquo.c: Incorrect quotient returns for large values
corrected by discarding existing function and replacing with Sun
verion, with some enhancements.
* libm/common/s_remquo.c: Ditto. Add remquo() and remquof()
documentation.
* libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
* libm/common/s_fmin.c: Add fmin() and fminf() documentation.
* libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
documentation.
* libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
* libm/common/s_trunc.c: Add trunc() and truncf() documentation.
* libm/common/s_rint.c: Add rint() and rintf() documentation.
* libm/common/s_round.c: Add round() and roundf() documentation.
* libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
* libm/common/s_infinity.c: Add infinity() and infinityf()
documentation.
* libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
llroundf() documentation.
* libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
documentation.
* libm/common/isgreater.c: New file for documenting math.h function-like
macros isgreater(), isgreaterequal(), isless(), islessequal(),
islessgreater(), and isunordered().
* libm/common/s_isnan.c: Add documentation for function-like macros
fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
* libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
documentation.
* libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
isgreater.def (chobj);
re-name all existing chew files (chobj) to match source file base
names (put in underscores), delete all special targets for chew files
(leaving all to be generated by rule).
* libm/common/Makefile.in: regenerate.
* libm/math/w_exp2.c: Add "base 2" to documentation description (and
delete TRAD_SYNOPSIS).
* libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
with some history behind the function names.
* libm/math/math.tex: Add includes for newly-added documentation (see
.def additions to common/Makefile.am and math/Makefile.am in this
ChangeLog list), adjusted existing .def file names to match source file
base names (added underscores); add mention of HUGE_VALF; rename
"Version of library" section to "Error Handling" and add some text
about floating-point exception; added section "Standards Compliance And
Portability".
* libm/math/Makefile.am: Add w_exp2.def (chobj);
re-name all existing chew files (chobj) to match source file base
names, delete all special targets for chew files (leaving all to be
generated by rule).
* libm/math/Makefile.in: regenerated
* doc/makedoc.c: Change silent ignoring of commands < 5 characters
to a failure when reading macro file for commands < 4 characters;
add -v (verbose) option for printing some debugging information;
get rid of spurious translation of "@*" to "*" (no source files used @*,
so no existing doc pages were affected); clean up some compiler
warnings.
* doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
which has them); Remove ITEM command (redundant with makedoc built-in
"o", not used in any present source file so nothing is lost, anyway).
* HOWTO: New file to hold information for maintainers regarding how
to do things. Initial sections on documentation and ELIX levels.
2009-03-26 03:13:24 +08:00
|
|
|
chobj = w_acos.def w_acosh.def w_asin.def s_asinh.def \
|
|
|
|
s_atan.def w_atan2.def w_atanh.def w_j0.def \
|
|
|
|
w_cosh.def s_erf.def w_exp.def w_exp2.def \
|
|
|
|
s_fabs.def s_floor.def w_fmod.def s_frexp.def \
|
|
|
|
w_gamma.def w_hypot.def s_ldexp.def w_log.def \
|
|
|
|
w_log10.def \
|
|
|
|
w_pow.def w_remainder.def s_sin.def w_sinh.def \
|
|
|
|
w_sqrt.def s_tan.def s_tanh.def
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
SUFFIXES = .def
|
|
|
|
|
|
|
|
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
|
|
|
|
|
|
|
|
.c.def:
|
|
|
|
$(CHEW) < $< > $*.def 2> $*.ref
|
|
|
|
touch stmp-def
|
|
|
|
|
|
|
|
TARGETDOC = ../tmp.texi
|
|
|
|
|
|
|
|
doc: $(chobj)
|
|
|
|
cat $(srcdir)/math.tex >> $(TARGETDOC)
|
|
|
|
|
|
|
|
CLEANFILES = $(chobj) *.ref
|
|
|
|
|
|
|
|
# A partial dependency list.
|
|
|
|
|
|
|
|
$(lib_a_OBJECTS): $(srcdir)/../../libc/include/math.h $(srcdir)/../common/fdlibm.h
|