Skip site navigation (1)Skip section navigation (2)
Date:      03 Apr 1998 07:51:12 -0600
From:      Dave Marquardt <marquard@zilker.net>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: bcopy implementation
Message-ID:  <857m57c8tr.fsf@localhost.zilker.net>
In-Reply-To: "Muthu"'s message of "03 Apr 98 08:21:25 %2B0330"
References:  <199804030436.XAA04721@dwarpal.in.oracle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Muthu" <MOLAGAPP.IN.oracle.com.ofcmail@in.oracle.com> writes:
>    I took a look at bcopy implementation inside the kernel(FreeBSD 2.2.5). If 
> the number of bytes to copy is greater than 1024, it uses the floating point 
> unit implementation else generic bcopy.  
>  
>    This kind of implementation is not used in libc. Only generic bcopy is used 
> in all cases. On the assumption, that the system has pentium processor, the 
> bcopy implementation of libc can be changed to floating point implementation 
> as in kernel.  
>  
>    One reason of not changing implementation of bcopy in libc may be that 
> applications will run at different speed on different processor. On pentium it 
> will run faster and on 80386 it will run slow. Is there any other valid reason 
> of not implementing this method in libc? 

Well, you said it yourself.  "On the assumption, that the system has
pentium processor...."  Well, we can't assume that, since FreeBSD runs
on 386s and up.

-Dave

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?857m57c8tr.fsf>