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

2013-07-30 Thread David Schultz
On Mon, Jul 29, 2013, David Chisnall wrote: On 29 Jul 2013, at 08:05, David Schultz d...@freebsd.org wrote: On Thu, Jul 11, 2013, David Chisnall wrote: +static __inline int +__inline_isnan(double __x) +{ + + return (__x != __x); +} + +static __inline int +__inline_isnanf

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

2013-07-29 Thread David Schultz
On Thu, Jul 11, 2013, David Chisnall wrote: +static __inline int +__inline_isnan(double __x) +{ + + return (__x != __x); +} + +static __inline int +__inline_isnanf(float __x) +{ + + return (__x != __x); +} + +static __inline int +__inline_isnanl(long double __x) +{ + +

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

2013-06-10 Thread David Schultz
Author: das Date: Mon Jun 10 06:03:03 2013 New Revision: 251598 URL: http://svnweb.freebsd.org/changeset/base/251598 Log: Fix some bugs in the complex trig tests so that they test both double and float precision properly. Modified: head/tools/regression/lib/msun/test-ctrig.c Modified:

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

2013-06-10 Thread David Schultz
) is NaN without signal. + * Converted to long double by David Schultz d...@freebsd.org and + * Bruce D. Evans. */ +#include float.h +#ifdef __i386__ +#include ieeefp.h +#endif + +#include fpmath.h #include math.h #include math_private.h +/* EXP_LARGE is the threshold above which we use

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

2013-06-05 Thread David Schultz
On Wed, Jun 05, 2013, Chris Rees wrote: On 5 Jun 2013 06:33, David Schultz d...@freebsd.org wrote: Author: das Date: Wed Jun 5 05:33:01 2013 New Revision: 251404 URL: http://svnweb.freebsd.org/changeset/base/251404 Log: Style fixes. Submitted by: bde Modified

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

2013-06-04 Thread David Schultz
Author: das Date: Wed Jun 5 05:33:01 2013 New Revision: 251404 URL: http://svnweb.freebsd.org/changeset/base/251404 Log: Style fixes. Submitted by: bde Modified: head/lib/msun/Makefile head/lib/msun/src/catrig.c head/lib/msun/src/catrigf.c head/lib/msun/src/e_log2.c Modified:

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

2013-06-03 Thread David Schultz
Author: das Date: Mon Jun 3 09:15:15 2013 New Revision: 251293 URL: http://svnweb.freebsd.org/changeset/base/251293 Log: Add more tests for log functions. A few are commented out because the long double versions don't pass yet. (They are rather nit-picky cases, so there's ongoing

svn commit: r251292 - in head/lib/msun: . ld128 ld80 man src

2013-06-03 Thread David Schultz
Author: das Date: Mon Jun 3 09:14:31 2013 New Revision: 251292 URL: http://svnweb.freebsd.org/changeset/base/251292 Log: Add logl, log2l, log10l, and log1pl. Submitted by: bde Added: head/lib/msun/ld128/s_logl.c (contents, props changed) head/lib/msun/ld80/s_logl.c (contents,

svn commit: r251294 - head/sys/sys

2013-06-03 Thread David Schultz
Author: das Date: Mon Jun 3 09:33:51 2013 New Revision: 251294 URL: http://svnweb.freebsd.org/changeset/base/251294 Log: Bump __FreeBSD_version for the addition of the following functions to libm: cacos, cacosf, cacosh, cacoshf, casin, casinf, casinh, casinhf, catan, catanf,

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

2013-06-03 Thread David Schultz
On Fri, May 31, 2013, Alexey Dokuchaev wrote: On Thu, May 30, 2013 at 04:49:27AM +, David Schultz wrote: New Revision: 251121 URL: http://svnweb.freebsd.org/changeset/base/251121 Log: I'm happy to finally commit stephen@'s implementations of cacos, cacosh, casin, casinh

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

2013-06-03 Thread David Schultz
On Mon, Jun 03, 2013, Alexey Dokuchaev wrote: On Mon, Jun 03, 2013 at 02:38:09AM -0700, David Schultz wrote: On Fri, May 31, 2013, Alexey Dokuchaev wrote: On Thu, May 30, 2013 at 04:49:27AM +, David Schultz wrote: New Revision: 251121 URL: http://svnweb.freebsd.org/changeset/base

Re: svn commit: r251343 - in head/lib/msun: . ld128 ld80 man src

2013-06-03 Thread David Schultz
On Mon, Jun 03, 2013, Steve Kargl wrote: Author: kargl Date: Mon Jun 3 19:51:32 2013 New Revision: 251343 URL: http://svnweb.freebsd.org/changeset/base/251343 Log: ld80 and ld128 implementations of expm1l(). This code started life as a fairly faithful implementation of the algorithm

svn commit: r251366 - head/lib/msun

2013-06-03 Thread David Schultz
Author: das Date: Tue Jun 4 05:41:38 2013 New Revision: 251366 URL: http://svnweb.freebsd.org/changeset/base/251366 Log: Add man links for expl(3) and expm1l(3). Modified: head/lib/msun/Makefile Modified: head/lib/msun/Makefile

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

2013-06-01 Thread David Schultz
Author: das Date: Sun Jun 2 04:30:03 2013 New Revision: 251241 URL: http://svnweb.freebsd.org/changeset/base/251241 Log: Factor out some common code from the libm tests. This is a bit messy because different tests have different ideas about what it means to be close enough to the right

Re: svn commit: r249035 - head/lib/libc/stdlib

2013-05-30 Thread David Schultz
On Tue, Apr 02, 2013, Xin LI wrote: Author: delphij Date: Tue Apr 2 23:41:20 2013 New Revision: 249035 URL: http://svnweb.freebsd.org/changeset/base/249035 Log: Replace access to /dev/random with the kernel pseudo-random number source sysctl(KERN_ARND) and remove the fallback code.

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

2013-05-29 Thread David Schultz
file is newly added) +++ head/tools/regression/lib/msun/test-invctrig.c Thu May 30 04:46:36 2013(r251119) @@ -0,0 +1,442 @@ +/*- + * Copyright (c) 2008-2013 David Schultz d...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms

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

2013-05-29 Thread David Schultz
Author: das Date: Thu May 30 04:47:03 2013 New Revision: 251120 URL: http://svnweb.freebsd.org/changeset/base/251120 Log: Fix some harmless bugs in a test. Modified: head/tools/regression/lib/msun/test-rem.c Modified: head/tools/regression/lib/msun/test-rem.c

Re: svn commit: r250990 - head/include

2013-05-27 Thread David Schultz
On Sat, May 25, 2013, Ed Schouten wrote: Author: ed Date: Sat May 25 18:55:55 2013 New Revision: 250990 URL: http://svnweb.freebsd.org/changeset/base/250990 Log: Add C11 macros CMPLX(), CMPLXF() and CMPLXL(). Clang allows us to initialize complex numbers using an array

svn commit: r251024 - in head: lib/msun lib/msun/ld128 lib/msun/ld80 lib/msun/src tools/regression/lib/msun

2013-05-27 Thread David Schultz
Author: das Date: Mon May 27 08:50:10 2013 New Revision: 251024 URL: http://svnweb.freebsd.org/changeset/base/251024 Log: Fix some regressions caused by the switch from gcc to clang. The fixes are workarounds for various symptoms of the problem described in clang bugs 3929, 8100, 8241,

Re: svn commit: r251024 - in head: lib/msun lib/msun/ld128 lib/msun/ld80 lib/msun/src tools/regression/lib/msun

2013-05-27 Thread David Schultz
On Mon, May 27, 2013, Steve Kargl wrote: On Mon, May 27, 2013 at 08:50:10AM +, David Schultz wrote: Author: das Date: Mon May 27 08:50:10 2013 New Revision: 251024 URL: http://svnweb.freebsd.org/changeset/base/251024 Log: Fix some regressions caused by the switch from gcc

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-24 Thread David Schultz
On Wed, Jul 04, 2012, Doug Barton wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/04/2012 13:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes That would be a pretty serious configuration error. Yes -- but the scary part is that arc4random() is not

Re: svn commit: r238722 - in head/lib/msun: . ld128 ld80 man src

2012-07-24 Thread David Schultz
On Tue, Jul 24, 2012, Steve Kargl wrote: On Tue, Jul 24, 2012 at 08:43:35AM +, Alexey Dokuchaev wrote: On Mon, Jul 23, 2012 at 07:13:56PM +, Steve Kargl wrote: Author: kargl Date: Mon Jul 23 19:13:55 2012 New Revision: 238722 URL: http://svn.freebsd.org/changeset/base/238722

Re: svn commit: r238722 - in head/lib/msun: . ld128 ld80 man src

2012-07-24 Thread David Schultz
On Tue, Jul 24, 2012, Steve Kargl wrote: On Tue, Jul 24, 2012 at 01:57:12PM -0400, David Schultz wrote: On Tue, Jul 24, 2012, Steve Kargl wrote: On Tue, Jul 24, 2012 at 08:43:35AM +, Alexey Dokuchaev wrote: On Mon, Jul 23, 2012 at 07:13:56PM +, Steve Kargl wrote: Author

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

2012-04-29 Thread David Schultz
Author: das Date: Sun Apr 29 16:28:39 2012 New Revision: 234799 URL: http://svn.freebsd.org/changeset/base/234799 Log: Previously, vfscanf()'s wide character processing functions were reading wide characters manually. With this change, they now use fgetwc(). To make this work, we use an

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

2012-04-29 Thread David Schultz
Author: das Date: Mon Apr 30 01:08:18 2012 New Revision: 234825 URL: http://svn.freebsd.org/changeset/base/234825 Log: Fix a bug in *wscanf's handling of non-wide %s, %c, and %[ conversions. Both the specification and the documentation say the width is interpreted as the max number of wide

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

2012-04-22 Thread David Schultz
Author: das Date: Sun Apr 22 21:18:41 2012 New Revision: 234585 URL: http://svn.freebsd.org/changeset/base/234585 Log: Refactor scanf to improve modularity. Conversions are now performed by separate conversion functions. This will hopefully make bugs more noticeable (I noticed several

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

2012-04-22 Thread David Schultz
Author: das Date: Sun Apr 22 21:22:14 2012 New Revision: 234586 URL: http://svn.freebsd.org/changeset/base/234586 Log: Bugfix: %n doesn't count as a conversion, so sscanf(abc, ab%ncd, i) returns EOF, not 0. Modified: head/lib/libc/stdio/vfscanf.c head/lib/libc/stdio/vfwscanf.c Modified:

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

2012-04-22 Thread David Schultz
Author: das Date: Sun Apr 22 21:28:14 2012 New Revision: 234587 URL: http://svn.freebsd.org/changeset/base/234587 Log: Bugfix: Correctly count the number of characters read for %l[ conversions. Modified: head/lib/libc/stdio/vfscanf.c Modified: head/lib/libc/stdio/vfscanf.c

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

2012-04-22 Thread David Schultz
Author: das Date: Sun Apr 22 21:28:33 2012 New Revision: 234588 URL: http://svn.freebsd.org/changeset/base/234588 Log: Bugfix: Include whitespace characters in the count of the number of characters read. Modified: head/lib/libc/stdio/vfwscanf.c Modified: head/lib/libc/stdio/vfwscanf.c

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

2012-04-21 Thread David Schultz
Author: das Date: Sat Apr 21 06:08:29 2012 New Revision: 234529 URL: http://svn.freebsd.org/changeset/base/234529 Log: Ensure that the {,v}swprintf functions always null-terminate the output string, even if an encoding error or malloc failure occurs. Modified:

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

2012-04-21 Thread David Schultz
Author: das Date: Sat Apr 21 06:09:09 2012 New Revision: 234530 URL: http://svn.freebsd.org/changeset/base/234530 Log: - Fix the claim that the output is always null-terminated. This isn't true if the size is zero. - Fix a claim that sprintf() is the same as snprintf() with an

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

2012-04-21 Thread David Schultz
Author: das Date: Sat Apr 21 06:08:02 2012 New Revision: 234528 URL: http://svn.freebsd.org/changeset/base/234528 Log: Fix a bug introduced in r187302 that was causing fputws() to enter an infinite loop pretty much unconditionally. It's remarkable that the patch that introduced the bug was

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

2012-04-21 Thread David Schultz
Author: das Date: Sat Apr 21 06:10:18 2012 New Revision: 234531 URL: http://svn.freebsd.org/changeset/base/234531 Log: If the size passed to {,v}s{w,n}printf is larger than INT_MAX+1 (i.e., the return value would overflow), set errno to EOVERFLOW and return an error. This improves the

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

2012-04-21 Thread David Schultz
Author: das Date: Sat Apr 21 07:31:27 2012 New Revision: 234536 URL: http://svn.freebsd.org/changeset/base/234536 Log: As noted by Peter Jeremy, r234528 only partially fixed the infinite loop bug introduced in r187302. This completes the fix. PR: 167039 MFC after:3 days

Re: svn commit: r234528 - head/lib/libc/stdio

2012-04-21 Thread David Schultz
On Sat, Apr 21, 2012, Peter Jeremy wrote: On 2012-Apr-21 06:08:02 +, David Schultz d...@freebsd.org wrote: Log: Fix a bug introduced in r187302 that was causing fputws() to enter an infinite loop pretty much unconditionally. Unfortunately, I suspect you've just turned

Re: svn commit: r232926 - in head: include/xlocale lib/libc/locale

2012-04-11 Thread David Schultz
On Tue, Mar 13, 2012, David Chisnall wrote: Modified: head/lib/libc/locale/Symbol.map == --- head/lib/libc/locale/Symbol.map Tue Mar 13 14:10:33 2012 (r232925) +++ head/lib/libc/locale/Symbol.map Tue Mar

Re: svn commit: r232935 - head/lib/libc/locale

2012-04-11 Thread David Schultz
On Tue, Mar 13, 2012, David Chisnall wrote: Author: theraven Date: Tue Mar 13 20:02:41 2012 New Revision: 232935 URL: http://svn.freebsd.org/changeset/base/232935 Log: First set of xlocale man pages. More to follow... Thanks! By the way, it's customary to bump the date on the manpage

Re: svn commit: r232491 - in head/sys: amd64/include i386/include pc98/include x86/include

2012-04-09 Thread David Schultz
On Sun, Mar 04, 2012, Tijl Coosemans wrote: Log: Copy amd64 float.h to x86 and merge with i386 float.h. Replace amd64/i386/pc98 float.h with stubs. [...] --- head/sys/amd64/include/float.hSun Mar 4 12:52:48 2012 (r232490, copy source) +++ head/sys/x86/include/float.h

Re: svn commit: r232275 - in head/sys: amd64/include i386/include pc98/include x86/include

2012-04-07 Thread David Schultz
On Fri, Mar 02, 2012, Tijl Coosemans wrote: Thanks, that was quite informative. C11 does say something about the FP env and signals now though: ``When the processing of the abstract machine is interrupted by receipt of a signal, the values of objects that are neither lock-free atomic

Re: svn commit: r232351 - in head/sys: kern sys ufs/ffs ufs/ufs

2012-04-07 Thread David Schultz
On Fri, Mar 02, 2012, David Chisnall wrote: On 2 Mar 2012, at 12:53, Konstantin Belousov wrote: This part of the change breaks KBI. I suggest that for merge to stable/9 you would leave the bread and breadn as functions. Can we not do this for the general case? Provide them as inline

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

2012-04-06 Thread David Schultz
Author: das Date: Sat Apr 7 03:59:12 2012 New Revision: 233973 URL: http://svn.freebsd.org/changeset/base/233973 Log: Fix a bug in remquo{,f,l}, in which the quotient didn't always have the correct sign when the remainder was 0. Fix a separate bug in remquo alone, in which the remainder

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

2012-04-06 Thread David Schultz
Author: das Date: Sat Apr 7 04:00:30 2012 New Revision: 233974 URL: http://svn.freebsd.org/changeset/base/233974 Log: Add some tests from PR 166463. Also make sure that all of the tests, old and new, check the sign bits of both the remainder and the quotient. Modified:

Re: svn commit: r230583 - head/sys/kern

2012-01-31 Thread David Schultz
On Tue, Jan 31, 2012, Konstantin Belousov wrote: On Mon, Jan 30, 2012 at 02:07:03PM -0500, David Schultz wrote: On Mon, Jan 30, 2012, Kostik Belousov wrote: On Sun, Jan 29, 2012 at 05:39:04PM -0500, David Schultz wrote: On Sun, Jan 29, 2012, Kostik Belousov wrote: On Sat, Jan 28

Re: svn commit: r230583 - head/sys/kern

2012-01-30 Thread David Schultz
On Mon, Jan 30, 2012, Kostik Belousov wrote: On Sun, Jan 29, 2012 at 05:39:04PM -0500, David Schultz wrote: On Sun, Jan 29, 2012, Kostik Belousov wrote: On Sat, Jan 28, 2012 at 07:12:25PM -0500, David Schultz wrote: On Sat, Jan 28, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012

Re: svn commit: r227753 - in head: contrib/gdtoa include lib/libc/gdtoa lib/libc/gen lib/libc/locale lib/libc/regex lib/libc/stdio lib/libc/stdlib lib/libc/stdtime lib/libc/string

2012-01-30 Thread David Schultz
On Mon, Jan 30, 2012, David Chisnall wrote: On 18 Jan 2012, at 19:07, David Schultz wrote: This patch appears to cause a large performance regression. For example, I measured a 78% slowdown for strtol(42, ...). That's definitely worth taking a closer look at. I think we can cache

Re: svn commit: r230583 - head/sys/kern

2012-01-29 Thread David Schultz
On Sun, Jan 29, 2012, Kostik Belousov wrote: On Sat, Jan 28, 2012 at 07:12:25PM -0500, David Schultz wrote: On Sat, Jan 28, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012 at 02:42:21PM -0500, David Schultz wrote: On Fri, Jan 27, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012

Re: svn commit: r227753 - in head: contrib/gdtoa include lib/libc/gdtoa lib/libc/gen lib/libc/locale lib/libc/regex lib/libc/stdio lib/libc/stdlib lib/libc/stdtime lib/libc/string

2012-01-29 Thread David Schultz
On Wed, Jan 18, 2012, David Schultz wrote: On Sun, Nov 20, 2011, David Chisnall wrote: Author: theraven Date: Sun Nov 20 14:45:42 2011 New Revision: 227753 URL: http://svn.freebsd.org/changeset/base/227753 Log: Implement xlocale APIs from Darwin, mainly for use by libc

Re: svn commit: r230583 - head/sys/kern

2012-01-28 Thread David Schultz
On Sat, Jan 28, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012 at 02:42:21PM -0500, David Schultz wrote: On Fri, Jan 27, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012 at 07:50:30PM +1100, Bruce Evans wrote: On Thu, 26 Jan 2012, Gleb Smirnoff wrote: On Thu, Jan 26, 2012

Re: svn commit: r230583 - head/sys/kern

2012-01-27 Thread David Schultz
On Fri, Jan 27, 2012, Kostik Belousov wrote: On Fri, Jan 27, 2012 at 07:50:30PM +1100, Bruce Evans wrote: On Thu, 26 Jan 2012, Gleb Smirnoff wrote: On Thu, Jan 26, 2012 at 11:53:57PM +1100, Bruce Evans wrote: B @@ -1552,6 +1552,12 @@ aio_aqueue(struct thread *td, struct aio B

Re: svn commit: r230230 - head/sys/dev/random

2012-01-26 Thread David Schultz
On Thu, Jan 26, 2012, Andrey Chernov wrote: On Thu, Jan 26, 2012 at 11:32:38AM -0500, John Baldwin wrote: On Thursday, January 26, 2012 10:56:27 am Andrey Chernov wrote: On Thu, Jan 26, 2012 at 08:39:07AM -0500, John Baldwin wrote: atomic_cmpset_int(iniseed_state,

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

2012-01-22 Thread David Schultz
Author: das Date: Mon Jan 23 06:36:41 2012 New Revision: 230475 URL: http://svn.freebsd.org/changeset/base/230475 Log: Add C11 macros describing subnormal numbers to float.h. Reviewed by: bde Modified: head/sys/amd64/include/float.h head/sys/arm/include/float.h

svn commit: r230380 - head/lib/libc/softfloat/bits64

2012-01-20 Thread David Schultz
Author: das Date: Fri Jan 20 14:44:21 2012 New Revision: 230380 URL: http://svn.freebsd.org/changeset/base/230380 Log: Conditionalize the __floatunsisf and __floatunsidf functions, added in NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC). These functions are provided by

Re: svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-20 Thread David Schultz
On Fri, Jan 20, 2012, Bjoern A. Zeeb wrote: I assume it's been this commit... mips.mips64eb buildworld failed, check _.mips.mips64eb.buildworld for details mips.mipseb buildworld failed, check _.mips.mipseb.buildworld for details mips.mipsn32eb buildworld failed, check

Re: svn commit: r230368 - head/tools/regression/usr.bin/cc

2012-01-20 Thread David Schultz
On Fri, Jan 20, 2012, Dimitry Andric wrote: On 2012-01-20 08:55, Roman Divacky wrote: http://llvm.org/bugs/show_bug.cgi?id=11406 says this has been fixed, is this just problem with us having older clang in base? Obviously, it has only been fixed in llvm trunk. If this is a pressing

Re: svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-20 Thread David Schultz
On Fri, Jan 20, 2012, John Baldwin wrote: On Friday, January 20, 2012 1:50:06 am David Schultz wrote: On Fri, Jan 20, 2012, David Schultz wrote: Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the original vendor, but we're using their heavily modified version

Re: svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-20 Thread David Schultz
On Fri, Jan 20, 2012, John Baldwin wrote: On Friday, January 20, 2012 1:11:08 pm David Schultz wrote: On Fri, Jan 20, 2012, John Baldwin wrote: On Friday, January 20, 2012 1:50:06 am David Schultz wrote: On Fri, Jan 20, 2012, David Schultz wrote: Merge in the latest SoftFloat

svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:16:14 2012 New Revision: 230363 URL: http://svn.freebsd.org/changeset/base/230363 Log: Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the original vendor, but we're using their heavily modified version.) This brings in functions for long

Re: svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-19 Thread David Schultz
On Fri, Jan 20, 2012, David Schultz wrote: Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the original vendor, but we're using their heavily modified version.) This brings in functions for long double emulation (both extended and quad formats), which may be useful

svn commit: r230366 - in head/sys: arm/include ia64/include mips/include powerpc/include

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:51:41 2012 New Revision: 230366 URL: http://svn.freebsd.org/changeset/base/230366 Log: Add parentheses where required. Without them, `sizeof LDBL_MAX' is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a syntax error and should be. Thanks to bde

svn commit: r230367 - in head/lib: libc/arm/gen msun/arm

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:54:30 2012 New Revision: 230367 URL: http://svn.freebsd.org/changeset/base/230367 Log: Don't inline fenv.h functions on arm for now. Inlining makes sense: the function bodies require only 2 to 10 instructions. However, it leads to application binaries that

svn commit: r230368 - head/tools/regression/usr.bin/cc

2012-01-19 Thread David Schultz
) @@ -0,0 +1,271 @@ +/*- + * Copyright (c) 2012 David Schultz d...@freebsd.org + * 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

svn commit: r230369 - head/lib/libdisk

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:59:29 2012 New Revision: 230369 URL: http://svn.freebsd.org/changeset/base/230369 Log: Remove an errant `#define dprintf printf'. It seems to be leftover debugging code that nothing depends on. (I've had this in my tree for years without issue.) Modified:

svn commit: r230370 - head/lib/msun/arm

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 07:01:58 2012 New Revision: 230370 URL: http://svn.freebsd.org/changeset/base/230370 Log: Add a change I missed in r230367 (don't inline arm's fenv.h functions). Modified: head/lib/msun/arm/Makefile.inc Modified: head/lib/msun/arm/Makefile.inc

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

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 07:02:42 2012 New Revision: 230371 URL: http://svn.freebsd.org/changeset/base/230371 Log: Fix a small nit noted by bde: exp_x should be of type float, not double. Modified: head/lib/msun/src/k_expf.c Modified: head/lib/msun/src/k_expf.c

Re: svn commit: r230230 - head/sys/dev/random

2012-01-18 Thread David Schultz
On Wed, Jan 18, 2012, Andrey Chernov wrote: On Mon, Jan 16, 2012 at 08:18:10PM +, David Schultz wrote: Author: das Date: Mon Jan 16 20:18:10 2012 New Revision: 230230 URL: http://svn.freebsd.org/changeset/base/230230 Log: Generate a warning if the kernel's arc4random

Re: svn commit: r227753 - in head: contrib/gdtoa include lib/libc/gdtoa lib/libc/gen lib/libc/locale lib/libc/regex lib/libc/stdio lib/libc/stdlib lib/libc/stdtime lib/libc/string

2012-01-18 Thread David Schultz
On Sun, Nov 20, 2011, David Chisnall wrote: Author: theraven Date: Sun Nov 20 14:45:42 2011 New Revision: 227753 URL: http://svn.freebsd.org/changeset/base/227753 Log: Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various

Re: svn commit: r230191 - in head: lib/libc/arm/gen sys/arm/include

2012-01-16 Thread David Schultz
On Mon, Jan 16, 2012, Kostik Belousov wrote: On Sun, Jan 15, 2012 at 11:11:43PM -0500, David Schultz wrote: On Mon, Jan 16, 2012, David Schultz wrote: Author: das Date: Mon Jan 16 04:08:29 2012 New Revision: 230191 URL: http://svn.freebsd.org/changeset/base/230191 Log

Re: svn commit: r230193 - head/lib/libc/sparc64/fpu

2012-01-16 Thread David Schultz
On Tue, Jan 17, 2012, Bruce Evans wrote: On Mon, 16 Jan 2012, David Schultz wrote: Log: Computations on NaNs are supposed to return one of the input NaNs unchanged. Fix a few places in the sparc64 floating-point emulator where this wasn't being handled properly. Submitted

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

2012-01-16 Thread David Schultz
Author: das Date: Mon Jan 16 20:17:29 2012 New Revision: 230228 URL: http://svn.freebsd.org/changeset/base/230228 Log: Change the definition of FLT_EVAL_METHOD from 1 to 0. A value of 1 implies that the compiler promotes floats to double precision in computations, but inspection of the

svn commit: r230229 - in head/sys: arm/include mips/include powerpc/include

2012-01-16 Thread David Schultz
Author: das Date: Mon Jan 16 20:17:51 2012 New Revision: 230229 URL: http://svn.freebsd.org/changeset/base/230229 Log: Fix the value of float_t to match what is implied by FLT_EVAL_METHOD. Modified: head/sys/arm/include/_types.h head/sys/mips/include/_types.h

svn commit: r230230 - head/sys/dev/random

2012-01-16 Thread David Schultz
Author: das Date: Mon Jan 16 20:18:10 2012 New Revision: 230230 URL: http://svn.freebsd.org/changeset/base/230230 Log: Generate a warning if the kernel's arc4random() is seeded with bogus entropy. Modified: head/sys/dev/random/harvest.c Modified: head/sys/dev/random/harvest.c

svn commit: r230188 - head/lib/libc/arm

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 04:04:35 2012 New Revision: 230188 URL: http://svn.freebsd.org/changeset/base/230188 Log: Correct some bugs that resulted from arm/_fpmath.h being blindly copied from the x86 version, which has a completely different long double format. Submitted by: Maks

svn commit: r230189 - in head/lib/libc: arm/softfloat mips/softfloat softfloat softfloat/bits32 softfloat/bits64

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 04:05:53 2012 New Revision: 230189 URL: http://svn.freebsd.org/changeset/base/230189 Log: Convert softfloat to use the standard exception flag and rounding macros in fenv.h instead of the non-standard and incomplete ones in ieeefp.h. Thanks to Ian Lepore for

svn commit: r230190 - head/lib/libc/softfloat

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 04:06:56 2012 New Revision: 230190 URL: http://svn.freebsd.org/changeset/base/230190 Log: Remove functions from softfloat's Symbol.map that don't need to be exported. Also use the proper number of underscores for internal names. (Changing the names should be

svn commit: r230191 - in head: lib/libc/arm/gen sys/arm/include

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 04:08:29 2012 New Revision: 230191 URL: http://svn.freebsd.org/changeset/base/230191 Log: Implement FLT_ROUNDS for arm. Some (all?) arm FPUs lack support for dynamic rounding modes, but FPUless chips that use softfloat can support it because everything is

svn commit: r230192 - in head/lib/msun: . arm src

2012-01-15 Thread David Schultz
) +++ head/lib/msun/src/fenv-softfloat.h Mon Jan 16 04:09:17 2012 (r230192) @@ -0,0 +1,184 @@ +/*- + * Copyright (c) 2004-2011 David Schultz d...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted

svn commit: r230193 - head/lib/libc/sparc64/fpu

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 04:09:45 2012 New Revision: 230193 URL: http://svn.freebsd.org/changeset/base/230193 Log: Computations on NaNs are supposed to return one of the input NaNs unchanged. Fix a few places in the sparc64 floating-point emulator where this wasn't being handled

Re: svn commit: r230191 - in head: lib/libc/arm/gen sys/arm/include

2012-01-15 Thread David Schultz
On Mon, Jan 16, 2012, David Schultz wrote: Author: das Date: Mon Jan 16 04:08:29 2012 New Revision: 230191 URL: http://svn.freebsd.org/changeset/base/230191 Log: Implement FLT_ROUNDS for arm. Some (all?) arm FPUs lack support for dynamic rounding modes, but FPUless chips that use

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

2012-01-15 Thread David Schultz
On Mon, Jan 16, 2012, David Schultz wrote: Author: das Date: Mon Jan 16 04:09:17 2012 New Revision: 230192 URL: http://svn.freebsd.org/changeset/base/230192 Log: Add an implementation of fenv.h intended for platforms that lack an FPU and use softfloat. Thanks to Ian Lepore

svn commit: r230198 - head/sys/arm/include

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 05:23:13 2012 New Revision: 230198 URL: http://svn.freebsd.org/changeset/base/230198 Log: Fix the definition of FLT_EVAL_METHOD and some minor bugs. Modified: head/sys/arm/include/float.h Modified: head/sys/arm/include/float.h

svn commit: r230199 - head/sys/mips/include

2012-01-15 Thread David Schultz
Author: das Date: Mon Jan 16 05:23:27 2012 New Revision: 230199 URL: http://svn.freebsd.org/changeset/base/230199 Log: Remove a confused comment and fix some minor bugs. Modified: head/sys/mips/include/float.h Modified: head/sys/mips/include/float.h

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

2012-01-14 Thread David Schultz
Author: das Date: Sat Jan 14 08:11:40 2012 New Revision: 230102 URL: http://svn.freebsd.org/changeset/base/230102 Log: Fix a test that doesn't work on architectures where long double is no wider than double. Thanks to Ian Lepore for catching the bug. Modified:

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

2012-01-14 Thread David Schultz
Author: das Date: Sat Jan 14 21:09:54 2012 New Revision: 230114 URL: http://svn.freebsd.org/changeset/base/230114 Log: Update the tests for arm and other ports where long double is the same as double, similar to r178141. Modified: head/tools/regression/lib/libc/stdio/test-printfloat.c

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

2012-01-14 Thread David Schultz
Author: das Date: Sat Jan 14 21:38:31 2012 New Revision: 230115 URL: http://svn.freebsd.org/changeset/base/230115 Log: Add .t files for tests, missed in prior checkins, so that prove(1) works in this directory. Added: head/tools/regression/lib/libc/stdio/test-getdelim.t - copied

Re: svn commit: r228955 - head/include

2012-01-01 Thread David Schultz
On Sun, Jan 01, 2012, Ed Schouten wrote: David, * David Schultz d...@freebsd.org, 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((__noreturn__)) instead of [[noreturn]]? We

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 s...@troutmask.apl.washington.edu, 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

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 with printf

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.freebsd.org/changeset/base/228668 Log: Revert r228650

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 b...@optusnet.com.au, 20111215 15:12: - recently broken for KR since it now uses signed instead of __signed - broken for longer for KR and C90 since it uses long long. In working versions, the __int64_t

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 __signed.

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 we build

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 exiting

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. Also add the license

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; any

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 arithmetic expression to the boolean one

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: 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 ago.

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 compile with CPUTYPE?=i386, and I wish you the best

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 Log:

  1   2   >