Re: memset.S for amd64

2013-09-19 Thread mxb
On 19 sep 2013, at 19:23, Brad Smith wrote: > That is in the kernel not libc. Yes, I know. Can't it be re-used instead of maintaining same file in two places? //mxb

Re: memset.S for amd64

2013-09-19 Thread Edd Barrett
On Thu, Sep 19, 2013 at 01:23:19PM -0400, Brad Smith wrote: > On 19/09/13 7:47 AM, mxb wrote: > > > >This file is already in base. > >/usr/src/sys/lib/libkern/arch/amd64/memset.S > > That is in the kernel not libc. Indeed. I recall seeing a macro called "COPY_TO_KERNEL" or something. I probably n

Re: memset.S for amd64

2013-09-19 Thread Brad Smith
On 19/09/13 7:47 AM, mxb wrote: This file is already in base. /usr/src/sys/lib/libkern/arch/amd64/memset.S That is in the kernel not libc. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Re: memset.S for amd64

2013-09-19 Thread Ville Valkonen
(Pardon top-posting) I can spot few differences: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/lib/libkern/arch/amd64/memset.S?rev=1.3;content-type=text%2Fplain and http://svnweb.freebsd.org/base/release/8.2.0/lib/libc/amd64/string/memset.S?revision=218742&view=markup though I am not familiar wit

Re: memset.S for amd64

2013-09-19 Thread mxb
This file is already in base. /usr/src/sys/lib/libkern/arch/amd64/memset.S On 18 sep 2013, at 20:28, Edd Barrett wrote: > On Wed, Sep 18, 2013 at 07:08:31PM +0100, Edd Barrett wrote: >> In short, each experiment warms up by setting and checking a load of buffers >> before setting as many buffe

Re: memset.S for amd64

2013-09-18 Thread Nick Permyakov
On 18.09.2013 22:08, Edd Barrett wrote: Hi, A few weeks back (at a PyPy sprint) someone asked me why amd64/OpenBSD has no assembler implementation of memset(3). After asking on icb, there were a couple of theories: a) Perhaps the available assembler implementations of memset are slower t

memset.S for amd64

2013-09-18 Thread Edd Barrett
Hi, A few weeks back (at a PyPy sprint) someone asked me why amd64/OpenBSD has no assembler implementation of memset(3). After asking on icb, there were a couple of theories: a) Perhaps the available assembler implementations of memset are slower than our C one. b) Perhaps due to a), no-one

Re: memset.S for amd64

2013-09-18 Thread Edd Barrett
On Wed, Sep 18, 2013 at 07:08:31PM +0100, Edd Barrett wrote: > In short, each experiment warms up by setting and checking a load of buffers > before setting as many buffers as possible given a one minute timeframe. The > experiments were run with varying buffer sizes under both memset.S and > memse