From owner-FreeBSD-users-jp@jp.freebsd.org  Fri Feb  4 01:15:58 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA46526;
	Fri, 4 Feb 2000 01:15:58 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from toyokawa.gcd.org (qmailr@toyokawa.gcd.org [210.161.209.178])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with SMTP id BAA46521
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 4 Feb 2000 01:15:55 +0900 (JST)
	(envelope-from hiroo@oikumene.gcd.org)
Received: (qmail 3667 invoked by uid 10); 4 Feb 2000 01:15:53 +0900
Received: (qmail 21465 invoked from network); 3 Feb 2000 16:14:02 -0000
Received: from chrysanthe.oikumene.gcd.org (HELO localhost) (192.168.0.12)
  by ns.oikumene.gcd.org with SMTP; 3 Feb 2000 16:14:02 -0000
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: <200002030432.NAA17556@pluto40.pluto.ai.kyutech.ac.jp>
References: <20000203005528B.hiroo@oikumene.gcd.org>
	<200002030432.NAA17556@pluto40.pluto.ai.kyutech.ac.jp>
X-Mailer: Mew version 1.94 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20000204011401Z.hiroo@oikumene.gcd.org>
Date: Fri, 04 Feb 2000 01:14:01 +0900
From: Hiroo ONO <hiroo@oikumene.gcd.org>
X-Dispatcher: imput version 990905(IM130)
Lines: 92
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: FreeBSD-users-jp 49594
Subject: [FreeBSD-users-jp 49594] Re: long double on FreeBSD
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: hiroo@oikumene.gcd.org

$B>.Ln42@8$G$9(B

From: matumoto@pluto.ai.kyutech.ac.jp (Ryuji Matsumoto)
Date: Thu, 3 Feb 2000 13:32:36 +0900 (JST)

> $B>>85!w85$N(BQ&A$B$r=q$$$??M$G$9!#(B($B;~4V$,$"$C$?$i2~D{$7$^$9(B(^^;;)

$B$I$&$b$"$j$,$H$&$4$6$$$^$9!#(B
$B<B$O!"85$N(B QandA $B$N0l$DA0$N$b$N$r(B update $B$9$k$N$KJ;$;$F!"$3$A$i$b=$@5(B
$B$9$kI,MW$,$J$$$+J9$$$F$_$h$&$H$$$&$3$H$@$C$?$j$7$^$9!#(B

> #include <math.h>

long double
test (long double); /* $B$rDI2C$7$F(B */

> long double test(long double t)
> {
>   return sinl(t);
> }

>    gcc -O -m486 -ffast-math -S tmp.c -o -
> 
> $B%3%^%s%I$G;n$7$?=j!"$I$N(Bgcc$B$G$b(BBuildin Function$B07$$$K$J$j!"%"%;%s%V%i(B
> $B>e$K(BFPU$B$NL?Na!V(Bfsin$B!W$,@8@.$5$l$^$7$?!#(B

$BF1$8FbMF$N%U%!%$%k$r:n$C$F;n$7$F8+$^$7$?$,!"(B

bash-2.03$ gcc -O -m486 -ffast-math -S fast.c -o -
	.file	"fast.c"
	.version	"01.01"
gcc2_compiled.:
.text
	.p2align 4
.globl test
	.type	 test,@function
test:
	pushl %ebp
	movl %esp,%ebp
	movl 16(%ebp),%eax
	movl 12(%ebp),%edx
	pushl %eax
	pushl %edx
	movl 8(%ebp),%eax
	pushl %eax
	call sinl
	movl %ebp,%esp
	popl %ebp
	ret
.Lfe1:
	.size	 test,.Lfe1-test
	.ident	"GCC: (GNU) 2.7.2.3"
bash-2.03$ 

$B$H$J$C$F$7$^$$$^$7$?!#$G!"(Bgcc $B$N(B info $B$rFI$s$G$_$?$H$3$m!"(B
 Info $B"*(B gcc $B"*(B Invoking GCC $B"*(B Submodel Options $B"*(B i386 Options $B$K!"(B
% $B<B:]$O!"(BOption Summary $B$N(B *Machine Dependent Options* $B$N9`$+$i$?$I$j(B
% $B$^$7$?$,!#(B

`-mno-fancy-math-387'
     Some 387 emulators do not support the `sin', `cos' and `sqrt'
     instructions for the 387.  Specify this option to avoid generating
     those instructions. This option is the default on FreeBSD.  As of
     revision 2.6.1, these instructions are not generated unless you
     also use the `-ffast-math' switch.

$B$H$$$&5-=R$r$_$D$1$^$7$?!#$b$7$d!"$H;W$C$F!"(Bno- $B$r<h$C$F$d$C$F$_$?=j!"(B

bash-2.03$ gcc -O -m486 -mfancy-math-387 -ffast-math -S fast.c -o -
	.file	"fast.c"
	.version	"01.01"
gcc2_compiled.:
.text
	.p2align 4
.globl test
	.type	 test,@function
test:
	pushl %ebp
	movl %esp,%ebp
	fldt 8(%ebp)
	fsin
	movl %ebp,%esp
	popl %ebp
	ret
.Lfe1:
	.size	 test,.Lfe1-test
	.ident	"GCC: (GNU) 2.7.2.3"
bash-2.03$ 

$B$H$J$j$^$7$?!#(B
----
Hiroo ONO
