David Schultz
5d9fefacf2
Use #include "fenv.h" instead of #include <fenv.h>. This makes it
...
more convenient to compile the math library by itself.
Requested by: bde
2011-10-16 05:37:56 +00:00
David Schultz
0ddbe81e4f
Fix some non-standard variable declarations.
2011-10-16 05:37:20 +00:00
David Schultz
4ce31585dc
Optimize the case of pure imaginary arguments. Calls like this are
...
common, e.g., in DFT implementations.
Discussed with: bde, kargl
2011-10-16 05:37:01 +00:00
David Schultz
e62394861d
Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() into
...
math_private.h, so they can be used elsewhere in the math library.
2011-10-16 05:36:39 +00:00
David Schultz
eccf8b3a30
Remove an unused variable.
2011-10-16 05:36:23 +00:00
Nathan Whitehorn
007b7ee85c
Enforce a memory barrier in stream operations, as is done on other
...
bus_space calls. This makes ath(4) work correctly on PowerPC.
Submitted by: adrian
Tested by: andreast
MFC after: 3 days
2011-10-15 23:15:55 +00:00
Christian Brueffer
32a1cc9317
Properly free resources in case of an error.
...
CID: 4222
Found with: Coverity Prevent(tm)
MFC after: 1 week
2011-10-15 22:27:35 +00:00
Eitan Adler
acdfc36a85
- add support for I-O DATA RSA-PCI2/R
...
PR: kern/142999
Submitted by: Takefu Kenji <takefu@airport.fm>
Approved by: jhb
Approved by: sahil (mentor)
MFC after: 1 week
2011-10-15 21:06:08 +00:00
Mikolaj Golub
8d105928ec
In r225809 the intention was to send VEOF only once if STDIN was not a
...
terminal. Unfortunately the fix was incorrect and for flushtime > 0 it
keept sending VEOF.
Sent VEOF generates ^D\b\b echoed by the terminal, which was reported
in bin/161526. Note, we still send VEOF at least once. Otherwise
commands like below would hang forever:
echo 1 |script /tmp/script.out cat
PR: bin/161526
Reported by: Adrian Wontroba <aw1@stade.co.uk>, Stefan Bethke <stb@lassitu.de>
Tested by: Stefan Bethke <stb@lassitu.de>
MFC after: 3 days
2011-10-15 19:08:22 +00:00
Gleb Smirnoff
53883e0c24
Add support for IPv4 /31 prefixes, as described in RFC3021.
...
To run a /31 network, participating hosts MUST drop support
for directed broadcasts, and treat the first and last addresses
on subnet as unicast. The broadcast address for the prefix
should be the link local broadcast address, INADDR_BROADCAST.
2011-10-15 18:41:25 +00:00
Gleb Smirnoff
b365d954cc
Remove last remnants of classful addressing:
...
- Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr.
- Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011.
- fix bug when we were not forwarding to a host which matches classful
net address. For example router having 192.168.x.y/16 network attached,
would not forward traffic to 192.168.*.0, which are legal IPs in
CIDR world.
- For compatibility, leave autoguessing of mask based on class.
Reviewed by: andre, bz, rwatson
2011-10-15 16:28:06 +00:00
Christian Brueffer
0ad684e7b4
Properly free resources in an error case.
...
CID: 4203
Found with: Coverity Prevent(tm)
MFC after: 1 week
2011-10-15 15:57:55 +00:00
Ed Schouten
2bd338d6c4
Fix whitespace inconsistencies in systat(1).
...
According to md5(1), the resulting binary is the same.
2011-10-15 13:20:36 +00:00
Konstantin Belousov
126b36a21e
Control the execution permission of the readable segments for
...
i386 binaries on the amd64 and ia64 with the sysctl, instead of
unconditionally enabling it.
Reviewed by: marcel
2011-10-15 12:35:18 +00:00
Marius Strobl
2b6ae84b63
Merge from NetBSD:
...
- Remove clause 3 and 4 from TNF licenses.
- Fix memset usage.
- Various cleanup.
- Kill caddr_t.
2011-10-15 09:29:43 +00:00
David Schultz
e595c01fd8
Remove some unnecessary initializations.
...
Obtained from: DragonFlyBSD
2011-10-15 07:00:28 +00:00
David Schultz
31b4d3aef3
Add some tests for corner cases of log() in unusual rounding modes.
...
I wrote these ages ago, but they've been failing until now.
2011-10-15 05:28:13 +00:00
David Schultz
9c7781b7a3
Add some tests for double-rounding bugs in fma().
2011-10-15 05:26:16 +00:00
David Schultz
b052ec9065
Various changes to improve the accuracy and speed of log{2,10}{,f}.
...
- Rename __kernel_log() to k_log1p().
- Move some of the work that was previously done in the kernel log into
the callers. This enables further refactoring to improve accuracy or
speed, although I don't recall the details.
- Use extra precision when adding the final scaling term, which improves
accuracy.
- Describe and work around compiler problems that break some of the
multiprecision calculations.
A fix for a small bug is also included:
- Add a special case for log*(1). This is needed to ensure that log*(1) == +0
instead of -0, even when the rounding mode is FE_DOWNWARD.
Submitted by: bde
2011-10-15 05:23:28 +00:00
David Schultz
5ebf26f6a1
Style fixes and updates to comments.
...
Submitted by: bde
2011-10-15 05:00:56 +00:00
David Schultz
15d5d9deb1
Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is
...
no longer "fast" on sparc64. (It really wasn't to begin with, since
the old implementation was using long doubles, and long doubles are
emulated in software on sparc64.)
2011-10-15 04:24:54 +00:00
David Schultz
3d4dfde48a
Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c.
2011-10-15 04:22:55 +00:00
David Schultz
90a83ac60a
Replace two lines accidentally removed in r226218. Thanks to bde
...
for noticing this.
2011-10-15 04:17:20 +00:00
David Schultz
ec95083025
Fix a double-rounding bug in fma{,f,l}. The bug would occur in
...
round-to-nearest mode when the result, rounded to twice machine
precision, was exactly halfway between two machine-precision
values. The essence of the fix is to simulate a "sticky bit" in
the pathological cases, which is how hardware implementations
break the ties.
MFC after: 1 month
2011-10-15 04:16:58 +00:00
Gleb Smirnoff
2a2e6f0aeb
Never switch directly from INIT to MASTER, since this produces
...
nasty status flaps.
PR: kern/161123
Submitted by: Damien Fleuriot <dam my.gd>
OpenBSD: ip_carp.c, rev. 1.115
2011-10-14 19:05:26 +00:00
John Baldwin
9860134635
Fix a typo in a comment.
2011-10-14 11:48:32 +00:00
John Baldwin
660d55fb88
Regen.
2011-10-14 11:47:14 +00:00
John Baldwin
f940342426
Use PAIR32TO64() for the offset and length parameters to
...
freebsd32_posix_fallocate() to properly handle big-endian platforms.
Reviewed by: mdf
MFC after: 1 week
2011-10-14 11:46:46 +00:00
Ed Schouten
50af444a74
Put parentheses in the right place.
...
Noted by: jilles@
Broken by: me. :-(
2011-10-14 10:43:55 +00:00
Ed Schouten
b7cf00e8d9
Make nl(1) build with WARNS=6.
...
Obtained from: NetBSD
2011-10-14 07:28:39 +00:00
Ed Schouten
51b671f6de
Build last(1) and leave(1) with WARNS=6.
...
These ports were only built with WARNS=1, because they use certain
format extensions. We can use NO_WFORMAT for that instead.
2011-10-14 07:26:20 +00:00
Ed Schouten
b173dd440b
Build tr(1) with WARNS=6.
2011-10-14 07:25:20 +00:00
Ed Schouten
583458543c
Build look(1) with WARNS=6.
2011-10-14 07:24:48 +00:00
Ed Schouten
c5d693c5d0
Build finger(1) with WARNS=6.
2011-10-14 07:24:23 +00:00
Adrian Chadd
cdd36f96b2
ath_pci PCI setup fixes.
...
* Break out the PCI setup override code into a new function.
* Re-apply the PCI overrides on powersave resume. The retry timeout
register isn't currently being saved/resumed by the PCI driver/bus
code.
2011-10-14 03:24:35 +00:00
Warren Block
2d6fb05305
Add mentors and myself to committers-doc.dot.
...
Approved by: gjb (mentor)
2011-10-14 00:34:45 +00:00
Marcel Moolenaar
90fd594a1d
Use PTRIN().
2011-10-13 22:33:03 +00:00
Raphael Kubo da Costa
91a7fc18f0
Add myself to committers-ports.dot and calendar.freebsd.
...
Approved by: avilla (mentor)
2011-10-13 20:36:43 +00:00
Marius Strobl
1e5addb750
Merge from r225950:
...
Set the sense residual properly.
Reviewed by: ken
2011-10-13 20:06:19 +00:00
Marcel Moolenaar
f8244106ab
Wrap mprotect(2) so that we can add execute permissions when read
...
permissions are requested. This is needed on amd64 and ia64 for
JDK 1.4.x
2011-10-13 18:25:10 +00:00
Marcel Moolenaar
eb8afcd36a
Wrap mprotect(2)
2011-10-13 18:21:11 +00:00
Marcel Moolenaar
488a16050c
In freebsd32_mmap() and when compiling for amd64 or ia64, also
...
ask for execute permissions when read permissions are wanted.
This is needed for JDK 1.4.x on i386.
2011-10-13 18:18:42 +00:00
Bernhard Schmidt
a7978bab76
Fix bmiss notifications, events should be sent when NOT scanning.
...
MFC after: 3 days
2011-10-13 18:17:03 +00:00
Dag-Erling Smørgrav
23f39c906b
Make dhclient use a pid file. Modify the rc script accordingly; while
...
there, clean it up and add some error checks.
Glanced at by: brooks@
MFC after: 3 weeks
2011-10-13 17:20:45 +00:00
Dag-Erling Smørgrav
51b6c61f98
Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE}
...
instead of $(uname -m).
Pointed out by: nyan@
2011-10-13 16:29:24 +00:00
Marcel Moolenaar
5f81660285
In sys_obreak() and when compiling for amd64 or ia64, when the process
...
is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x
depends on being able to execute from the heap on i386.
2011-10-13 16:20:10 +00:00
Marcel Moolenaar
676eda08d0
In elf32_trans_prot() and when compiling for amd64 or ia64, add
...
PROT_EXECUTE when PROT_READ is needed. By default i386 allows
execution when reading is allowed and JDK 1.4.x depends on that.
2011-10-13 16:16:46 +00:00
Ed Schouten
97b48ffc93
Link the demo application against ncursesw to make Unicode work.
2011-10-13 14:20:27 +00:00
Gleb Smirnoff
d5378bb633
Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation.
2011-10-13 13:33:23 +00:00
Gleb Smirnoff
a0b5928b29
De-spl(9).
2011-10-13 13:30:41 +00:00