Re: svn commit: r227812 - head/lib/libc/string

2011-11-22 Thread David Schultz
On Tue, Nov 22, 2011, Eitan Adler wrote: > + /* use a bitwise or to avoid an additional branch instruction */ > + if ((s1 == s2) | (n == 0)) > + return (0); I think there are three issues with this. First, the comment suggesting that using '|' instead of '||' isn't correct; an

Re: svn commit: r227812 - head/lib/libc/string

2011-11-22 Thread David Schultz
On Tue, Nov 22, 2011, David Schultz wrote: > First, the comment suggesting that using '|' instead of '||' isn't > correct; any reasonable compiler knows how to optimize > side-effect-free expressions like these. (The reverse > transformation, from the ari

Re: svn commit: r227812 - head/lib/libc/string

2011-11-22 Thread David Schultz
On Tue, Nov 22, 2011, Eitan Adler wrote: > The problem with profiling this type of change is that it is hard to > find a good representative benchmark. I could easily write code that > will show you that adding the equality check is a good idea or that it > is a horrible idea. IMHO it saves enough

Re: svn commit: r228004 - in head: contrib/libcxxrt lib/libcxxrt

2011-11-26 Thread David Schultz
On Sat, Nov 26, 2011, Bjoern A. Zeeb wrote: > On Sat, 26 Nov 2011, David Chisnall wrote: > > >Author: theraven > >Date: Sat Nov 26 18:46:33 2011 > >New Revision: 228004 > >URL: http://svn.freebsd.org/changeset/base/228004 > > > >Log: > > Update libcxxrt to remove the pthread dependency. > > > > Al

Re: svn commit: r228322 - in head: include lib/libc/stdlib sys/sys

2011-12-07 Thread David Schultz
On Wed, Dec 07, 2011, David Chisnall wrote: > Author: theraven > Date: Wed Dec 7 15:25:48 2011 > New Revision: 228322 > URL: http://svn.freebsd.org/changeset/base/228322 > > Log: > Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add a > __noreturn macro and modify the other e

Re: svn commit: r228330 - in head: include sys/sys

2011-12-12 Thread David Schultz
On Sun, Dec 11, 2011, David Chisnall wrote: > On 11 Dec 2011, at 21:12, Andreas Tobler wrote: > > > As far as I understand, GCC does not support this attribute [[noreturn]] > > yet. But it defines both, __cplusplus and __cplusplus=201103L. On gcc-4.7 > > __cplusplus=201103L is the default when w

Re: svn commit: r228469 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include ofed/include/asm powerpc/include sparc64/include

2011-12-13 Thread David Schultz
On Tue, Dec 13, 2011, Ed Schouten wrote: > Author: ed > Date: Tue Dec 13 13:38:03 2011 > New Revision: 228469 > URL: http://svn.freebsd.org/changeset/base/228469 > > Log: > Replace __signed by signed. > > The signed keyword is an integral part of the C syntax. There's no need > to use __s

Re: svn commit: r228495 - head/sys/sys

2011-12-15 Thread David Schultz
On Thu, Dec 15, 2011, Ed Schouten wrote: > Hello Bruce, > > * Bruce Evans , 20111215 15:12: > >- recently broken for K&R since it now uses signed instead of __signed > >- broken for longer for K&R and C90 since it uses long long. In working > > versions, the __int64_t declarations we

Re: svn commit: r228668 - head/usr.bin/netstat

2011-12-17 Thread David Schultz
On Sat, Dec 17, 2011, Dimitry Andric wrote: > On 2011-12-17 23:32, Dimitry Andric wrote: > > Author: dim > > Date: Sat Dec 17 22:32:00 2011 > > New Revision: 228668 > > URL: http://svn.freebsd.org/changeset/base/228668 > > > > Log: > > Revert r228650, and work around the clang false positive wit

Re: svn commit: r228668 - head/usr.bin/netstat

2011-12-17 Thread David Schultz
On Sat, Dec 17, 2011, David Schultz wrote: > On Sat, Dec 17, 2011, Dimitry Andric wrote: > > On 2011-12-17 23:32, Dimitry Andric wrote: > > > Author: dim > > > Date: Sat Dec 17 22:32:00 2011 > > > New Revision: 228668 > > > URL: http://svn.freeb

Re: svn commit: r228801 - head

2011-12-31 Thread David Schultz
On Thu, Dec 22, 2011, Dimitry Andric wrote: > Remove -mfancy-math from LIB32CPUFLAGS for amd64. It has been default > for our gcc since more than three years (see r181534, which is also in > stable/9 and stable/8). This flag used to be for the benefit of the old > in-kernel math emulator,

Re: svn commit: r228955 - head/include

2011-12-31 Thread David Schultz
On Thu, Dec 29, 2011, Ed Schouten wrote: > Hi Steve, > > * Steve Kargl , 20111229 19:49: > > Are you going to submit a bug report to GCC? Because, as of now, > > you've broken my ability to do development work on bleeding edge > > freebsd and bleeding edge gcc. > > Here you go: > > http:/

Re: svn commit: r228955 - head/include

2012-01-01 Thread David Schultz
On Sun, Jan 01, 2012, Ed Schouten wrote: > David, > > * David Schultz , 20120101 03:54: > > I'm out of town and don't remember the details of this, but is there a > > reason we couldn't simply have an appropriate #ifdef that uses > > __attribute((__nore

Re: svn commit: r211463 - head/usr.bin/grep

2010-11-29 Thread David Schultz
On Wed, Aug 18, 2010, Dimitry Andric wrote: > On 2010-08-18 22:48, m...@freebsd.org wrote: > >> - Refactor file reading code to use pure syscalls and an internal buffer > >>instead of stdio. This gives BSD grep a very big performance boost, > >>its speed is now almost comparable to GNU gr

svn commit: r216086 - head/lib/libc/stdio

2010-11-30 Thread David Schultz
Author: das Date: Tue Nov 30 21:26:21 2010 New Revision: 216086 URL: http://svn.freebsd.org/changeset/base/216086 Log: Update the documentation to reflect changes to the implementation in r197752, which is related to handling of null buffer pointers. Also make a few minor wording changes.

Re: svn commit: r215237 - head/lib/msun/src

2010-11-30 Thread David Schultz
On Mon, Nov 15, 2010, Bruce Evans wrote: > On Mon, 15 Nov 2010, Alexander Best wrote: > > >also it seems one of the regression tests in tools/regression/lib/msun > >fails > >(assert tripped): test-lrint. The test is failing due to an actual deficiency in gcc; you need to disable the built-in ver

Re: svn commit: r209110 - in head/lib/msun: . src

2010-12-01 Thread David Schultz
On Tue, Jun 15, 2010, David Schultz wrote: > On Tue, Jun 15, 2010, Kostik Belousov wrote: > > On Sat, Jun 12, 2010 at 05:32:05PM +0000, David Schultz wrote: > > > Author: das > > > Date: Sat Jun 12 17:32:05 2010 > > > New Revision: 209110 > > > URL:

Re: svn commit: r209110 - in head/lib/msun: . src

2010-12-02 Thread David Schultz
On Wed, Dec 01, 2010, Garrett Cooper wrote: > >> Any thoughts on removing the isnanf and __isnanf symbols from > >> libm?  Both symbols are already in libc for historical reasons, so > >> the duplication isn't needed. > >> > >> Although we've had the duplicate isnanf symbol in libm for several > >>

Re: svn commit: r209110 - in head/lib/msun: . src

2010-12-02 Thread David Schultz
On Thu, Dec 02, 2010, Kostik Belousov wrote: > For __isnanf, libc exports __isn...@fbsd_1.0, and libm exports > __isn...@fbsd_1.2. I suspect that we could export both > __isn...@fbsd_1.0 and __isn...@fbsd_1.2 from libc. I like the idea of adding an __isn...@fbsd_1.2 alias to libc for the benefit o

svn commit: r216137 - head/lib/msun

2010-12-02 Thread David Schultz
Author: das Date: Fri Dec 3 00:05:49 2010 New Revision: 216137 URL: http://svn.freebsd.org/changeset/base/216137 Log: Disable gcc's built-in rint() function when compiling s_nearbyint.c. It results in incorrect optimizations that break nearbyint(). PR: 143358 Reviewed by: bd

svn commit: r216139 - head/tools/regression/lib/msun

2010-12-02 Thread David Schultz
newly added) +++ head/tools/regression/lib/msun/test-nearbyint.c Fri Dec 3 00:44:31 2010(r216139) @@ -0,0 +1,100 @@ +/*- + * Copyright (c) 2010 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are

svn commit: r216142 - head/share/man/man3

2010-12-02 Thread David Schultz
Author: das Date: Fri Dec 3 07:01:07 2010 New Revision: 216142 URL: http://svn.freebsd.org/changeset/base/216142 Log: Explain some of the reasons that fpsetprec() is unlikely to work as one might expect. (These functions have already been deprecated for many years.) PR: 1335

Re: svn commit: r216142 - head/share/man/man3

2010-12-03 Thread David Schultz
On Sat, Dec 04, 2010, Bruce Evans wrote: > On Fri, 3 Dec 2010, David Schultz wrote: > > >Log: > > Explain some of the reasons that fpsetprec() is unlikely to work as > > one might expect. (These functions have already been deprecated for > > many years.) > &g

Re: svn commit: r209110 - in head/lib/msun: . src

2010-12-03 Thread David Schultz
On Fri, Dec 03, 2010, Kostik Belousov wrote: > On Thu, Dec 02, 2010 at 02:00:10PM -0500, David Schultz wrote: > > On Thu, Dec 02, 2010, Kostik Belousov wrote: > > > For __isnanf, libc exports __isn...@fbsd_1.0, and libm exports > > > __isn...@fbsd_1.2. I suspec

Re: svn commit: r214596 - head/bin/rm

2010-12-03 Thread David Schultz
On Sun, Oct 31, 2010, Pawel Jakub Dawidek wrote: > On Sun, Oct 31, 2010 at 08:11:19PM +0100, Ulrich Spoerlein wrote: > > On Sun, 31.10.2010 at 17:06:03 +0100, Pawel Jakub Dawidek wrote: > > > IMHO this option should be removed and rm(1) should fail when a user is > > > trying to use it. > > > > No

svn commit: r216210 - head/lib/msun/src

2010-12-05 Thread David Schultz
Author: das Date: Sun Dec 5 22:11:03 2010 New Revision: 216210 URL: http://svn.freebsd.org/changeset/base/216210 Log: Add a "kernel" log function, based on e_log.c, which is useful for implementing accurate logarithms in different bases. This is based on an approach bde coded up years ago.

svn commit: r216211 - in head/lib/msun: . man src

2010-12-05 Thread David Schultz
@@ -.\" Copyright (c) 2008 David Schultz +.\" Copyright (c) 2008-2010 David Schultz .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 17, 2008 +.Dd De

svn commit: r216212 - head/sys/sys

2010-12-05 Thread David Schultz
Author: das Date: Sun Dec 5 22:12:07 2010 New Revision: 216212 URL: http://svn.freebsd.org/changeset/base/216212 Log: Bump __FreeBSD_version for the addition of log2(). This is mainly for the benefit of ports such as opencity and inkscape that have workarounds for the lack of a log2() in t

svn commit: r216214 - head/tools/regression/lib/msun

2010-12-05 Thread David Schultz
/tools/regression/lib/msun/test-logarithm.c Sun Dec 5 22:18:35 2010(r216214) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2008 David Schultz + * Copyright (c) 2008-2010 David Schultz * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -25,7

svn commit: r216221 - head/tools/regression/lib/msun

2010-12-05 Thread David Schultz
Author: das Date: Sun Dec 5 23:50:49 2010 New Revision: 216221 URL: http://svn.freebsd.org/changeset/base/216221 Log: Fix some warnings. Modified: head/tools/regression/lib/msun/test-fmaxmin.c Modified: head/tools/regression/lib/msun/test-fmaxmin.c ==

svn commit: r216222 - head/tools/regression/lib/msun

2010-12-05 Thread David Schultz
Author: das Date: Mon Dec 6 00:02:49 2010 New Revision: 216222 URL: http://svn.freebsd.org/changeset/base/216222 Log: signbit() returns nonzero for negative arguments, but we shouldn't assume that it always returns the same nonzero value. Modified: head/tools/regression/lib/msun/test-expon

svn commit: r216223 - head/tools/regression/lib/msun

2010-12-05 Thread David Schultz
Author: das Date: Mon Dec 6 00:19:56 2010 New Revision: 216223 URL: http://svn.freebsd.org/changeset/base/216223 Log: Work around gcc constant folding bugs. Modified: head/tools/regression/lib/msun/test-lrint.c Modified: head/tools/regression/lib/msun/test-lrint.c ==

svn commit: r216247 - in head/lib/msun: man src

2010-12-06 Thread David Schultz
Author: das Date: Tue Dec 7 02:19:15 2010 New Revision: 216247 URL: http://svn.freebsd.org/changeset/base/216247 Log: Fix various nits in style and comments that were pointed out by bde. Code changes verified with md5. Modified: head/lib/msun/man/math.3 head/lib/msun/src/e_log2.c head/

svn commit: r216248 - head/lib/msun/src

2010-12-06 Thread David Schultz
Author: das Date: Tue Dec 7 03:29:36 2010 New Revision: 216248 URL: http://svn.freebsd.org/changeset/base/216248 Log: Another minor nit: Make sure the constant here is a float so the compiler doesn't promote the entire expression to double. Modified: head/lib/msun/src/e_log2f.c Modified:

svn commit: r197752 - head/lib/libc/stdio

2009-10-04 Thread David Schultz
Author: das Date: Sun Oct 4 19:43:36 2009 New Revision: 197752 URL: http://svn.freebsd.org/changeset/base/197752 Log: Better glibc compatibility for getline/getdelim: - Tolerate applications that pass a NULL pointer for the buffer and claim that the capacity of the buffer is nonzero.

svn commit: r197753 - head/tools/regression/lib/libc/stdio

2009-10-04 Thread David Schultz
Author: das Date: Sun Oct 4 19:44:41 2009 New Revision: 197753 URL: http://svn.freebsd.org/changeset/base/197753 Log: Regression tests for r197752 (handling of empty/NULL buffers). Modified: head/tools/regression/lib/libc/stdio/test-getdelim.c Modified: head/tools/regression/lib/libc/stdio/

svn commit: r197949 - head/lib/libc/sys

2009-10-10 Thread David Schultz
Author: das Date: Sun Oct 11 00:08:55 2009 New Revision: 197949 URL: http://svn.freebsd.org/changeset/base/197949 Log: Document errno codes added in r144530. Modified: head/lib/libc/sys/intro.2 Modified: head/lib/libc/sys/intro.2 ==

Re: svn commit: r197949 - head/lib/libc/sys

2009-10-13 Thread David Schultz
On Tue, Oct 13, 2009, Robert Watson wrote: > > On Mon, 12 Oct 2009, Alan R. S. Bueno wrote: > > >That modification also imply modifying the template NLS catalog and the > >translations (or maybe translators should be advised to update their files > >(I don't know if they are aware of the change

svn commit: r226216 - head/share/mk

2011-10-10 Thread David Schultz
Author: das Date: Mon Oct 10 15:39:29 2011 New Revision: 226216 URL: http://svn.freebsd.org/changeset/base/226216 Log: Pass -std= flags in CFLAGS to mkdep. Without this, preprocessor tests for particular compiler features might be evaluated differently by mkdep than they would be by cc. Mod

svn commit: r226217 - head/lib/libc

2011-10-10 Thread David Schultz
Author: das Date: Mon Oct 10 15:42:33 2011 New Revision: 226217 URL: http://svn.freebsd.org/changeset/base/226217 Log: Add a FBSD_1.3 namespace for FreeBSD 10. Modified: head/lib/libc/Versions.def Modified: head/lib/libc/Versions.def ==

svn commit: r226218 - in head/lib/msun: . amd64 arm i387 ia64 mips powerpc sparc64

2011-10-10 Thread David Schultz
Author: das Date: Mon Oct 10 15:43:09 2011 New Revision: 226218 URL: http://svn.freebsd.org/changeset/base/226218 Log: Provide external definitions of all of the standardized functions in fenv.h that are currently inlined. The definitions are provided in fenv.c via 'extern inline' decla

svn commit: r226244 - head/share/mk

2011-10-10 Thread David Schultz
Author: das Date: Tue Oct 11 05:17:26 2011 New Revision: 226244 URL: http://svn.freebsd.org/changeset/base/226244 Log: Also pass the -ansi flag through to mkdep (requested by bde), and fix a cut-and-paste-o (noticed by rdivacky). Modified: head/share/mk/bsd.dep.mk Modified: head/share/mk/b

svn commit: r226245 - head/lib/msun/src

2011-10-10 Thread David Schultz
n/src/s_fma.c Tue Oct 11 05:17:45 2011(r226245) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2005 David Schultz + * Copyright (c) 2005-2011 David Schultz * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -32,6 +32,63 @@ __FBSDID("$FreeBSD$&qu

Re: svn commit: r226343 - head/sys/vm

2011-10-13 Thread David Schultz
On Thu, Oct 13, 2011, Marcel Moolenaar wrote: > > On Oct 13, 2011, at 2:07 PM, John Baldwin wrote: > >> > >> That's really besides the point. ABI changes are made deliberately > >> and ABIs must be well-documented for anyone to adhere to it. You > >> can't post hoc wave your hand and say that at

svn commit: r226371 - head/lib/msun/src

2011-10-14 Thread David Schultz
ndif /* LDBL_MANT_DIG != 113 */ #if (LDBL_MANT_DIG == 53) __weak_reference(fma, fmal); Modified: head/lib/msun/src/s_fmaf.c == --- head/lib/msun/src/s_fmaf.c Fri Oct 14 22:52:46 2011(r226370) +++ head/lib/msun/src/s_fmaf.c Sat Oc

svn commit: r226372 - head/lib/msun/i387

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 04:17:20 2011 New Revision: 226372 URL: http://svn.freebsd.org/changeset/base/226372 Log: Replace two lines accidentally removed in r226218. Thanks to bde for noticing this. Modified: head/lib/msun/i387/fenv.c Modified: head/lib/msun/i387/fenv.c ===

svn commit: r226373 - head/lib/msun/src

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 04:22:55 2011 New Revision: 226373 URL: http://svn.freebsd.org/changeset/base/226373 Log: Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c. Modified: head/lib/msun/src/math_private.h Modified: head/lib/msun/src/math_private.h ===

svn commit: r226374 - head/lib/msun/src

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 04:24:54 2011 New Revision: 226374 URL: http://svn.freebsd.org/changeset/base/226374 Log: 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 lo

svn commit: r226375 - head/lib/msun/src

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 05:00:56 2011 New Revision: 226375 URL: http://svn.freebsd.org/changeset/base/226375 Log: Style fixes and updates to comments. Submitted by: bde Modified: head/lib/msun/src/e_log10.c head/lib/msun/src/e_log10f.c head/lib/msun/src/e_log2.c head/lib/msun/

svn commit: r226376 - head/lib/msun/src

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 05:23:28 2011 New Revision: 226376 URL: http://svn.freebsd.org/changeset/base/226376 Log: 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

svn commit: r226377 - head/tools/regression/lib/msun

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 05:26:16 2011 New Revision: 226377 URL: http://svn.freebsd.org/changeset/base/226377 Log: Add some tests for double-rounding bugs in fma(). Modified: head/tools/regression/lib/msun/test-fma.c Modified: head/tools/regression/lib/msun/test-fma.c ===

svn commit: r226378 - head/tools/regression/lib/msun

2011-10-14 Thread David Schultz
Author: das Date: Sat Oct 15 05:28:13 2011 New Revision: 226378 URL: http://svn.freebsd.org/changeset/base/226378 Log: Add some tests for corner cases of log() in unusual rounding modes. I wrote these ages ago, but they've been failing until now. Modified: head/tools/regression/lib/msun/tes

svn commit: r226380 - head/lib/msun/src

2011-10-15 Thread David Schultz
Author: das Date: Sat Oct 15 07:00:28 2011 New Revision: 226380 URL: http://svn.freebsd.org/changeset/base/226380 Log: Remove some unnecessary initializations. Obtained from:DragonFlyBSD Modified: head/lib/msun/src/e_hypot.c head/lib/msun/src/e_hypotf.c head/lib/msun/src/e_lg

svn commit: r226411 - head/lib/msun/src

2011-10-15 Thread David Schultz
Author: das Date: Sun Oct 16 05:36:23 2011 New Revision: 226411 URL: http://svn.freebsd.org/changeset/base/226411 Log: Remove an unused variable. Modified: head/lib/msun/src/e_log10f.c Modified: head/lib/msun/src/e_log10f.c

svn commit: r226412 - head/lib/msun/src

2011-10-15 Thread David Schultz
Author: das Date: Sun Oct 16 05:36:39 2011 New Revision: 226412 URL: http://svn.freebsd.org/changeset/base/226412 Log: Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() into math_private.h, so they can be used elsewhere in the math library. Modified: head/lib/msun/src/e_hypotl.c h

svn commit: r226413 - head/lib/msun/src

2011-10-15 Thread David Schultz
Author: das Date: Sun Oct 16 05:37:01 2011 New Revision: 226413 URL: http://svn.freebsd.org/changeset/base/226413 Log: Optimize the case of pure imaginary arguments. Calls like this are common, e.g., in DFT implementations. Discussed with: bde, kargl Modified: head/lib/msun/src/

svn commit: r226414 - head/lib/msun/bsdsrc

2011-10-15 Thread David Schultz
Author: das Date: Sun Oct 16 05:37:20 2011 New Revision: 226414 URL: http://svn.freebsd.org/changeset/base/226414 Log: Fix some non-standard variable declarations. Modified: head/lib/msun/bsdsrc/b_exp.c Modified: head/lib/msun/bsdsrc/b_exp.c ==

svn commit: r226415 - in head/lib/msun: amd64 arm i387 ia64 mips powerpc sparc64

2011-10-15 Thread David Schultz
Author: das Date: Sun Oct 16 05:37:56 2011 New Revision: 226415 URL: http://svn.freebsd.org/changeset/base/226415 Log: Use #include "fenv.h" instead of #include . This makes it more convenient to compile the math library by itself. Requested by: bde Modified: head/lib/msun/amd64/fenv.

svn commit: r226456 - in stable/8/lib/msun: man src

2011-10-16 Thread David Schultz
Author: das Date: Mon Oct 17 05:38:07 2011 New Revision: 226456 URL: http://svn.freebsd.org/changeset/base/226456 Log: MFC various log* improvements. r216247 - log2f style r216248 - log2f insignificant bug r219360 - log10 converted to use k_log r219361 - log10f converted to use k_log

svn commit: r226457 - in stable/7/lib/msun: . man src

2011-10-16 Thread David Schultz
ib/msun/man/log.3) == --- head/lib/msun/man/log.3 Fri Jan 18 21:43:00 2008(r175461, copy source) +++ stable/7/lib/msun/man/log.3 Mon Oct 17 05:38:22 2011(r226457) @@ -1,4 +1,4 @@ -.\" Copyright (c

svn commit: r226458 - in head: include lib/msun lib/msun/man lib/msun/src

2011-10-16 Thread David Schultz
2011(r226458) @@ -0,0 +1,80 @@ +.\" Copyright (c) 2011 David Schultz +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Re

svn commit: r226460 - head/lib/msun/man

2011-10-16 Thread David Schultz
Author: das Date: Mon Oct 17 06:10:32 2011 New Revision: 226460 URL: http://svn.freebsd.org/changeset/base/226460 Log: It's no longer accurate to say that math.h "constitute[s] the C math library," since complex.h, tgmath.h, and fenv.h are also part of the math library. Replace the outdated

svn commit: r226594 - in head/lib/msun: amd64 i387

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:25:31 2011 New Revision: 226594 URL: http://svn.freebsd.org/changeset/base/226594 Log: Bugfix: feenableexcept() and fedisableexcept() should just return the old exception mask, not mask | ~FE_ALL_EXCEPT. MFC after:2 weeks Modified: head/lib/msun/amd6

svn commit: r226595 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:26:07 2011 New Revision: 226595 URL: http://svn.freebsd.org/changeset/base/226595 Log: Per IEEE754r, pow(1, y) is 1 even if y is NaN, and pow(-1, +-Inf) is 1. MFC after:2 weeks Modified: head/lib/msun/src/e_pow.c head/lib/msun/src/e_powf.c Modified:

svn commit: r226596 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:26:38 2011 New Revision: 226596 URL: http://svn.freebsd.org/changeset/base/226596 Log: Use STRICT_ASSIGN() to ensure that the compiler doesn't screw things up by storing x in a wider type than it's supposed to. Submitted by: bde Modified: head/lib/msun/s

svn commit: r226597 - in head/lib/msun: . src

2011-10-20 Thread David Schultz
00:00:00 1970 (empty, because file is newly added) +++ head/lib/msun/src/k_exp.c Fri Oct 21 06:27:56 2011(r226597) @@ -0,0 +1,108 @@ +/*- + * Copyright (c) 2011 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or wi

svn commit: r226598 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:28:47 2011 New Revision: 226598 URL: http://svn.freebsd.org/changeset/base/226598 Log: Use __ldexp_exp() to simplify things and improve accuracy for x near the overflow threshold. Modified: head/lib/msun/src/e_cosh.c head/lib/msun/src/e_coshf.c head/lib/m

svn commit: r226599 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:29:32 2011 New Revision: 226599 URL: http://svn.freebsd.org/changeset/base/226599 Log: Improved handling of large x in ccosh{,f}(): - Handle cases where exp(x) would overflow, but ccosh(x) ~= exp(x) / 2 shouldn't. - Use the ccosh(x) ~= exp(x) / 2 approxima

svn commit: r226600 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:30:16 2011 New Revision: 226600 URL: http://svn.freebsd.org/changeset/base/226600 Log: Fix a corner case: tan(large + Inf i) == NaN + NaN i. Modified: head/lib/msun/src/s_ctanh.c head/lib/msun/src/s_ctanhf.c Modified: head/lib/msun/src/s_ctanh.c

svn commit: r226601 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:30:43 2011 New Revision: 226601 URL: http://svn.freebsd.org/changeset/base/226601 Log: Fix a regression introduced in r226371: When the high part of x*y exactly cancels with z, return the low part of x*y instead of discarding it. Modified: head/lib/msun/src

svn commit: r226602 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:32:54 2011 New Revision: 226602 URL: http://svn.freebsd.org/changeset/base/226602 Log: Tests for cancellation in fma(). Also include more tests for 128-bit long doubles. Thanks for clusteradm (simon) for making the needed hardware available. Modified: head/

svn commit: r226603 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/lib/msun/test-ctrig.c Fri Oct 21 06:34:38 2011 (r226603) @@ -0,0 +1,540 @@ +/*- + * Copyright (c) 2008-2011 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary

svn commit: r226604 - head/lib/libc/stdio

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:35:58 2011 New Revision: 226604 URL: http://svn.freebsd.org/changeset/base/226604 Log: Add support for the 'x' mode option in fopen() as specified in the C1X draft standard. The option is equivalent to O_EXCL. MFC after:1 month Modified: head/lib/li

svn commit: r226605 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:36:40 2011 New Revision: 226605 URL: http://svn.freebsd.org/changeset/base/226605 Log: Add regression tests for modf{,f,l}(). Modified: head/tools/regression/lib/msun/test-nearbyint.c Modified: head/tools/regression/lib/msun/test-nearbyint.c ==

svn commit: r226606 - in head/lib/libc: amd64 amd64/gen arm arm/gen gen i386 i386/gen ia64 ia64/gen mips mips/gen powerpc powerpc/gen powerpc64 powerpc64/gen sparc64 sparc64/gen

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:40:36 2011 New Revision: 226606 URL: http://svn.freebsd.org/changeset/base/226606 Log: Replace a proliferation of buggy MD implementations of modf() with a working MI one. The MI one only needs to be overridden on machines with non-IEEE754 arithmetic. (The l

svn commit: r226607 - in head: include sys/amd64/include sys/arm/include sys/i386/include sys/ia64/include sys/mips/include sys/powerpc/include sys/sparc64/include

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:41:46 2011 New Revision: 226607 URL: http://svn.freebsd.org/changeset/base/226607 Log: People porting FreeBSD to new architectures ought not have to implement a deprecated FPU control interface in addition to the standard one. To make this clearer, further de

svn commit: r226618 - head/lib/msun/man

2011-10-21 Thread David Schultz
Author: das Date: Fri Oct 21 14:23:59 2011 New Revision: 226618 URL: http://svn.freebsd.org/changeset/base/226618 Log: Minor corrections and clarifications regarding exceptions. Modified: head/lib/msun/man/fenv.3 Modified: head/lib/msun/man/fenv.3

Re: svn commit: r227487 - head/include

2011-11-14 Thread David Schultz
On Mon, Nov 14, 2011, Dimitry Andric wrote: > On 2011-11-14 09:21, Stefan Farfeleder wrote: > > On Sun, Nov 13, 2011 at 04:18:48PM +, David Chisnall wrote: > >> Author: theraven > >> Date: Sun Nov 13 16:18:48 2011 > >> New Revision: 227487 > >> URL: http://svn.freebsd.org/changeset/base/227487

Re: svn commit: r227487 - head/include

2011-11-14 Thread David Schultz
On Mon, Nov 14, 2011, David Chisnall wrote: > On 14 Nov 2011, at 18:02, David Schultz wrote: > > > On Mon, Nov 14, 2011, Dimitry Andric wrote: > >> On 2011-11-14 09:21, Stefan Farfeleder wrote: > >>> On Sun, Nov 13, 2011 at 04:18:48PM +, David Chisna

svn commit: r227519 - head/lib/libc/gen

2011-11-14 Thread David Schultz
Author: das Date: Tue Nov 15 05:45:46 2011 New Revision: 227519 URL: http://svn.freebsd.org/changeset/base/227519 Log: Sync the style, comments, and variable names of arc4random.c with OpenBSD's version (r1.22). While some of our style changes were indeed small improvements, being able to e

svn commit: r227520 - head/lib/libc/gen

2011-11-14 Thread David Schultz
Author: das Date: Tue Nov 15 05:49:24 2011 New Revision: 227520 URL: http://svn.freebsd.org/changeset/base/227520 Log: Further reduce diffs with OpenBSD's arc4random. The main functional change here is to ensure that when a process forks after arc4random is seeded, the parent and child don'

svn commit: r227522 - head/tools/regression/lib/libc/gen

2011-11-14 Thread David Schultz
/libc/gen/test-arc4random.cTue Nov 15 05:55:15 2011(r227522) @@ -0,0 +1,89 @@ +/*- + * Copyright (c) 2011 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

Re: svn commit: r227538 - head/tools/build

2011-11-15 Thread David Schultz
On Tue, Nov 15, 2011, Dimitry Andric wrote: > Note all the final executables will use 'real' atomic operations. That > is, unless you compile with CPUTYPE?=i386, and I wish you the best of > luck in that case, you'll need it. :) I thought we dropped support for anything less than a 486DX years ag

Re: svn commit: r227538 - head/tools/build

2011-11-15 Thread David Schultz
On Tue, Nov 15, 2011, Marcel Moolenaar wrote: > > On Nov 15, 2011, at 1:14 PM, David Schultz wrote: > > > On Tue, Nov 15, 2011, Dimitry Andric wrote: > >> Note all the final executables will use 'real' atomic operations. That > >> is, unless you com

Re: svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386

2011-01-05 Thread David Schultz
On Wed, Jan 05, 2011, John Baldwin wrote: > On Wednesday, January 05, 2011 7:19:10 am Gleb Kurtsou wrote: > > On (05/01/2011 01:16), Alexander Best wrote: > > > On Tue Jan 4 11, Dimitry Andric wrote: > > > > Author: dim > > > > Date: Tue Jan 4 20:51:28 2011 > > > > New Revision: 216977 > > > > UR

svn commit: r217180 - head/sys/ia64/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:02 2011 New Revision: 217180 URL: http://svn.freebsd.org/changeset/base/217180 Log: The highest-precision floating point type on ia64 has 64 bits of precision, so DECIMAL_DIG should be 21, as on i386/amd64. Modified: head/sys/ia64/include/float.h Modified

svn commit: r217181 - head/sys/powerpc/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:22 2011 New Revision: 217181 URL: http://svn.freebsd.org/changeset/base/217181 Log: We don't support any floating point types larger than double on powerpc, so DECIMAL_DIG should be 17. Modified: head/sys/powerpc/include/float.h Modified: head/sys/powerpc

svn commit: r217182 - in head/sys: sparc64/include sun4v/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:48 2011 New Revision: 217182 URL: http://svn.freebsd.org/changeset/base/217182 Log: Fix the value for DECIMAL_DIG on UltraSparcs. The previous value of 35 wasn't quite big enough to ensure correct rounding for very-close- to-halfway cases. Modified: hea

svn commit: r218508 - head/lib/msun/src

2011-02-09 Thread David Schultz
Author: das Date: Thu Feb 10 07:37:29 2011 New Revision: 218508 URL: http://svn.freebsd.org/changeset/base/218508 Log: Fix a bogus threshold that was copied from the double precision version. This commit should have no effect on correctness; it merely changes the threshold at which a simpler

svn commit: r218509 - head/lib/msun/src

2011-02-09 Thread David Schultz
Author: das Date: Thu Feb 10 07:37:50 2011 New Revision: 218509 URL: http://svn.freebsd.org/changeset/base/218509 Log: For small arguments, these functions use simple approximations, e.g. cos(small) = 1, sin(small) = small. This commit tightens the thresholds at which the simple approximati

svn commit: r218510 - head/lib/msun/src

2011-02-09 Thread David Schultz
Author: das Date: Thu Feb 10 07:38:13 2011 New Revision: 218510 URL: http://svn.freebsd.org/changeset/base/218510 Log: Fix a bug where the wrong argument was passed to INSERT_WORDS(). This bug results in a type mismatch that happens to be harmless because of the way INSERT_WORDS() works.

svn commit: r218511 - head/lib/msun/src

2011-02-09 Thread David Schultz
Author: das Date: Thu Feb 10 07:38:38 2011 New Revision: 218511 URL: http://svn.freebsd.org/changeset/base/218511 Log: Fix a bug where the wrong argument was passed to SET_FLOAT_WORD(). This bug results in a type mismatch that happens to be harmless because of the way SET_FLOAT_WORD() works.

svn commit: r219309 - svnadmin/conf

2011-03-05 Thread David Schultz
Author: das Date: Sat Mar 5 19:22:57 2011 New Revision: 219309 URL: http://svn.freebsd.org/changeset/base/219309 Log: Please welcome Steve Kargl as a new src committer. Steve has been working on improvements to our math library for many years, and forcing him to commit his changes himself

svn commit: r219323 - in stable/8/lib/msun: . man src

2011-03-06 Thread David Schultz
(r219322) +++ stable/8/lib/msun/man/log.3 Sun Mar 6 08:49:44 2011(r219323) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2008 David Schultz +.\" Copyright (c) 2008-2010 David Schultz .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms,

svn commit: r219324 - stable/8/sys/sys

2011-03-06 Thread David Schultz
Author: das Date: Sun Mar 6 08:50:15 2011 New Revision: 219324 URL: http://svn.freebsd.org/changeset/base/219324 Log: Bump __FreeBSD_version for the MFC of log2(), for the benefit of ports such as opencity and inkscape that have workarounds for the lack of a log2() in the base system. Modi

svn commit: r219325 - stable/8/lib/msun

2011-03-06 Thread David Schultz
Author: das Date: Sun Mar 6 08:52:23 2011 New Revision: 219325 URL: http://svn.freebsd.org/changeset/base/219325 Log: MFC r216137: Disable gcc's built-in rint() function when compiling s_nearbyint.c. It results in incorrect optimizations that break nearbyint(). Modified: stable/8/lib

svn commit: r219359 - in head/lib/msun: . man src

2011-03-06 Thread David Schultz
exp.3 == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/msun/man/cexp.3Mon Mar 7 03:09:24 2011(r219359) @@ -0,0 +1,113 @@ +.\" Copyright (c) 2011 David Schultz +.\" All rights reserved. +.\" +.\" Redistribution and use in sour

svn commit: r219360 - head/lib/msun/src

2011-03-06 Thread David Schultz
Author: das Date: Mon Mar 7 03:11:27 2011 New Revision: 219360 URL: http://svn.freebsd.org/changeset/base/219360 Log: Convert log10() to use __kernel_log(), which is more accurate and simpler. Modified: head/lib/msun/src/e_log10.c Modified: head/lib/msun/src/e_log10.c ==

svn commit: r219361 - head/lib/msun/src

2011-03-06 Thread David Schultz
Author: das Date: Mon Mar 7 03:12:08 2011 New Revision: 219361 URL: http://svn.freebsd.org/changeset/base/219361 Log: Convert log10f() to use __kernel_log(), which is more accurate and simpler. Modified: head/lib/msun/src/e_log10f.c Modified: head/lib/msun/src/e_log10f.c ===

svn commit: r219362 - head/tools/regression/lib/msun

2011-03-06 Thread David Schultz
-0,0 +1,380 @@ +/*- + * Copyright (c) 2008-2011 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retai

  1   2   3   4   >