cvs commit: src/lib/msun Makefile src/lib/msun/man ieee_test.3 ilogb.3 math.3

2005-11-06 Thread Bruce Evans
bde 2005-11-06 12:18:27 UTC FreeBSD src repository Modified files: lib/msun Makefile lib/msun/man ieee_test.3 ilogb.3 math.3 Log: The logb() functions are not just ieee754 "test" functions, but are standard in C99 and POSIX.1-2001+. They are also n

cvs commit: src/lib/msun/src e_rem_pio2f.c

2005-11-06 Thread Bruce Evans
bde 2005-11-06 17:48:02 UTC FreeBSD src repository Modified files: lib/msun/src e_rem_pio2f.c Log: Use a 53-bit approximation to pi/2 instead of a 33+53 bit one for the special case pi/4 <= |x| < 3*pi/4. This gives a tiny optimization (it saves 2 subtractions, wh

cvs commit: src/lib/msun Makefile

2005-11-06 Thread Bruce Evans
bde 2005-11-06 17:59:40 UTC FreeBSD src repository Modified files: lib/msun Makefile Log: Detach k_rem_pio2f.c from the build since it is now unused. It is a libm internal so this shouldn't cause version problems. Revision ChangesPath 1.74 +1 -

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-08 Thread Bruce Evans
On Tue, 8 Nov 2005, Nate Lawson wrote: Craig Rodrigues wrote: rodrigc 2005-11-09 02:26:38 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: For nmount(), allow a text string error message to be propagated back to user-space if a parameter named

Re: cvs commit: src/sys/kern subr_power.c

2005-11-09 Thread Bruce Evans
On Wed, 9 Nov 2005, Warner Losh wrote: Modified files: sys/kern subr_power.c Log: Kick off the suspend sequence from the keyboard in a SWI rather than in the hardware interrupt context (even if it is likely just an ithread). We don't document that suspend/resume routines are

Re: cvs commit: src/sys/kern vfs_subr.c src/sys/fs/devfs devfs_vnops.c

2005-11-09 Thread Bruce Evans
On Thu, 10 Nov 2005, Poul-Henning Kamp wrote: I don't think I've seen any other proposals than to put it in dirent where it rightfully belongs. The reason it is not in dirent is that UFS/FFS uses dirent as the layout in directories as a microoptimization. I think the reason is exactly the opp

Re: cvs commit: src/sys/kern subr_power.c

2005-11-10 Thread Bruce Evans
On Wed, 9 Nov 2005, Scott Long wrote: ... Bruce Evans wrote: Er, SWIs are interrupts too. Trying to sleep in a SWI handler should cause the same message. This commit uses the general taskqueue SWI handler. taskqueue(9) implicitly says that only the taskqueue thread handler can sleep (it

Re: cvs commit: src/sys/kern vfs_subr.c src/sys/fs/devfs devfs_vnops.c

2005-11-10 Thread Bruce Evans
On Thu, 10 Nov 2005, Poul-Henning Kamp wrote: In message <[EMAIL PROTECTED]>, Bruce Evans writes: On Thu, 10 Nov 2005, Poul-Henning Kamp wrote: I don't think I've seen any other proposals than to put it in dirent where it rightfully belongs. The reason it is not in dirent

cvs commit: src/lib/msun/src k_tanf.c

2005-11-10 Thread Bruce Evans
bde 2005-11-10 17:43:50 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: As for __kernel_cosf() and __kernel_sinf(), use a fairly optimal minimax polynomial for __kernel_tanf(). The old one was the double-precision polynomial with coefficient

cvs commit: src/lib/msun/src e_logf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-12 18:20:09 UTC FreeBSD src repository Modified files: lib/msun/src e_logf.c Log: As for the float trig functions, use a minimax polynomial that is specialized for float precision. The new polynomial has degree 8 instead of 14, and a maximum error of

cvs commit: src/lib/msun/src k_cosf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-12 19:54:45 UTC FreeBSD src repository Modified files: lib/msun/src k_cosf.c Log: Improved comments for the minimax polynomial. Revision ChangesPath 1.12 +4 -4 src/lib/msun/src/k_cosf.c ___

cvs commit: src/lib/msun/src k_sinf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-12 19:56:35 UTC FreeBSD src repository Modified files: lib/msun/src k_sinf.c Log: Tweaked the minimax polynomial and improved its comments. Revision ChangesPath 1.10 +5 -5 src/lib/msun/src/k_sinf.c

cvs commit: src/lib/msun/src k_tanf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-12 20:06:04 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: Imoproved comments for the minimax polynomial. Removed an unused variable. Fixed some wrong comments and some nearby misformatting. Revision ChangesPath

cvs commit: src/lib/msun/src e_coshf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-13 00:08:23 UTC FreeBSD src repository Modified files: lib/msun/src e_coshf.c Log: Fixed some magic numbers. The threshold for not being tiny was confusing and too small. Use the usual 2**-12 threshold and simplify the algorithm slightly so that

cvs commit: src/lib/msun/src e_sinhf.c

2005-11-12 Thread Bruce Evans
bde 2005-11-13 00:41:46 UTC FreeBSD src repository Modified files: lib/msun/src e_sinhf.c Log: Fixed some magic numbers. The threshold for not being tiny was too small. Use the usual 2**-12 threshold. This change is not just an optimization, since the general

cvs commit: src/lib/msun/src e_rem_pio2f.c

2005-11-16 Thread Bruce Evans
bde 2005-11-17 02:20:04 UTC FreeBSD src repository Modified files: lib/msun/src e_rem_pio2f.c Log: Rearranged the the optimizations for special cases to reduce the average number of branches. Use a non-bogus magic constant for the threshold of pi/4. It was 2 u

cvs commit: src/lib/msun/src s_cosf.c s_sinf.c s_tanf.c

2005-11-16 Thread Bruce Evans
bde 2005-11-17 03:53:22 UTC FreeBSD src repository Modified files: lib/msun/src s_cosf.c s_sinf.c s_tanf.c Log: Minor cleanups: s_cosf.c and s_sinf.c: Use a non-bogus magic constant for the threshold of pi/4. It was 2 ulps smaller than pi/4 rounded down, but

Re: cvs commit: src/usr.sbin/rpc.lockd kern.c

2005-11-17 Thread Bruce Evans
On Thu, 17 Nov 2005, Robert Watson wrote: On Thu, 17 Nov 2005, Hartmut Brandt wrote: harti 2005-11-17 12:19:19 UTC FreeBSD src repository Modified files: usr.sbin/rpc.lockd kern.c Log: When a user is in more than 16 groups the call to authunix_create() will result in abort()

cvs commit: src/lib/msun/bsdsrc mathimpl.h

2005-11-17 Thread Bruce Evans
bde 2005-11-18 05:03:12 UTC FreeBSD src repository Modified files: lib/msun/bsdsrc mathimpl.h Log: Removed an unused declaration which was so old that it wasn't a prototype and thus just broke building at any nonzero WARNS level. Fixed nearby style bugs. Revi

cvs commit: src/lib/msun/src e_rem_pio2f.c s_cosf.c s_sinf.c s_tanf.c

2005-11-18 Thread Bruce Evans
bde 2005-11-19 02:38:27 UTC FreeBSD src repository Modified files: lib/msun/src e_rem_pio2f.c s_cosf.c s_sinf.c s_tanf.c Log: Moved all the optimizations for |x| <= 9pi/2 from __ieee754_rem_pio2f() to its 3 callers and manually inline them. On Athlons, with fav

cvs commit: src/lib/msun/src s_tanf.c

2005-11-20 Thread Bruce Evans
bde 2005-11-20 20:17:04 UTC FreeBSD src repository Modified files: lib/msun/src s_tanf.c Log: Restored a cleanup in rev.1.9 tthat was lost in rev.1.10. Revision ChangesPath 1.11 +2 -2 src/lib/msun/src/s_tanf.c

cvs commit: src/lib/msun/src k_tanf.c

2005-11-20 Thread Bruce Evans
bde 2005-11-21 00:38:22 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: Use double precision to simplify and optimize a long division. On athlons, this gives a speedup of 10-20% for tanf() on uniformly distributed args in [-2Pi, 2Pi]. (It

cvs commit: src/lib/msun/src k_cosf.c k_sinf.c k_tanf.c s_cosf.c s_sinf.c s_tanf.c

2005-11-20 Thread Bruce Evans
bde 2005-11-21 04:57:12 UTC FreeBSD src repository Modified files: lib/msun/src k_cosf.c k_sinf.c k_tanf.c s_cosf.c s_sinf.c s_tanf.c Log: Mess up the "kernel" float trig function .c files with ifdefs so that they can be #included in other

cvs commit: src/lib/msun/src e_rem_pio2f.c

2005-11-22 Thread Bruce Evans
bde 2005-11-23 02:06:07 UTC FreeBSD src repository Modified files: lib/msun/src e_rem_pio2f.c Log: Quick fix for stack buffer overrun in rev.1.13. Oops. The prec == 1 arg to __kernel_rem_pio2() gives 53-bit (double) precision, not single precision and/or the arr

cvs commit: src/lib/msun/src e_rem_pio2f.c

2005-11-22 Thread Bruce Evans
bde 2005-11-23 03:03:09 UTC FreeBSD src repository Modified files: lib/msun/src e_rem_pio2f.c Log: Simplified setiing up args for __kernel_rem_pio2(). We already have x with a 24-bit fraction, so we don't need a loop to split it into up to 3 terms with 24-bit fra

cvs commit: src/lib/msun/src k_tanf.c math_private.h s_tanf.c

2005-11-23 Thread Bruce Evans
bde 2005-11-23 14:27:56 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c math_private.h s_tanf.c Log: Use only double precision for "kernel" tanf (except for returning float). This is a minor interface change. The function is renamed from __kernel

cvs commit: src/lib/msun/src k_tanf.c

2005-11-23 Thread Bruce Evans
bde 2005-11-24 02:04:26 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: Optimized by eliminating the special case for 0.67434 <= |x| < pi/4. A single polynomial approximation for tan(x) works in infinite precision up to |x| < pi/2, but in

cvs commit: src/lib/msun/src k_tanf.c

2005-11-24 Thread Bruce Evans
bde 2005-11-24 13:48:40 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: Minor cleanups and optimizations: - Remove dead code that I forgot to remove in the previous commit. - Calculate the sum of the lower terms of the polynomial (divid

Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c

2005-11-27 Thread Bruce Evans
On Sun, 27 Nov 2005, Robert Watson wrote: On Sun, 27 Nov 2005, Poul-Henning Kamp wrote: In message <[EMAIL PROTECTED]>, Robert Watson writes: This offers a minimum update rate of 1/HZ, but in practice will often be more frequent due to the frequency of time stamping in the kernel: Not

Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c

2005-11-27 Thread Bruce Evans
On Sun, 27 Nov 2005, Robert Watson wrote: rwatson 2005-11-27 00:55:18 UTC FreeBSD src repository Modified files: sys/sys time.h sys/kern kern_time.c Log: Add several aliases for existing clockid_t names to indicate that the application wishes to request

Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c

2005-11-27 Thread Bruce Evans
On Sun, 27 Nov 2005, Robert Watson wrote: ... Attached is a small LD_PRELOAD library to allow applications to be switched to the _FAST variants for gettimeofday(). % /* % * Small wrapper library to substitute implementations of gettimeofday(2) and % * time(3) with lower resolution variation

Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c

2005-11-27 Thread Bruce Evans
On Sun, 27 Nov 2005, Robert Watson wrote: On Sun, 27 Nov 2005, Bruce Evans wrote: Add experimental low-precision clockid_t names corresponding to these clocks, but implemented using cached timestamps in kernel rather than a full time counter query. These existence of these interfaces is

cvs commit: src/lib/msun/src e_lgammaf_r.c k_cosf.c k_sinf.c math_private.h s_cosf.c s_sinf.c

2005-11-27 Thread Bruce Evans
bde 2005-11-28 04:58:57 UTC FreeBSD src repository Modified files: lib/msun/src e_lgammaf_r.c k_cosf.c k_sinf.c math_private.h s_cosf.c s_sinf.c Log: Use only double precision for "kernel" cosf and sinf (except for returning float). The fu

cvs commit: src/lib/msun/src k_tanf.c s_tanf.c

2005-11-27 Thread Bruce Evans
bde 2005-11-28 05:35:32 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c s_tanf.c Log: Changed spelling of the request-to-inline macro name to match the change of the function name. Added my (non-)copyright. In k_tanf.c, added the first set

cvs commit: src/lib/msun/src s_cosf.c s_sinf.c

2005-11-27 Thread Bruce Evans
bde 2005-11-28 05:46:13 UTC FreeBSD src repository Modified files: lib/msun/src s_cosf.c s_sinf.c Log: Try to use the "proximity" (~) operator consistently in comments (x ~<= a, not x <= ~a). This got messed up in some places when the comments were moved from e_r

cvs commit: src/lib/msun/src s_cosf.c s_sinf.c

2005-11-27 Thread Bruce Evans
bde 2005-11-28 06:15:10 UTC FreeBSD src repository Modified files: lib/msun/src s_cosf.c s_sinf.c Log: Exploit skew-symmetry to avoid an operation: -sin(x-A) = sin(A-x). This gives a tiny but hopefully always free optimization in the 2 quadrants to which it appli

cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-11-28 Thread Bruce Evans
bde 2005-11-28 08:32:15 UTC FreeBSD src repository Modified files: lib/msun/src e_lgammaf_r.c Log: Fixed about 50 million errors of infinity ulps and about 3 million errors of between 1.0 and 1.8509 ulps for lgammaf(x) with x between -2**-21 and -2**-70. As u

Re: cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-11-28 Thread Bruce Evans
On Mon, 28 Nov 2005, Bruce Evans wrote: Now the max error for lgammaf(x) with |x| < 2**-21 is 0.7885 ulps, and speed and accuracy are almost the same for positive and negative args in this range. The maximum error overall is still infinity ulps. Oops. The max error overall is o

cvs commit: src/lib/msun/src k_tanf.c

2005-11-28 Thread Bruce Evans
bde 2005-11-28 11:46:20 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c Log: Rearranged the polynomial evaluation some more to reduce dependencies. Instead of echoing the code in a comment, try to describe why we split up the evaluation in a speci

Re: cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-11-28 Thread Bruce Evans
On Mon, 28 Nov 2005, Steve Kargl wrote: On Mon, Nov 28, 2005 at 11:16:27AM +0100, Andre Oppermann wrote: Bruce Evans wrote: ... lib/msun/src e_lgammaf_r.c Log: Fixed about 50 million errors of infinity ulps and about 3 million errors of between 1.0 and 1.8509 ulps for

Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c

2005-11-28 Thread Bruce Evans
On Mon, 28 Nov 2005, [iso-8859-1] Dag-Erling Sm?rgrav wrote: Bruce Evans <[EMAIL PROTECTED]> writes: I can see a use for making a timestamp after select() returns, not for timeout purposes since the timeout should normally be for emergencies and it's relative so it doesn't

Re: cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-11-29 Thread Bruce Evans
On Tue, 29 Nov 2005, Andrey Chernov wrote: On Tue, Nov 29, 2005 at 11:49:13AM +1100, Bruce Evans wrote: I don't like writing papers, and rarely read them these days. Not writting the paper about your libm changes will increase chances your changes will be simple lost at some step. Pos

cvs commit: src/lib/msun/src e_expf.c

2005-11-29 Thread Bruce Evans
bde 2005-11-30 04:56:49 UTC FreeBSD src repository Modified files: lib/msun/src e_expf.c Log: Fixed the hi+lo approximation to log(2). The normal 17+24 bit decomposition that was used doesn't work normally here, since we want to be able to multiply `hi' by the ex

cvs commit: src/lib/msun/src s_cosf.c

2005-11-29 Thread Bruce Evans
bde 2005-11-30 06:47:19 UTC FreeBSD src repository Modified files: lib/msun/src s_cosf.c Log: Fixed cosf(x) when x is a "negative" NaNs. I broke this in rev.1.10. cosf(x) is supposed to return something like x when x is a NaN, and we actually fairly consistently

cvs commit: src/lib/msun/src k_cosf.c k_sinf.c

2005-11-30 Thread Bruce Evans
bde 2005-11-30 11:51:17 UTC FreeBSD src repository Modified files: lib/msun/src k_cosf.c k_sinf.c Log: Rearranged the polynomial evaluation to reduce dependencies, as in k_tanf.c but with different details. The polynomial is odd with degree 13 for tanf() and od

Re: cvs commit: src/lib/msun/src e_expf.c

2005-11-30 Thread Bruce Evans
On Wed, 30 Nov 2005, Bruce Evans wrote: Modified files: lib/msun/src e_expf.c Log: ... The end result is that expf() is now perfectly rounded (to nearest) except in 52561 cases instead of except in 67027 cases, and the maximum error is 0.5013 ulps instead of 0.5023 ulps

cvs commit: src/lib/msun/src s_round.c s_roundf.c s_roundl.c

2005-12-02 Thread Bruce Evans
bde 2005-12-02 13:45:06 UTC FreeBSD src repository Modified files: lib/msun/src s_round.c s_roundf.c s_roundl.c Log: Fixed roundf(). The following cases never worked in FreeBSD: - in round-towards-minus-infinity mode, on all machines, roundf(x) never worked for

cvs commit: src/lib/msun/src s_rint.c

2005-12-02 Thread Bruce Evans
bde 2005-12-03 07:23:30 UTC FreeBSD src repository Modified files: lib/msun/src s_rint.c Log: Fixed rint(x) in the following cases: (1) In round-to-nearest mode, on all machines, fdlibm rint() never worked for |x| = n+0.75 where n is an even integer between 26

cvs commit: src/lib/msun/src s_rint.c

2005-12-02 Thread Bruce Evans
bde 2005-12-03 07:38:35 UTC FreeBSD src repository Modified files: lib/msun/src s_rint.c Log: Simplified the fix in rev.1.3. Instead of using long double for TWO52[sx] to trick gcc into correctly converting TWO52[sx]+x to double on assignment to "double w", force

cvs commit: src/lib/msun/src s_rintf.c

2005-12-03 Thread Bruce Evans
bde 2005-12-03 09:00:29 UTC FreeBSD src repository Modified files: lib/msun/src s_rintf.c Log: Restored removal of the special handling needed for a result of +-0. It was lost in rev.1.9. The log message for rev.1.9 says that the special case of +-0 is handled tw

cvs commit: src/lib/msun/src s_logb.c s_logbf.c

2005-12-03 Thread Bruce Evans
bde 2005-12-03 11:57:19 UTC FreeBSD src repository Modified files: lib/msun/src s_logb.c s_logbf.c Log: Fixed fdlibm[+cygnus] logbf() and logb() on denormals. Adjustment according to the highest nonzero bit in a denormal was missing. fdlibm ilogbf() and ilogb(

cvs commit: src/lib/msun/src s_log1pf.c

2005-12-04 Thread Bruce Evans
bde 2005-12-04 08:57:54 UTC FreeBSD src repository Modified files: lib/msun/src s_log1pf.c Log: Use the usual volatile hack to trick gcc into clipping any extra precision on assignment. Extra precision on i386's broke hi+lo decomposition in the usual way. It

cvs commit: src/lib/msun/src s_log1p.c

2005-12-04 Thread Bruce Evans
bde 2005-12-04 12:28:33 UTC FreeBSD src repository Modified files: lib/msun/src s_log1p.c Log: For log1pf(), fixed the approximations to sqrt(2), sqrt(2)-1 and sqrt(2)/2-1. For log1p(), fixed the approximation to sqrt(2)/2-1. The end result is to fix an error

cvs commit: src/lib/msun/src s_log1pf.c

2005-12-04 Thread Bruce Evans
bde 2005-12-04 12:30:44 UTC FreeBSD src repository Modified files: lib/msun/src s_log1pf.c Log: For log1pf(), fixed the approximations to sqrt(2), sqrt(2)-1 and sqrt(2)/2-1. For log1p(), fixed the approximation to sqrt(2)/2-1. The end result is to fix an error

cvs commit: src/lib/msun/src e_asinf.c

2005-12-04 Thread Bruce Evans
bde 2005-12-04 13:52:46 UTC FreeBSD src repository Modified files: lib/msun/src e_asinf.c Log: Fixed the approximation to pio4. pio4_hi must be pio2_hi/2 since it shares its low half with pio2_hi. pio2_hi is rounded down although rounding to nearest would be a t

Re: cvs commit: src/etc/rc.d root

2005-12-04 Thread Bruce Evans
On Sun, 4 Dec 2005, Kevin Oberman wrote: Date: Sat, 3 Dec 2005 16:25:28 +0100 From: Pawel Jakub Dawidek <[EMAIL PROTECTED]> Sender: [EMAIL PROTECTED] On Fri, Dec 02, 2005 at 09:33:43PM +, Ruslan Ermilov wrote: +> ru 2005-12-02 21:33:43 UTC +> +> FreeBSD src repository +> +> Mod

Re: cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-12-07 Thread Bruce Evans
On Sun, 4 Dec 2005, Mike Silbersack wrote: On Tue, 29 Nov 2005, Bruce Evans wrote: On Tue, 29 Nov 2005, Andrey Chernov wrote: On Tue, Nov 29, 2005 at 11:49:13AM +1100, Bruce Evans wrote: I don't like writing papers, and rarely read them these days. Not writting the paper about your

Re: cvs commit: src/lib/msun/src e_lgammaf_r.c

2005-12-09 Thread Bruce Evans
On Thu, 8 Dec 2005, Mike Silbersack wrote: On Thu, 8 Dec 2005, Bruce Evans wrote: Whoever makes the changes would write the regression tests :-). Mine are't sufficently general to commit. In batch mode which takes about 10 hours on a 2GHz Athlon to check all cases for floats, the

cvs commit: src/lib/msun/src s_tanhf.c

2005-12-11 Thread Bruce Evans
bde 2005-12-11 11:40:55 UTC FreeBSD src repository Modified files: lib/msun/src s_tanhf.c Log: Fixed some magic numbers. The threshold for not being tiny was too small. Use the usual 2**-12 threshold. As for sinhf, use a different method (now the same as for

cvs commit: src/lib/msun/src s_cbrtf.c

2005-12-11 Thread Bruce Evans
bde 2005-12-11 13:22:01 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrtf.c Log: Fixed all 502518670 errors of more than 1 ulp for cbrtf() on amd64. The maximum error was 3.56 ulps. The bug was another translation error. The double precision vers

cvs commit: src/lib/msun/src s_cbrtf.c

2005-12-11 Thread Bruce Evans
bde 2005-12-11 17:58:14 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrtf.c Log: Fixed the unexpectedly large maximum error after the previous commit. It was because I forgot to translate the part of the double precision algorithm that chops t so tha

cvs commit: src/lib/msun/src s_cbrt.c s_cbrtf.c

2005-12-11 Thread Bruce Evans
bde 2005-12-11 19:51:30 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c s_cbrtf.c Log: Added comments about the magic behind ~= /3 + BIAS. Keep the large comments only in the double version as usual. Fixed some style bugs (mainly grammar

cvs commit: src/lib/msun/src s_cbrt.c s_cbrtf.c

2005-12-13 Thread Bruce Evans
bde 2005-12-13 18:22:00 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c s_cbrtf.c Log: Fixed some especially horrible style bugs (indentation that is neither KNF nor fdlibmNF combined with multiple statements per line). Revision ChangesPat

cvs commit: src/lib/msun/src s_cbrt.c s_cbrtf.c

2005-12-13 Thread Bruce Evans
bde 2005-12-13 20:17:24 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c s_cbrtf.c Log: Optimize by not doing excessive conversions for handling the sign bit. This gives an optimization of between 9 and 22% on Athlons (largest for cbrt() on amd64 -

cvs commit: src/lib/msun/src s_cbrt.c

2005-12-15 Thread Bruce Evans
bde 2005-12-15 16:23:22 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c Log: Added comments about the apparently-magic rational function used in the second step of approximating cbrt(x). It turns out to be neither very magic not nor very good. I

cvs commit: src/lib/msun/src s_cbrt.c s_cbrtf.c

2005-12-18 Thread Bruce Evans
bde 2005-12-18 21:46:47 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c s_cbrtf.c Log: Fixed code to match comments and the algorithm: - in preparing for the third approximation, actually make t larger in magnitude than cbrt(x). After chopping,

cvs commit: src/lib/msun/src s_cbrt.c s_cbrtf.c

2005-12-18 Thread Bruce Evans
bde 2005-12-19 00:22:03 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c s_cbrtf.c Log: Use a minimax polynomial approximation instead of a Pade rational function approximation for the second step. The polynomial has degree 2 for cbrtf() and 4 for

cvs commit: src/lib/msun/src s_cbrt.c

2005-12-19 Thread Bruce Evans
bde 2005-12-20 01:21:30 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrt.c Log: Extract the high and low words together. With gcc-3.4 on uniformly distributed non-large args, this saves about 14 of 134 cycles for Athlon64s and about 5 of 199 cycles

Re: cvs commit: src/sys/kern vfs_syscalls.c

2006-01-03 Thread Bruce Evans
On Wed, 4 Jan 2006, Diomidis Spinellis wrote: Poul-Henning Kamp wrote: In message <[EMAIL PROTECTED]>, Diomidis Spinellis writes: dds 2006-01-03 21:58:22 UTC FreeBSD src repository Modified files: sys/kern vfs_syscalls.c Log: Normalize the tv_usec part of the utimes(2

cvs commit: src/lib/msun/src s_cbrtf.c

2006-01-04 Thread Bruce Evans
bde 2006-01-05 07:57:31 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrtf.c Log: Use double precision internally to optimize cbrtf(), and change the algorithm for the second step significantly to also get a perfectly rounded result in round-to-neares

cvs commit: src/lib/msun/src s_cbrtf.c

2006-01-05 Thread Bruce Evans
bde 2006-01-05 09:18:48 UTC FreeBSD src repository Modified files: lib/msun/src s_cbrtf.c Log: Oops, on amd64 (and probably on all non-i386 systems), the previous commit broke the 2**24 cases where |x| > DBL_MAX/2. There are exponent range problems not just for d

Re: cvs commit: src/lib/libutil login_times.c

2006-01-16 Thread Bruce Evans
On Mon, 16 Jan 2006, Robert Watson wrote: rwatson 2006-01-16 11:54:08 UTC FreeBSD src repository Modified files: lib/libutil login_times.c Log: Restore use of strncpy(), as there is later unconditional termination of the string, and reliance on the returned pointer. Foun

Re: cvs commit: src/etc/defaults periodic.conf

2006-01-31 Thread Bruce Evans
On Tue, 31 Jan 2006, Gleb Smirnoff wrote: On Tue, Jan 31, 2006 at 08:28:16AM +1030, Greg 'groggy' Lehey wrote: G> On Monday, 30 January 2006 at 15:35:25 +0300, Gleb Smirnoff wrote: G> > On Mon, Jan 30, 2006 at 12:33:44PM +, Matteo Riondato wrote: G> > M> Make df output in periodic mail hum

Re: cvs commit: src/etc/defaults periodic.conf

2006-02-01 Thread Bruce Evans
On Wed, 1 Feb 2006, Greg 'groggy' Lehey wrote: On Tuesday, 31 January 2006 at 21:59:48 +1100, Bruce Evans wrote: On Tue, 31 Jan 2006, Gleb Smirnoff wrote: On Tue, Jan 31, 2006 at 08:28:16AM +1030, Greg 'groggy' Lehey wrote: G> On Monday, 30 January 2006 at 15:35:25 +03

Re: cvs commit: src/sys/dev/bge if_bge.c

2006-02-06 Thread Bruce Evans
On Mon, 6 Feb 2006, Nate Lawson wrote: Oleg Bulyzhin wrote: On Mon, Feb 06, 2006 at 02:21:09PM -0800, Nate Lawson wrote: Oleg Bulyzhin wrote: Other style bugs in the (not quoted) declaration of `sum' are the missing blank line after the declarations and the type of the variable. I think the

Re: cvs commit: src/sys/dev/bge if_bge.c

2006-02-07 Thread Bruce Evans
On Mon, 6 Feb 2006, Nate Lawson wrote: Nate Lawson wrote: Oleg Bulyzhin wrote: On Mon, Feb 06, 2006 at 02:21:09PM -0800, Nate Lawson wrote: Oleg Bulyzhin wrote: nq = q->m_nextpkt; q->m_nextpkt = NULL; m->m_pkthdr.csum_flags &= q->m_pkthdr.csum_flags; -m->m_

cvs commit: src/usr.bin/systat vmstat.c

2006-02-13 Thread Bruce Evans
bde 2006-02-14 05:37:25 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Fixed style bugs in rev.1.12. Rev.1.12 arranged to display the interrupt number in more cases by stealing 2 characters from the count field to give more space in the des

cvs commit: src/usr.bin/systat vmstat.c

2006-02-13 Thread Bruce Evans
bde 2006-02-14 07:44:21 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Fix all (?) cases where the field width of a numeric field was far too large. In most cases it is still 1 too large, so fields tend to run together, but in the following

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 08:33:02 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Fixed all (?) bitrot in the comments about the number of columns used by various groups of fields. Revision ChangesPath 1.63 +8 -8 src/usr.bin/systat/

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 09:33:51 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Oops, the "excessive" {} removed in the previous commit was needed around PUTRATE() because PUTRATE() only looked like a function -- it was multiple statements. Use "do

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 10:47:36 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Reduce the field width by 1 for many numeric fields so that most fields cannot run into other fields or field descriptors. If the value is too large to fit in the field

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 11:57:02 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Fix some minor bugs: Always use snprintf()'s return value, since discarding it is a style bug at best and using it here gives slightly simpler code and better error

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 12:26:51 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Removed the frobbing of CPU percentages from > 99.9 to 99.9. Rev.1.35 made it unnecessary. (Rev.1.6 had to reduce the field width to 4, and changed 100.0 and prepostero

cvs commit: src/usr.bin/systat vmstat.c

2006-02-14 Thread Bruce Evans
bde 2006-02-14 13:27:26 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Move the "r p d s w" fields to the left to create space for expansion. 3 columns were wasted at the left, except these columns were used to make the header line up. Now

Re: cvs commit: src/lib/libutil pidfile.3

2006-03-03 Thread Bruce Evans
On Fri, 3 Mar 2006, Ruslan Ermilov wrote: On Fri, Mar 03, 2006 at 04:43:09AM +0200, Giorgos Keramidas wrote: On 2006-01-28 14:13, Pawel Jakub Dawidek <[EMAIL PROTECTED]> wrote: pjd 2006-01-28 14:13:15 UTC FreeBSD src repository Modified files: lib/libutil pidfile.3

Re: cvs commit: src/usr.sbin/lpr/filters Makefile src/usr.sbin/lpr/filters.ru/koi2855 Makefile src/usr.sbin/lpr/filters.ru/koi2alt Makefile

2006-03-09 Thread Bruce Evans
On Wed, 8 Mar 2006, Garance A Drosehn wrote: gad 2006-03-08 22:28:13 UTC FreeBSD src repository Modified files: usr.sbin/lpr/filters Makefile usr.sbin/lpr/filters.ru/koi2855 Makefile usr.sbin/lpr/filters.ru/koi2alt Makefile Log: Switch these makefiles to use 'MAN=' to indi

Re: cvs commit: src/share/mk bsd.README

2006-03-09 Thread Bruce Evans
On Thu, 9 Mar 2006, Warner Losh wrote: imp 2006-03-09 01:33:38 UTC FreeBSD src repository Modified files: share/mk bsd.README Log: Now that we now spell NO_MAN=xxx MAN=, update the docs. Submitted by: John Hein Revision ChangesPath 1.30 +1 -1 src/

Re: cvs commit: src/share/man/man4 ddb.4

2006-03-24 Thread Bruce Evans
On Fri, 24 Mar 2006, Mike Silbersack wrote: On Tue, 28 Feb 2006, Marcel Moolenaar wrote: There's a bogus conditional in i386/i386/machdep.c that should be removed: revision 1.596 date: 2004/07/19 02:46:34; author: silby; state: Exp; lines: +3 -0 Add a #error requiring KDB if DDB is specifi

Re: cvs commit: src/sys/netipsec xform.h xform_ipip.c

2006-03-31 Thread Bruce Evans
On Thu, 30 Mar 2006, Bjoern A. Zeeb wrote: On Thu, 30 Mar 2006, Max Laier wrote: On Thursday 30 March 2006 21:17, Bjoern A. Zeeb wrote: On Thu, 30 Mar 2006, Bjoern A. Zeeb wrote: bz 2006-03-30 18:57:04 UTC FreeBSD src repository Modified files: sys/netipsec xform.h xf

Re: cvs commit: src/sys/dev/bce if_bcereg.h

2006-04-25 Thread Bruce Evans
On Tue, 25 Apr 2006, Scott Long wrote: Warner Losh wrote: The problem is that PAE's bus_size_t is a 32-bit quantity, when it should be a 64-bit quantity: #ifdef PAE typedef uint64_t bus_addr_t; #else typedef uint32_t bus_addr_t; #endif typedef uint32_t bus_size_t; No, it should be a 32-bit q

Re: cvs commit: src/sys/dev/bce if_bcereg.h

2006-04-26 Thread Bruce Evans
On Wed, 26 Apr 2006, M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Scott Long <[EMAIL PROTECTED]> writes: : Matthew Jacob wrote: : > : >> Supporting sizes >= 4G sounds unreasonable. How can a single device : >> need or even address so much space, even on 64-bit arches? For v

Re: cvs commit: src/sys/dev/bce if_bcereg.h

2006-04-26 Thread Bruce Evans
On Wed, 26 Apr 2006, M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Bruce Evans <[EMAIL PROTECTED]> writes: : On Wed, 26 Apr 2006, M. Warner Losh wrote: : > bus_size_t is for differences between two bus_addr_t quantities, since : > it specifies the size of

Re: cvs commit: src/sys/kern sched_4bsd.c

2006-04-27 Thread Bruce Evans
On Thu, 27 Apr 2006, Pawel Jakub Dawidek wrote: On Wed, Apr 26, 2006 at 07:42:39PM +, John-Mark Gurney wrote: +> jmg 2006-04-26 19:42:38 UTC +> +> FreeBSD src repository +> +> Modified files: +> sys/kern sched_4bsd.c +> Log: +> move remaining sysctl into the k

cvs commit: src/usr.bin/systat systat.1 vmstat.c

2006-04-29 Thread Bruce Evans
bde 2006-04-29 21:30:23 UTC FreeBSD src repository Modified files: usr.bin/systat systat.1 vmstat.c Log: Abbreviate long field descriptors at write time so that they don't get clobbered at runtime: dirtybuf -> dtbuf desiredvnodes -> desvn numvnodes -

cvs commit: src/usr.bin/systat vmstat.c

2006-04-29 Thread Bruce Evans
bde 2006-04-30 00:50:08 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Backed out rev.1.49 since it had buffer overruns and only worked accidentally. Read buffer overruns: The size of the target array (TSOTTA == 10) is a wrong limit to

cvs commit: src/usr.bin/systat vmstat.c

2006-04-29 Thread Bruce Evans
bde 2006-04-30 01:39:46 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: Edit the interrupt name strings to shorten them. This is believed to only affect amd64 and i386. alpha uses "intr N" instead of "irqN" and mostly has no device names.

cvs commit: src/usr.bin/systat cmdtab.c icmp.c icmp6.c ifstat.c iostat.c ip.c ip6.c main.c mbufs.c netstat.c pigs.c swap.c systat.h tcp.c

2006-04-29 Thread Bruce Evans
bde 2006-04-30 04:26:46 UTC FreeBSD src repository Modified files: usr.bin/systat cmdtab.c icmp.c icmp6.c ifstat.c iostat.c ip.c ip6.c main.c mbufs.c netstat.c pigs.c swap.c systat.h tcp.c Log: Show the load average in

cvs commit: src/usr.bin/systat icmp.c icmp6.c ifstat.c iostat.c ip.c ip6.c main.c netstat.c swap.c systat.h tcp.c

2006-04-29 Thread Bruce Evans
bde 2006-04-30 04:47:23 UTC FreeBSD src repository Modified files: usr.bin/systat icmp.c icmp6.c ifstat.c iostat.c ip.c ip6.c main.c netstat.c swap.c systat.h tcp.c Log: Remove trailing whitespace. Submitted by:

cvs commit: src/usr.bin/systat vmstat.c

2006-04-29 Thread Bruce Evans
bde 2006-04-30 05:54:21 UTC FreeBSD src repository Modified files: usr.bin/systat vmstat.c Log: If DEBUG is defined, then fill numeric fields with asterisks instead of spaces and numbers for temporary(?) debugging. Revision ChangesPath 1.73 +15 -0

cvs commit: src/usr.bin/systat systat.1 vmstat.c

2006-04-30 Thread Bruce Evans
bde 2006-04-30 07:27:24 UTC FreeBSD src repository Modified files: usr.bin/systat systat.1 vmstat.c Log: Fix "slow (on-the-fly) zero fills percentage (`%slo-z')" some more. The value printed is actually the optimized (i.e., the non-slow, not-on-the-fly zero fills p

  1   2   3   4   5   6   >