Commit Graph

8592 Commits

Author SHA1 Message Date
wennmach
cf92bf760d Reimplement s_log1p.S and s_log1pf.S to use the fyl2xp1 instruction
where necessary.

The log1p() function is provided to compute an accurate value of
log(1 + x), even for tiny values of x. The i387 FPU provides the
fyl2xp1 instruction for this purpose.

However, since the range of the fyl2xp1 function is limited to
-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
          (-0.292893 <= x <= 0.414214)
we need to check if the argument is in the valid range.

In order to reduce the cost for testing the range, we only use
fyl2xp1 if the argument is in the range
               -0.25 <= x <= 0.25
which can be checked with just one conditional branch.

Fixes PR lib/22599 by Ray Brownrigg.
2003-09-10 16:45:43 +00:00
wiz
fb114e34c8 Add semicolons when enumerating variables (looks more natural);
new sentence, new line; sort SEE ALSO.
2003-09-10 14:27:22 +00:00
christos
a3c9529278 Reflect reality after siginfo changes. 2003-09-10 14:13:07 +00:00
wiz
8d66b069c8 Use standard section headers, suggested by jmc@openbsd. Sort sections. 2003-09-10 13:30:16 +00:00
wiz
9e4a539564 Pull over some improvements from OpenBSD's v1.26 of this file, including
SEE ALSO and RETURN VALUES sections.
2003-09-10 09:35:41 +00:00
wiz
0e9a92473d Fix Nd; use In instead of Fd; grammar fixes. 2003-09-10 09:16:45 +00:00
tls
ef0a2c06dc Another gcc3 problem: "exp" shadows a builtin. Rename it to "expo". 2003-09-10 07:20:13 +00:00
tls
732fa344d5 This didn't build with gcc3 because it was missing <string.h> for memset. 2003-09-10 07:12:33 +00:00
wiz
89d02ff30e Use In instead of Fd for header files. 2003-09-10 05:51:06 +00:00
itojun
0186de22d3 getopt return value has to be held in int, not char. 2003-09-10 00:03:42 +00:00
itojun
0257a0c524 bump minor for randomid(3) and pw_dup(3) 2003-09-09 22:18:08 +00:00
itojun
cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
itojun
00552ebbd7 add randomid(3). 2003-09-09 22:10:33 +00:00
itojun
24a3a1d964 have pw_dup(3). from openbsd 2003-09-09 22:01:56 +00:00
wiz
185463aee4 Fix typos and declare a missing variable in example. From Quentin Garnier in PR 22733. 2003-09-09 19:31:53 +00:00
itojun
5c945215d0 __RCSID police 2003-09-09 03:56:39 +00:00
itojun
35beb40305 have __rpc_getxid.c 2003-09-09 03:56:23 +00:00
itojun
8b08fa0d3b use niels provos' random sequence number generator to initialize RPC XID. 2003-09-09 00:22:17 +00:00
itojun
c469f0373f initialize 'res' to NULL 2003-09-08 20:54:48 +00:00
wiz
dca9ccd375 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
wiz
a2f146d519 Mention RFC 3493; inet_{ntop,pton} are in 1003.1-2001; move XNS5.2 to HISTORY.
Okayed by kleink.
2003-09-08 17:21:31 +00:00
itojun
0676396691 plug possible memory leak. from openbsd 2003-09-08 16:19:40 +00:00
itojun
ce87a439ff deal with policy without selector. sync w/ kame 2003-09-08 10:16:31 +00:00
fvdl
7e7bcf4bc9 Allow platforms to define __EH_FRAME_CONST. Currently "const" for x86_64,
empty for others. x86_64 (and s390, which we do not have) have .eh_frame
as a read-only section, so __EH_FRAME_BEGIN__ and the register/deregister
functions must take a const foo *.

This also fixes an ICE in gcc 3.3.1 (see gcc PR #9552)
2003-09-07 22:27:54 +00:00
wiz
c4f582bcc6 Fix typos in comments; from Brian Poole via jmc@openbsd. 2003-09-07 19:06:50 +00:00
wiz
47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
cl
89d0cfd21f Remove possible race condition in upcall recycling. 2003-09-07 14:47:44 +00:00
uwe
b5623b232f Use delay slot in STACK_SWITCH (catching up with sparc64 changes). 2003-09-07 02:08:31 +00:00
uwe
7d522ba08b Use correct context to switch to.
From sparc64 fix by Andrey Petrov <petrov@netbsd>.
2003-09-07 01:54:47 +00:00
christos
ec30b8c224 Add __sigtramp2.S 2003-09-06 22:56:47 +00:00
christos
cdf03491b8 rename exp to expo to avoid global shadowing warning. 2003-09-06 22:47:56 +00:00
christos
28b6d65b33 bump for i386 signal trampoline; not strictly necessary, but convenient
for people who have an unsuccessful build.
2003-09-06 22:11:50 +00:00
christos
9c5c2215ea siginfo signal trampoline code. 2003-09-06 22:10:40 +00:00
kleink
9f18c21c61 Add Xref to dirname(1). 2003-09-06 20:58:39 +00:00
kleink
d27a834c8e Add Xref to basename(1). 2003-09-06 20:58:11 +00:00
wiz
4bfb9a4429 Add __warn_references for deprecated lastlogxname. Okayed by christos. 2003-09-06 16:42:10 +00:00
itojun
08fc9c3284 move provos' copyright closer to res_randomid() 2003-09-06 11:46:32 +00:00
itojun
a970cdd909 bring in openbsd lib/libc/net/res_random.c for truely-random res_randomid(). 2003-09-06 11:40:52 +00:00
jhawk
4b3391a2a6 %F is a date conversion, not a time converstion.
don't bother to bump Dd
2003-09-03 16:10:56 +00:00
wiz
f88c193847 Mark up NULL; bump date for last; drop trailing space. 2003-09-01 15:40:46 +00:00
tshiozak
cf33db0f3a fix the problem about resetting the state of iconv().
iconv() was not conforming to the SUSv3 at this point.
reported by Bruno Haible.
2003-09-01 06:16:13 +00:00
wiz
a24c4806d6 Nm -> Fn getnameinfo; grammar improvements; markup improvement;
all from jmc@openbsd, thanks.
2003-08-28 12:03:08 +00:00
wiz
520d0eab98 Bump date for CAVEATS; fix punctuation usage in one place;
drop trailing space; use \*[Am] instead of & for HTML generation.
2003-08-28 09:39:11 +00:00
itojun
e3a97c1624 use NI_NUMERICHOST for 2nd invocation 2003-08-28 01:49:30 +00:00
itojun
9de573eee1 add int error in CAVEAT 2003-08-28 01:46:45 +00:00
itojun
91c72951cb add CAVEATS section 2003-08-28 01:43:14 +00:00
heas
6333112bb9 plural "characters" for ret of {v}snprintf 2003-08-27 18:47:14 +00:00
uwe
2194ee2027 Add a comment that explains that
. this function cannot have _PROF_PROLOGUE
  . this function cannot be called via PLT

Change ENTRY to NENTRY for the former.

XXX: The latter is important in the gcc3 world, that have shared
libraries.  We will need to play tricks with .hidden to make sure
every shared library gets its own private __udivsi3 that it can call
directly, without going through the PLT.
2003-08-27 15:03:06 +00:00
petrov
0d472e116b typo in previous commit, annul isn't good there,
noticed by Eduardo Horvath.
2003-08-26 17:50:06 +00:00
wiz
7666801285 Add man page for getlastlogx and friends. 2003-08-26 17:37:48 +00:00