On Mon, Jan 9, 2012 at 11:02 PM, John-Mark Gurney wrote:
> Last time I did benchmarking on this ~10 years ago, it was slower to
> use xor instead of using assignments...
I'd be shocked if the compiler didn't optimize this away to an XCHG.
--
Eitan Adler
_
Hi John;
--- Lun 9/1/12, John-Mark Gurney ha scritto:
...
> Pedro F. Giffuni wrote this message
> on Tue, Jan 03, 2012 at 19:47 +:
> > +#define SL_SWAP(a,b)
> {a^=b; b^=a; a^=b;}
>
> Can we replace this w/ a normal swap function?
>
> Last time I did benchmarking on this ~10 years
Pedro F. Giffuni wrote this message on Tue, Jan 03, 2012 at 19:47 +:
> +#define SL_SWAP(a,b) {a^=b; b^=a; a^=b;}
Can we replace this w/ a normal swap function?
Last time I did benchmarking on this ~10 years ago, it was slower to
use xor instead of using assignments...
--
John-Ma
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:58 2012
New Revision: 229919
URL: http://svn.freebsd.org/changeset/base/229919
Log:
Fix warning when compiling with gcc46:
error: variable 'freq' set but not used
error: variable 'mode_pars' set but not used
Reviewed by
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:43 2012
New Revision: 229917
URL: http://svn.freebsd.org/changeset/base/229917
Log:
Fix warning when compiling with gcc46:
error: variable 'inumber' set but not used
Approved by: dim
MFC after:3 days
Modified:
head/sb
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:18 2012
New Revision: 229914
URL: http://svn.freebsd.org/changeset/base/229914
Log:
Fix warning when compiling with gcc46:
error: variable 'firstkey' set but not used
Approved by: dim
MFC after:3 days
Modified:
head/s
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:09 2012
New Revision: 229913
URL: http://svn.freebsd.org/changeset/base/229913
Log:
Fix warning when compiling with gcc46:
error: variable 'c' set but not used
Approved by: dim
MFC after:3 days
Modified:
head/sbin/new
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:01 2012
New Revision: 229912
URL: http://svn.freebsd.org/changeset/base/229912
Log:
Fix warning when compiling with gcc46:
error: variable 'origextlen' set but not used
Approved by: dim
MFC after:3 days
Modified:
head
Author: eadler (ports committer)
Date: Tue Jan 10 02:58:52 2012
New Revision: 229911
URL: http://svn.freebsd.org/changeset/base/229911
Log:
Fix warning when compiling with gcc46:
error: variable 'Sflag' set but not used
Approved by: dim
MFC after:3 days
Modified:
head/sbin
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:50 2012
New Revision: 229918
URL: http://svn.freebsd.org/changeset/base/229918
Log:
Fix warning when compiling with gcc46:
error: variable 'blksfree' set but not used
Reviewed by: pjd
Approved by: dim
MFC after:3 days
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:35 2012
New Revision: 229916
URL: http://svn.freebsd.org/changeset/base/229916
Log:
Fix warning when compiling with gcc46:
error: variable 'secsz' set but not used
Reviewed by: ae
Approved by: dim
MFC after:3 days
Mo
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:26 2012
New Revision: 229915
URL: http://svn.freebsd.org/changeset/base/229915
Log:
Fix warning when compiling with gcc46:
error: variable 'op' set but not used
error: variable 'cmd' set but not used
Approved by: dim
Author: eadler (ports committer)
Date: Tue Jan 10 02:58:44 2012
New Revision: 229910
URL: http://svn.freebsd.org/changeset/base/229910
Log:
Silence bogus warning when compiling with gcc46:
error: 'pos' may be used uninitialized in this function
Reviewed by: cperciva
Approved by:
Author: eadler (ports committer)
Date: Tue Jan 10 02:58:36 2012
New Revision: 229909
URL: http://svn.freebsd.org/changeset/base/229909
Log:
Fix warning when compiling with gcc46:
error: variable 'ifnetfound' set but not used
Approved by: dim
MFC after: 3 days
Modified:
he
Author: eadler (ports committer)
Date: Tue Jan 10 02:58:29 2012
New Revision: 229908
URL: http://svn.freebsd.org/changeset/base/229908
Log:
Fix warning when compiling with gcc46:
error: variable 'verbose' set but not use
Approved by: dim
MFC after: 3 days
Modified:
head/
Author: eadler (ports committer)
Date: Tue Jan 10 02:58:20 2012
New Revision: 229907
URL: http://svn.freebsd.org/changeset/base/229907
Log:
Fix warning when compiling with gcc46:
error: variable 'wdone' set but not use
Approved by: dim
MFC after:3 days
Modified:
head/usr.b
Author: eadler (ports committer)
Date: Tue Jan 10 02:55:43 2012
New Revision: 229905
URL: http://svn.freebsd.org/changeset/base/229905
Log:
Fix warning when compiling with gcc46:
error: variable 'defname' set but not use
Approved by: dim
MFC after:3 day
Modified:
head/usr
Author: eadler (ports committer)
Date: Tue Jan 10 02:55:35 2012
New Revision: 229904
URL: http://svn.freebsd.org/changeset/base/229904
Log:
Fix warning when compiling with gcc46:
error: variable 'bp' set but not use
Approved by: dim
MFC After:3 days
Modified:
head/libexec
Author: lstewart
Date: Tue Jan 10 00:48:29 2012
New Revision: 229898
URL: http://svn.freebsd.org/changeset/base/229898
Log:
Consumers of bpfdetach() expect it to remove all bpf_if structs from the
bpf_iflist list which reference the specified ifnet. The existing
implementation
only removes
On Mon, Jan 09, 2012 at 11:20:30PM +, Jung-uk Kim wrote:
> Author: jkim
> Date: Mon Jan 9 23:20:30 2012
> New Revision: 229887
> URL: http://svn.freebsd.org/changeset/base/229887
>
> Log:
> Enable hardware RNG for VIA Nano processors.
>
> PR: kern/163974
Can we, please, have VI
Author: jkim
Date: Mon Jan 9 23:20:30 2012
New Revision: 229887
URL: http://svn.freebsd.org/changeset/base/229887
Log:
Enable hardware RNG for VIA Nano processors.
PR: kern/163974
Modified:
head/sys/conf/files.amd64
head/sys/dev/random/probe.c
head/sys/modules/random/Makef
Author: jimharris
Date: Mon Jan 9 23:01:42 2012
New Revision: 229886
URL: http://svn.freebsd.org/changeset/base/229886
Log:
Add support for >2TB disks in GEOM RAID for Intel metadata format.
Reviewed by: mav
Approved by: scottl
MFC after: 1 week
Modified:
head/sbin/geom/class/raid/g
2012/1/9 Alexander Motin :
> On 09.01.2012 21:01, Maksim Yevmenkin wrote:
>>
>> 2012/1/9 Alexander Motin:
>>>
>>> On 09.01.2012 20:54, Maksim Yevmenkin wrote:
On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin
wrote:
>
>
> Author: mav
> Date: Wed Dec 28 22:49:28 2
On 9 January 2012 16:49, Dimitry Andric wrote:
> On 2012-01-08 21:35, Sergey Kandaurov wrote:
> ...
>
>> So, the problem arise when beastie_disable is set.
>>
>> In this case menu.rc is not evaluated and consequently menu-unset does
>> not have a body yet. This results in the ficl warning "not fou
Author: pluknet
Date: Mon Jan 9 20:25:14 2012
New Revision: 229881
URL: http://svn.freebsd.org/changeset/base/229881
Log:
Get rid of a spurious warning on the console when booting the kernel
from the interactive loader(8) prompt and beastie_disable="YES" is set
in loader.conf(5). In this ca
Author: jhb
Date: Mon Jan 9 19:34:12 2012
New Revision: 229873
URL: http://svn.freebsd.org/changeset/base/229873
Log:
Convert the per-interface address list lock from a mutex to a reader/writer
lock.
Reviewed by: bz
Modified:
head/sys/kern/subr_witness.c
head/sys/net/if_var.h
Modi
On 09.01.2012 21:04, Garrett Cooper wrote:
2012/1/9 Alexander Motin:
On 09.01.2012 20:54, Maksim Yevmenkin wrote:
On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motinwrote:
Author: mav
Date: Wed Dec 28 22:49:28 2011
New Revision: 228939
URL: http://svn.freebsd.org/changeset/base/228939
Log:
On Monday, January 09, 2012 2:04:23 pm Garrett Cooper wrote:
> 2012/1/9 Alexander Motin :
> > On 09.01.2012 20:54, Maksim Yevmenkin wrote:
> >>
> >> On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin wrote:
> >>
> >>> Author: mav
> >>> Date: Wed Dec 28 22:49:28 2011
> >>> New Revision: 228939
> >>>
On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin wrote:
> Author: mav
> Date: Wed Dec 28 22:49:28 2011
> New Revision: 228939
> URL: http://svn.freebsd.org/changeset/base/228939
>
> Log:
> Set maximum I/O size for mps(4) to MAXPHYS. Looking into the code, I see
> no reason why it should be limit
On 09.01.2012 21:01, Maksim Yevmenkin wrote:
2012/1/9 Alexander Motin:
On 09.01.2012 20:54, Maksim Yevmenkin wrote:
On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motinwrote:
Author: mav
Date: Wed Dec 28 22:49:28 2011
New Revision: 228939
URL: http://svn.freebsd.org/changeset/base/228939
Lo
2012/1/9 Alexander Motin :
> On 09.01.2012 20:54, Maksim Yevmenkin wrote:
>>
>> On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin wrote:
>>>
>>> Author: mav
>>> Date: Wed Dec 28 22:49:28 2011
>>> New Revision: 228939
>>> URL: http://svn.freebsd.org/changeset/base/228939
>>>
>>> Log:
>>> Set maximu
2012/1/9 Alexander Motin :
> On 09.01.2012 20:54, Maksim Yevmenkin wrote:
>>
>> On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin wrote:
>>
>>> Author: mav
>>> Date: Wed Dec 28 22:49:28 2011
>>> New Revision: 228939
>>> URL: http://svn.freebsd.org/changeset/base/228939
>>>
>>> Log:
>>> Set maximum
On 09.01.2012 20:54, Maksim Yevmenkin wrote:
On Wed, Dec 28, 2011 at 2:49 PM, Alexander Motin wrote:
Author: mav
Date: Wed Dec 28 22:49:28 2011
New Revision: 228939
URL: http://svn.freebsd.org/changeset/base/228939
Log:
Set maximum I/O size for mps(4) to MAXPHYS. Looking into the code, I see
On Jan 9, 2012, at 4:49 AM, Dimitry Andric wrote:
> On 2012-01-08 21:35, Sergey Kandaurov wrote:
> ...
>> So, the problem arise when beastie_disable is set.
>>
>> In this case menu.rc is not evaluated and consequently menu-unset does
>> not have a body yet. This results in the ficl warning "no
>
> The problem with having ZFS compiled into the kernel is that OpenSolaris
> compatiblity layer needs its headers to be included before system
> headers, which is/was impossible or hard to express for kernel
> compilation. AFAIR Kip Macy was working on it and my understanding was
> that he finish
Author: glebius
Date: Mon Jan 9 14:35:05 2012
New Revision: 229857
URL: http://svn.freebsd.org/changeset/base/229857
Log:
Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage
to another mbuf.
Modified:
head/sys/contrib/pf/net/if_pfsync.c
Modified: head/sys/contrib
On Mon, Jan 09, 2012 at 08:15:44AM -0500, John Baldwin wrote:
> On Sunday, January 08, 2012 5:43:30 am Pawel Jakub Dawidek wrote:
> > On Sun, Jan 08, 2012 at 12:55:22AM +, Adrian Chadd wrote:
> > > Author: adrian
> > > Date: Sun Jan 8 00:55:22 2012
> > > New Revision: 229800
> > > URL: http://
On Sunday, January 08, 2012 5:43:30 am Pawel Jakub Dawidek wrote:
> On Sun, Jan 08, 2012 at 12:55:22AM +, Adrian Chadd wrote:
> > Author: adrian
> > Date: Sun Jan 8 00:55:22 2012
> > New Revision: 229800
> > URL: http://svn.freebsd.org/changeset/base/229800
> >
> > Log:
> > Make these two f
On 2012-01-08 21:35, Sergey Kandaurov wrote:
...
So, the problem arise when beastie_disable is set.
In this case menu.rc is not evaluated and consequently menu-unset does
not have a body yet. This results in the ficl warning "not found" when
try-menu-unset calls menu-unset. The warning cannot be
On Mon, Jan 09, 2012 at 12:55:06AM -0800, Doug Barton wrote:
> On 01/08/2012 15:06, Konstantin Belousov wrote:
> > Author: kib
> > Date: Sun Jan 8 23:06:53 2012
> > New Revision: 229828
> > URL: http://svn.freebsd.org/changeset/base/229828
> >
> > Log:
> > Avoid LOR between vfs_busy() lock and
PEOPLE WHO THINK THAT FreeBSD 10
machines to maximize performance. (To disable malloc debugging, run
ln -s aj /etc/malloc.conf.)
+20120109:
+ panic(9) now stops other CPUs in the SMP systems, disables interrupts
+ on the current CPU and prevents other threads from
Author: glebius
Date: Mon Jan 9 12:06:02 2012
New Revision: 229853
URL: http://svn.freebsd.org/changeset/base/229853
Log:
Backout of backout: we need SI_SUB_PROTO_DOMAIN for pfsync, since
it needs existing inetdomain on startup.
Modified:
head/sys/contrib/pf/net/if_pfsync.c
Modified: head
Author: glebius
Date: Mon Jan 9 09:19:00 2012
New Revision: 229852
URL: http://svn.freebsd.org/changeset/base/229852
Log:
Revert sub argument of MODULE_DECLARE back to r226532.
Noticed by: bz
Modified:
head/sys/contrib/pf/net/if_pfsync.c
head/sys/contrib/pf/net/pf_ioctl.c
Modified:
Author: glebius
Date: Mon Jan 9 08:55:23 2012
New Revision: 229851
URL: http://svn.freebsd.org/changeset/base/229851
Log:
In FreeBSD we determine presence of pfsync(4) at run-time, not
at compile time, so define NPFSYNC to 1 always. While here, remove
unused defines.
Modified:
head/sys/c
On 01/08/2012 15:06, Konstantin Belousov wrote:
> Author: kib
> Date: Sun Jan 8 23:06:53 2012
> New Revision: 229828
> URL: http://svn.freebsd.org/changeset/base/229828
>
> Log:
> Avoid LOR between vfs_busy() lock and covered vnode lock on quotaon().
Does this mean that if we turn witness back
Author: glebius
Date: Mon Jan 9 08:50:22 2012
New Revision: 229850
URL: http://svn.freebsd.org/changeset/base/229850
Log:
Bunch of fixes to pfsync(4) module load/unload:
o Make the pfsync.ko actually usable. Before this change loading it
didn't register protosw, so was a nop. However,
Author: glebius
Date: Mon Jan 9 08:36:12 2012
New Revision: 229849
URL: http://svn.freebsd.org/changeset/base/229849
Log:
o Fix panic on module unload, that happened due to mutex being
destroyed prior to pfsync_uninit(). To do this, move all the
initialization to the module_t method, in
47 matches
Mail list logo