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 FSINCOS: Fix register address which writes...
details: https://anonhg.NetBSD.org/src/rev/bca8c9a6f160
branches: trunk
changeset: 820935:bca8c9a6f160
user: isaki <isaki%NetBSD.org@localhost>
date: Mon Jan 16 12:05:40 2017 +0000
description:
FSINCOS: Fix register address which writes cosine value back.
diffstat:
sys/arch/m68k/fpe/fpu_trig.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ea701c0a21cd -r bca8c9a6f160 sys/arch/m68k/fpe/fpu_trig.c
--- a/sys/arch/m68k/fpe/fpu_trig.c Mon Jan 16 10:15:42 2017 +0000
+++ b/sys/arch/m68k/fpe/fpu_trig.c Mon Jan 16 12:05:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_trig.c,v 1.17 2016/08/06 00:58:55 isaki Exp $ */
+/* $NetBSD: fpu_trig.c,v 1.18 2017/01/16 12:05:40 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.17 2016/08/06 00:58:55 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.18 2017/01/16 12:05:40 isaki Exp $");
#include "fpu_emulate.h"
@@ -438,7 +438,7 @@
__fpu_sincos_cordic(fe, &fe->fe_f2);
/* cos(x) */
- fpu_implode(fe, &fe->fe_f2, FTYPE_EXT, &fe->fe_fpframe->fpf_regs[regc]);
+ fpu_implode(fe, &fe->fe_f2, FTYPE_EXT, &fe->fe_fpframe->fpf_regs[regc * 3]);
/* sin(x) */
return &fe->fe_f1;
Home |
Main Index |
Thread Index |
Old Index