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
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
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
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
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
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
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
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
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
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
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,
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:/
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
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
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.
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
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:
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
> >>
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
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
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
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
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
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
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
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.
@@
-.\" 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
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
/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
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
==
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
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
==
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/
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:
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.
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/
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
==
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
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
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
==
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
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
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
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
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
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
===
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
===
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
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/
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
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
===
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
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
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
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
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/
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
==
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.
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
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
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
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
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
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:
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
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
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
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
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
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
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/
==
--- /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
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
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
==
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
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
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
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
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
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
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'
/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
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
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
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
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
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
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
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
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
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.
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.
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
(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,
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
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
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
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
==
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
===
-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 - 100 of 337 matches
Mail list logo