121856 Commits

Author SHA1 Message Date
bde
45b5b4ba7e MFC:
s_cbrt.c 1.8-1.14
s_cbrtf.c 1.8-1.17

Many significant optimizations and expansions of comments.  Not so many
significant fixes for accuracy.  Several different algorithms are used,
with some appearing only in intermediate versions.
2007-06-14 05:36:19 +00:00
bde
e5ce6c8ae2 MFC:
s_round.c 1.4
s_roundf.c 1.4
s_roundl.c 1.2

Make roundf() actually work, and attempt to fix round() and roundl()
by cloning the fix for roundf().
2007-06-14 05:20:38 +00:00
bde
c771fa043d MFC:
s_rint.c 1.12-1.13: one significant fix and one simplification.
s_rintf.c 1.10: one significant fix

The history is confusing.  The fix was supposed to be in s_rintf.c 1.9,
but that missed the double version and was buggy for the float version.
2007-06-14 05:16:44 +00:00
bde
4eff62ffd1 MFC:
s_logb.c 1.10
s_logbf.c 1.8

Fix logb*() on denormals.
2007-06-14 05:04:07 +00:00
bde
ea6dc95841 MFC:
s_log1pf.c 1.8: work around compiler bugs involving extra precision.

s_log1p.c 1.8
s_log1pf.c 1.9
Fix approximation(s) involving sqrt(2).
2007-06-14 05:00:55 +00:00
bde
710d7522d8 MFC: e_logf.c 1.8-1.9: optimize the polynomial for float precision, and
fix the threshold for (not) using the simpler Taylor polynomial.
2007-06-14 04:52:21 +00:00
bde
091870216f MFC: e_expf.c 1.10: fix the hi+lo approximation to log(2). 2007-06-14 04:47:02 +00:00
bde
65490fa5d8 MFC:
e_coshf.c 1.7
e_sinhf.c 1.8
s_tanhf.c 1.8

Fix some magic numbers and (except for tanhf()) some bugs in pseudo-code.
2007-06-14 04:46:09 +00:00
bde
d9f7e0f995 MFC: 1.9: fix the approximation to pio4. 2007-06-14 04:28:43 +00:00
bde
9b5dac01eb MFC:
k_cos.c 1.9-1.10
k_sin.c 1.9-1.10
k_tan.c 1.11-1.12
s_cos.c 1.10
s_sin.c 1.10
s_tan.c 1.10

Small optimizations and smaller fixes and cleanups for cos(), sin()
and tan() based on work on the float versions.
2007-06-14 04:16:14 +00:00
bde
81e4f5a82a MFC (1.74: detach k_rem_pio2f.c from the build since it is now unused).
This goes with optimizing and debugging cosf(), sinf() and tanf().  This
is an internal API change.  Hopefully nothing outside of libm abuses
libm's internals.  Especially this internal, since it should never have
existed and had large bugs.
2007-06-14 03:54:32 +00:00
rafan
e658015de7 MFC the following changes:
src/lib/ncurses/form/Makefile		1.14
  src/lib/ncurses/menu/Makefile		1.16
  src/lib/ncurses/ncurses/Makefile	1.90
  src/lib/ncurses/panel/Makefile	1.15

  - When I introduce wide character enabled ncurses into base, all headers
    are installed twice (once in non-widec version, onec in widec version).
    Headers with widec enabled are compatible with non-widec version
    for libraries. However, if you do a repeat build/install, the curses.h
    is always overwritten. The reason is that headers and statics libraries
    are installed with -C option to preserve their mtime if no actual changes,
    which saves time when doing incremental builds. The curses.h is installed
    by non-widec ncurses first, then by widec ncurses. So next time, it happens
    again. You see something like this:

    # pwd
    /usr/src/lib/ncurses
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    install: curses.h -> /usr/include/curses.h
    ===> ncursesw (installincludes)
    install: curses.h -> /usr/include/curses.h
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    install: curses.h -> /usr/include/curses.h
    ===> ncursesw (installincludes)
    install: curses.h -> /usr/include/curses.h

    The solution is to disable installing headers in non-widec version. Now
    you see this:

    # pwd
    /usr/src/lib/ncurses
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    ===> ncursesw (installincludes)
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    ===> ncursesw (installincludes)

    For form/panel/menu libraries, the headers are the same for both version.
    To be consistent with ncurses, I also disable the installation in non-widec
    version.

Reported by:    des
Reviewed by:    ru
Thanks to:      ru
Approved by:    delphij (mentor)
2007-06-14 02:53:24 +00:00
bde
1cc5cc45f7 MFC:
e_lgammaf_r.c 1.8-1.9
e_rem_pio2f.c 1.8-1.19
k_cosf.c 1.8-1.15
k_rem_pio2f.c 1.8
k_sinf.c 1.8-1.13
k_tanf.c 1.9-1.20
math_private.h 1.19-1.20
s_cosf.c 1.8-1.15
s_sinf.c 1.8-1.14
s_tanf.c 1.8-1.14

Many significant optimizations and bug fixes for cosf(), sinf() and tanf().
For lgammaf_r(), no direct optimizations, one significant bug fix, and keep
up with API changes in cosf() and sinf() internals.

This involves internal API changes.  Hopefully nothing outside of libm
abuses libm's internals.
2007-06-13 18:17:25 +00:00
bde
af372c104d MFC (1.18: implement some inline functions to support complex functions). 2007-06-13 17:38:50 +00:00
bde
f130e3a085 MFC: (1.73: part of undeprecating logb*()). 2007-06-13 17:23:08 +00:00
bde
c1001bd7f5 MFC: remove California Regent's clause 3, per letter. 2007-06-13 16:08:41 +00:00
bde
761e415a4e MFC (1.3: fix spelling of remquof() in its prototype). 2007-06-13 15:55:55 +00:00
bde
e07a3aba10 MFC: ieee_test.3 1.12-1.13, ilogb.3 1.2-1.3, math.3 1.26-1.27:
Undeprecate logb*().  Add/fix history of logb*() and ilogb*().
2007-06-13 15:53:02 +00:00
bde
f3d6d1751f MFC (1.23: fix a cut-and-paste-o). 2007-06-13 15:43:21 +00:00
bde
39e7b9467b MFC (1.11: fix some comments). 2007-06-13 15:33:26 +00:00
bde
b264c33686 MFC:
b_log.c 1.8, b_tgamma.c 1.7, mathimpl.h 1.6: fix aliasing bugs in TRUNC()
and move its definition to mathimpl.h.

b_tgamma.c 1.8-1.9: document and fix tgamma() on some special args, and
clean up.

mathimpl.h 1.7: clean up.
2007-06-13 15:28:11 +00:00
bde
86b80649e1 MFC (1.3: remove an unneeded fnstcw instruction in fegetenv()). 2007-06-13 15:10:57 +00:00
bde
8e7ec39fbf MFC (1.4: remove an unneeded fnstcw instruction in fegetenv()). 2007-06-13 15:10:15 +00:00
bde
535d24fc03 MFC (1.6: fix fesetenv() clobbering the i387 register stack). 2007-06-13 15:06:32 +00:00
joel
b907c4c383 MFC:
Document support for the following sound cards:

- AudioTrak Prodigy HD2
- AudioTrak Prodigy 7.1 XT
- ESI Juli@
2007-06-13 13:46:01 +00:00
ariff
a9748277bd MFC:
Revision:

  1.39      src/sys/dev/sound/pci/hda/hdac.c

- Add codec id for ALC660 [1]
- Add codec id for AD1988B, along with fixing its line-in and other
  issues (with proper quirks). [2]

Submitted by:	[1] barbara.xxx1975@libero.it
             	[2] Oliver Brandmueller ob@e-Gitt.NET
2007-06-13 01:52:26 +00:00
jhb
b11ee0d368 MFC 1.30: Certain (bad) values of sack blocks can end up corrupting the
sack scoreboard.  Make the checks in tcp_sack_doack() more robust to
prevent this.
2007-06-12 19:21:54 +00:00
jhb
08caba1a80 MFC 1.28: Fix for a bug that causes SACK scoreboard corruption when the
limit on holes per connection is reached.
2007-06-12 19:20:13 +00:00
jhb
22914199b0 MFC 1.315: In the SYN_SENT case, Initialize the snd_wnd before the call to
tcp_mss().  The TCP hostcache logic in tcp_mss() depends on the snd_wnd
being initialized.
2007-06-12 18:53:32 +00:00
ariff
d0c038fa0f MFC:
Revisions:

  1.13      src/sys/dev/sound/pci/envy24.c
  1.2       src/sys/dev/sound/pci/envy24.h
  1.13      src/sys/dev/sound/pci/envy24ht.c
  1.5       src/sys/dev/sound/pci/envy24ht.h
  1.6       src/sys/dev/sound/pci/spicds.c
  1.4       src/sys/dev/sound/pci/spicds.h

Bring in a bunch of bug fixes and some code to support more chipsets.
Neither me nor Joel have access to any of this hardware, so all tests
have been made by Konstantin and Artem.  Commit message mostly written
by Konstantin.

envy24:
- Add test code to support rear line-in input on 'Terratec DMX 6fire'
  audio card.  This code is also intended to be used in the future for
  support of cards, that have I2C-to-GPIO expanders wired between the
  control line of the audio codec and the Envy24, however such cards
  are too complex and i can't add that support without hardware sample
  of such board, i've already tried and failed.

envy24ht:
- Add support for 'AudioTrak Prodigy HD2'.
- Add support for 'AudioTrak Prodigy 7.1 XT'.
- Add support for 'ESI Juli@' (Works ok, DAC volume is hard-coded for
  the time being, so 'mixer vol ...' doesn't work, only 'mixer pcm
  ...' works). [1]
- Fix bug in the init data for M-Audio Revolution 5.1, that
  results in distorted sound.
- Add software volume control (now 'mixer pcm' works, thanks to Ariff).
- Add support for more samples rates - 176.4kHz and 192kHz.
- Fix problem with the 192kHz samples rate playback when 24.576MHz
  crystal is used on the board instead of 49.152MHz crystal.

spicds:
- Add support for Asahi Kasei flagship DAC - AK4396 (used in AudioTrak
  Prodigy HD2).

Submitted by:	Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Tested by:	Artem Antonov [1]
2007-06-11 19:33:28 +00:00
pav
04c9341f42 MFC 1.31-1.32:
- Revert previous revision, it was incorrect
  - Add an example using fdisk instead
2007-06-11 19:09:49 +00:00
njl
0fea200d19 MFC: add suspend method to stop Cx idling and fix a logic bug in per-CPU
Cx sysctl.
2007-06-11 18:54:09 +00:00
jinmei
f7b4cdb9db MFC:
cleanup about the reassembly structures and routine:
  - removed unused structure members
  - fixed a minor bug that the ECN code point may not be restored correctly

Approved by:    ume (mentor)

src/sys/netinet6/frag6.c:  	1.31
src/sys/netinet6/ip6_var.h:  	1.38
2007-06-11 17:04:10 +00:00
kib
a4eb58d102 Bump __FreeBSD_version for BOP_BDFLUSH MFC 2007-06-11 11:54:16 +00:00
kib
871318d35c MFC
rev. 1.521 of src/sys/kern/vfs_bio.c
rev. 1.477 of src/sys/sys/proc.h

Disable nesting of BOP_BDFLUSH().
2007-06-11 11:27:04 +00:00
kib
b75617bf6d MFC:
rev. 1.11 of src/sys/geom/geom_vfs.c
rev. 1.516 of src/sys/kern/vfs_bio.c
rev. 1.35 of src/sys/nfs4client/nfs4_vnops.c
rev. 1.272 of src/sys/nfsclient/nfs_vnops.c
rev. 1.195 of src/sys/sys/buf.h
rev. 1.18 of src/sys/sys/bufobj.h
rev. 1.73 of src/sys/ufs/ffs/ffs_extern.h
rev. 1.133 of src/sys/ufs/ffs/ffs_snapshot.c
rev. 1.324 of src/sys/ufs/ffs/ffs_vfsops.c

Avoid dealing with buffers in bdwrite() that are from other side of
snaplock divisor in the lock order then the buffer being written. Add
new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in
the bdwrite(). Default implementation, bufbdflush(), refactors the code
from bdwrite(). For ffs device buffers, specialized implementation is
used.

This commit changes KPI/KBI, thus recompilation of out of tree kernel
modules is required.

Approved by:	re (kensmith)
2007-06-11 10:53:48 +00:00
jinmei
f3d7053114 MFC:
fixed memory leak for IPv6 multicast membership information associated
with interface addresses.

Approved by:    gnn (mentor)

src/sys/netinet6/in6.c:			1.71
src/sys/netinet6/in6_ifattach.c:	1.36
src/sys/netinet6/in6_var.h:		1.31
2007-06-10 17:17:55 +00:00
maxim
2903a43579 MFC rev. 1.103: make ipfw(8) show rules with mac/mac-type options
correctly.
MFC rev. 1.105: teach get_mac_addr_mask() to not silently accept
incorrect MAC addresses.
2007-06-10 13:59:36 +00:00
kib
4b29bb4d0d MFC remnant of rev. 1.7. 2007-06-10 11:09:39 +00:00
dwmalone
828724ce61 MFC 1.30: Help ng_fec deal with multicast addresses.
This isn't exactly the same patch as in -current as some of the
in-kernel multicast API is different.
2007-06-10 07:41:25 +00:00
dwmalone
5d78f699f3 MFC 1.209: Don't verify UDP IPv4 checksum in-place. 2007-06-10 07:29:08 +00:00
dwmalone
bdc1ef1350 MFC: Fix some warnings by making things const, adding missing headers,
removing some unused variables and making a variable unsigned.
2007-06-10 07:04:09 +00:00
matteo
dcf99d1830 MFC:
rpcbind.c: rev. 1.15, 1.16, 1.17
	rpcbind.8: rev. 1.10

1)Make it possible for rpcbind(8) to bind TCP listening socket to an IP
other than INADDR_ANY.

2) Add the -6 option to specify "IPv6 only".

PR:	84494, 1122566
2007-06-09 09:28:30 +00:00
ariff
cff0f46172 MFC: (revision 1.9)
Fix (enable) phone out for laptops with ALC655, specifically
for Amilo Pro V2055.

PR:		kern/113101
Submitted by:	konrad@egipt-medytacje.pl
2007-06-08 17:33:38 +00:00
jhb
9d24797190 MFC 1.139: Fix a snafu in the changes in 1.138.
PR:		kern/113387
Submitted by:	Andre Albsmeier
2007-06-08 16:51:20 +00:00
pav
ba23ddcf99 MFC addition of bsd.port.options.mk 2007-06-08 16:05:32 +00:00
bz
4ad973ddfb MFC:
1.200 sbin/ipfw/ipfw.8, 1.104 sbin/ipfw/ipfw2.c
  1.110 sys/netinet/ip_fw.h, 1.164 sys/netinet/ip_fw2.c

  Add support for filtering on Routing Header Type 0 and
  Mobile IPv6 Routing Header Type 2 in addition to filter
  on the non-differentiated presence of any Routing Header.
2007-06-07 09:50:53 +00:00
jhb
3de5fcab9c MFC: Make gcore(1) 64 bit safe. 2007-06-06 22:06:42 +00:00
jhb
d7d8ad2d28 MFC: Add support for kernel modules with a single PT_LOAD section. 2007-06-06 21:43:35 +00:00
jhb
8cb531edb0 MFC 1.176: Add vm map and object locking to each_writable_segment(). 2007-06-06 21:30:42 +00:00