Commit Graph

99 Commits

Author SHA1 Message Date
ru
e159d4e1e1 Markup nit.
Approved by:	re (blanket)
2005-06-16 21:56:03 +00:00
ru
8582f1d2e1 Fixed compile warning.
Approved by:	re (blanket)
2005-06-16 21:55:45 +00:00
ru
ee9445ed5e Assorted markup fixes.
Approved by:	re
2005-06-15 19:04:04 +00:00
das
b8601deb90 Implement truncl() based on floorl(). 2005-04-16 21:12:47 +00:00
das
9e535d4519 Add roundl(), lroundl(), and llroundl(). 2005-04-08 01:24:08 +00:00
das
637d45da87 Document exp2() and exp2f(), and make other minor tweaks and updates. 2005-04-05 02:57:28 +00:00
das
9c8d2c3467 Implement and document remquo() and remquof(). 2005-03-25 04:40:44 +00:00
das
d958899f48 Document feenableexcept(), fedisableexcept(), and fegetexcept(). 2005-03-16 19:04:28 +00:00
das
964b8cc0b2 Replace fegetmask() and fesetmask() with feenableexcept(),
fedisableexcept(), and fegetexcept().  These two sets of routines
provide the same functionality.  I implemented the former as an
undocumented internal interface to make the regression test easier to
write.  However, fe(enable|disable|get)except() is already part of
glibc, and I would like to avoid gratuitous differences.  The only
major flaw in the glibc API is that there's no good way to report
errors on processors that don't support all the unmasked exceptions.
2005-03-16 19:03:46 +00:00
das
4e91e312ee Document scalbnl and scalblnl. 2005-03-07 05:00:44 +00:00
das
548bfa64db Document nextafterl and nexttoward{,f,l}. 2005-03-07 05:00:29 +00:00
das
1628ed734a Add nexttoward to the list of implemented functions, and explicitly
list the four that are still missing.
2005-03-07 04:59:53 +00:00
das
d8ce8c01ff Document fmal. 2005-03-07 04:59:43 +00:00
das
a263f09ca4 Fix a mistake in the exponent range. 2005-03-06 19:08:18 +00:00
das
42533c1784 Un-document the non-extant exp10() and exp10f() functions.
exp10() was a casualty of the transition away from the VAX.
2005-02-26 08:54:45 +00:00
ru
f4ba498863 Typo. 2005-01-28 21:14:16 +00:00
ru
fdac73c4e2 Properly terminate sentence. 2005-01-28 21:13:34 +00:00
das
2c3fe7f29a - Move the functions presently described in in ieee(3) to their own
manpages.  They are not very related, so separating them makes it
  easier to add meaningful cross-references and extend some of the
  descriptions.
- Move the part of math(3) that discusses IEEE 754 to the ieee(3)
  manpage.
2005-01-27 05:46:17 +00:00
das
2a57ab7a8a Many changes, including the following major ones:
- Rearrange the list of functions into categories.
- Remove the ulps column.  It was appropriate for only some
  of the functions in the list, and correct for even fewer
  of them.
- Add some new paragraphs, and remove some old ones about
  NaNs that may do more harm than good.
- Document precisions other than double-precision.
2005-01-23 22:05:33 +00:00
das
9e53c21356 Add fma() and fmaf(), which implement a fused multiply-add operation. 2005-01-22 09:53:18 +00:00
ru
8ac78e8e38 Sort sections. 2005-01-20 09:17:07 +00:00
ru
bba0e7e634 Use the \*(If string provided by mdoc(7), to represent infinity. 2005-01-16 16:49:10 +00:00
ru
29c5b265cc Removed redundant .br call. 2005-01-16 16:46:14 +00:00
das
e43c739846 Remove numerous references to VAX floating-point and the setting of
errno, replacing them with a discussion of IEEE exceptions where
appropriate.  Cross-reference fenv(3) whenever exceptions are
mentioned.
2005-01-14 23:28:28 +00:00
ru
11724644de Tiny markup nits. 2005-01-14 09:12:05 +00:00
stefanf
6557d41c3f Fixed too many of "the", and enclose multi-word argument in double quotes.
Obtained from:	ru
2005-01-13 20:33:42 +00:00
ru
eb6ad98beb Markup nits. 2005-01-13 10:43:01 +00:00
ru
94c53fb1fc Fixed too many of "the", and enclose multi-word argument in double quotes. 2005-01-13 09:35:47 +00:00
stefanf
a2cbd2f6c5 Implement and document ceill(). 2005-01-13 09:11:41 +00:00
stefanf
3c1cde73ae Bump .Dd for the last commit. 2005-01-13 09:08:16 +00:00
stefanf
38e5eaf1a7 Hook up and document floorl(). 2005-01-12 22:16:26 +00:00
das
1e936d649b Document [l]lrint[f]() and [l]lround[f](). 2005-01-11 23:12:17 +00:00
ru
e1a89ac65f Scheduled mdoc(7) sweep. 2005-01-11 20:50:51 +00:00
ru
acfc69167c Sanitize the markup, as prompted. 2005-01-11 20:16:03 +00:00
das
3fa47c0ccc More updates for math(3):
- Make some minor rearrangements in the introduction.
- Mention the problem with argument reduction on i386.
- Add recently-implemented functions to the table.
- Un-document the error bounds that only apply to the old 4BSD math
  library, and fill in the correct values where I know them.  No
  attempt has been made to document bounds lower than 1 ulp, although
  smaller bounds are usually achievable in round-to-nearest mode.
2004-10-11 20:13:52 +00:00
stefanf
51895b8165 Add and document ilogbl(), a long double version of ilogb(). 2004-10-11 18:13:52 +00:00
stefanf
eee66a7f6e Add man pages for the cimag(), conj() and creal() functions. 2004-08-07 23:03:36 +00:00
das
316b2d107f Fix two bugs in the signbit() macro, which was implemented last year:
- It was added to libc instead of libm.  Hopefully no programs rely
  on this mistake.

- It didn't work properly on large long doubles because its argument
  was converted to type double, resulting in undefined behavior.
2004-07-19 08:16:10 +00:00
das
697f040183 Add C99's nearbyint{,f}() functions as wrappers around rint().
These trivial implementations are about 25 times slower than
rint{,f}() on x86 due to the FP environment save/restore.
They should eventually be redone in terms of fegetround() and
bit fiddling.
2004-07-06 04:46:08 +00:00
ru
5ecfaa06ce Eliminate double whitespace. 2004-07-03 22:30:10 +00:00
ru
4a6cd75809 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
ru
382d61a74f Markup, grammar, punctuation. 2004-07-01 18:20:57 +00:00
das
d58a7fa1c0 Implement and document fdim{,f,l}, fmax{,f,l}, and fmin{,f,l}. 2004-06-30 07:04:01 +00:00
das
fa6361ad43 Uncomment some functions that we now support. 2004-06-20 10:39:09 +00:00
das
95eb2cabfb Cross-reference round(3) and trunc(3) as appropriate. 2004-06-20 09:27:17 +00:00
das
d3ff8ffb68 Implement trunc() and truncf(). 2004-06-20 09:25:43 +00:00
das
86d0a50668 Add trivial implementations of scalbln() and scalblnf().
These routines are specified in C99 for the sake of
architectures where an int isn't big enough to represent
the full range of floating-point exponents.  However,
even the 128-bit long double format has an exponent smaller
than 15 bits, so for all practical purposes, scalbln() and
scalblnf() are aliases for scalbn() and scalbnf(), respectively.
2004-06-20 09:25:27 +00:00
stefanf
2039531535 Document ilogb()'s return values in terms of the FP_ILOGB* macros. 2004-06-19 09:33:29 +00:00
das
76b32ef9cd Memory's free, but all the world ain't a VAX anymore. Bring math.3
kicking and screaming into the 1980's.  This change converts most of
the markup from man(7) to mdoc(7) format, and I believe it removes or
updates everything that was flat out wrong.  However, much work is
still needed to sanitize the markup, improve coverage, and reduce
overlap with other manpages.  Some of the sections would better belong
in a philosophy_of_w_kahan.3 manpage, but they are informative and
remain at least as reminders of topics to cover.

Reviewed by:	doc@, trhodes@
2004-06-19 03:25:28 +00:00
das
1729dcc3a7 The references to scalbn and scalbnf should be scalb and scalbf.
(The former are actually useful, and ieee_test(3) only documents
functions that aren't.)  Add a sentence describing the domain of
scalb() and scalbf().
2004-06-12 04:40:47 +00:00