From owner-FreeBSD-tech-jp@jp.freebsd.org  Fri Jun 15 02:01:36 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id CAA87574;
	Fri, 15 Jun 2001 02:01:36 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from ns.kobe1995.net (kaz@211.12.126.15.user.dt.il24.net [211.12.126.15])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id CAA87569
	for <FreeBSD-tech-jp@jp.freebsd.org>; Fri, 15 Jun 2001 02:01:35 +0900 (JST)
	(envelope-from kaz@kobe1995.net)
Received: (from kaz@localhost)
	by ns.kobe1995.net (8.8.8/3.7W-primary) id CAA18625;
	Fri, 15 Jun 2001 02:01:33 +0900 (JST)
Date: Fri, 15 Jun 2001 02:01:33 +0900 (JST)
Message-Id: <200106141701.CAA18625@ns.kobe1995.net>
To: FreeBSD-tech-jp@jp.freebsd.org
In-Reply-To: Your message of "Fri, 15 Jun 2001 01:02:26 +0900 (JST)".
	<20010615.010226.106298484.nin@smtp.shikoku.ne.jp>
From: kaz@kobe1995.net (NAKAMURA Kazushi)
X-Mailer: mnews [version 1.22] 1999-12/19(Sun)
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-tech-jp 3099
Subject: [FreeBSD-tech-jp 3099] Re: support Pentium3 SSE
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: kaz@kobe1995.net

In article <20010615.010226.106298484.nin@smtp.shikoku.ne.jp>
nin@shikoku.ne.jp writes:
>$B$?$7$+K\2H$N(B ML $B$OL>A0$N0z$1$k(B MTA $B$+$i=P$5$l$?%a!<%k$7$+<u$1IU$1$F(B
>$B$/$l$J$+$C$?$H;W$$$^$9!#(B

>ns.kobe1995.net $B$O%0%m!<%P%k%"%I%l%9$G$9$h$M$C!"$=$C$A$+$i=P$5$l$l$P(B
>$B$$$+$,$G$7$g$&$+(B?
  $B$*$*!"$J$k$[$I!#$H$$$&$o$1$G(Bns.kobe1995.net$B$+$iAw$C$F$_$?$1$I(B
$B$=$l$G$bBLL\$G$9!#$R$g$C$H$7$F5U0z$-$b0lCW$7$J$$$HBLL\$J$N$+!)(B
$B$=$l$@$H%&%A$+$i$OAw$l$J$$$J$"!#$I$J$?$+!"0J2<$N%a%C%;!<%8$r(B
current$B$KE>Aw$7$F$$$?$@$1$J$$$G$7$g$&$+!#(B

---BEGIN---
Date: Thu, 14 Jun 2001 04:20:46 +0900 (JST)
Message-Id: <200106131920.EAA15922@ns.kobe1995.net>
To: freebsd-current@FreeBSD.org
Subject: support Pentium3 SSE
From: kaz@kobe1995.net (NAKAMURA Kazushi)

  Hello! Don't lose to Linux2.4.x!
I use FreeBSD as graphic workstation. I made a patch for support
Pentium3's SSE extension. The PR# is kern/28070 .

http://www.freebsd.org/cgi/query-pr.cgi?pr=28070

  And there are WWW page about SSE on FreeBSD environment.

#(poor) english
http://kobe1995.net/~kaz/FreeBSD/SSE.en.html
#(native) japanese
http://kobe1995.net/~kaz/FreeBSD/SSE.html
#test code
http://kobe1995.net/~kaz/FreeBSD/loop.C.gz

  MMX instructions can be used without any difficult. But SSE
instructions are needs kernel support. I tested only single
cuppermine celeron. Please test Pentium3/4 or SMP environment.
I afraid that it does NOT work in SMP environment, because the
access of (static) svxmm may conflicts. Allocate in stack,
insted static, is difficult to align 16 Byte boundary.
#Most SSE instructions are needs 16Byte alignment.
Any good idea?

  SSE instructions are effective to audio or visual applications.
For example, MP3 encoding by celeron/667@750MHz:
#without SSE(may be using MMX)
% gogo -lang eng -nopsy -test -off sse
GOGO-no-coda ver. 2.39  (Jun  8 2001)
Copyright (C) 1999, 2000 PEN@MarineCat and shigeo
    Special thanks to Keiichi SAKAI, URURI, Noisyu and Kei
test time 600sec
 *** at bench in the early afternoon [benchmark mode] ***
MPEG 1, layer 3 j-stereo
inp sampling-freq=44.1kHz out sampling-freq=44.1kHz bitrate=128kbps
input  file `stdin'
output file `default.mp3'
{  22968/  22968} 100.0% (  16.93x)  re:[00:00:00.00] to:[00:00:35.43]
End of encoding
time=  35.433sec ( 16.93x)
       ^^^^^^
#with SSE
% gogo -lang eng -nopsy -test 
GOGO-no-coda ver. 2.39  (Jun  8 2001)
Copyright (C) 1999, 2000 PEN@MarineCat and shigeo
    Special thanks to Keiichi SAKAI, URURI, Noisyu and Kei
test time 600sec
 *** at bench in the early afternoon [benchmark mode] ***
MPEG 1, layer 3 j-stereo
inp sampling-freq=44.1kHz out sampling-freq=44.1kHz bitrate=128kbps
input  file `stdin'
output file `default.mp3'
{  22968/  22968} 100.0% (  35.58x)  re:[00:00:00.00] to:[00:00:16.86]
End of encoding
time=  16.852sec ( 35.60x)
       ^^^^^^
  Thank you!
---END---
-- 
$BCfB<OB;V!w?@8M(B		<mailto:kaz@kobe1995.net>
NAKAMURA Kazushi@KOBE	<http://kobe1995.net/>
