Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/fpe Support tan(-0.0).
details: https://anonhg.NetBSD.org/src/rev/0a698a90e732
branches: trunk
changeset: 786216:0a698a90e732
user: isaki <isaki%NetBSD.org@localhost>
date: Sat Apr 20 05:09:41 2013 +0000
description:
Support tan(-0.0).
diffstat:
sys/arch/m68k/fpe/fpu_trig.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 798a314564d4 -r 0a698a90e732 sys/arch/m68k/fpe/fpu_trig.c
--- a/sys/arch/m68k/fpe/fpu_trig.c Sat Apr 20 04:55:44 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_trig.c Sat Apr 20 05:09:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_trig.c,v 1.12 2013/04/19 13:57:52 isaki Exp $ */
+/* $NetBSD: fpu_trig.c,v 1.13 2013/04/20 05:09:41 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.12 2013/04/19 13:57:52 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.13 2013/04/20 05:09:41 isaki Exp $");
#include "fpu_emulate.h"
@@ -409,6 +409,10 @@
if (ISINF(&fe->fe_f2))
return fpu_newnan(fe);
+ /* if x is +0/-0, return +0/-0 */
+ if (ISZERO(&fe->fe_f2))
+ return &fe->fe_f2;
+
CPYFPN(&x, &fe->fe_f2);
/* sin(x) */
Home |
Main Index |
Thread Index |
Old Index