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/db54c3cf2387
branches: trunk
changeset: 350684:db54c3cf2387
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 c909614c2aab -r db54c3cf2387 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