Module Name:    src
Committed By:   riz
Date:           Mon Jun 11 18:03:42 UTC 2012

Modified Files:
        src/sys/arch/vax/include [netbsd-6]: asm.h

Log Message:
Pull up following revision(s) (requested by abs in ticket #298):
        sys/arch/vax/include/asm.h: revision 1.26
Really fix polyf/polyd macros. Now returns expected results.


To generate a diff of this commit:
cvs rdiff -u -r1.24.8.1 -r1.24.8.2 src/sys/arch/vax/include/asm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/include/asm.h
diff -u src/sys/arch/vax/include/asm.h:1.24.8.1 src/sys/arch/vax/include/asm.h:1.24.8.2
--- src/sys/arch/vax/include/asm.h:1.24.8.1	Mon Jun 11 17:50:10 2012
+++ src/sys/arch/vax/include/asm.h	Mon Jun 11 18:03:42 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.24.8.1 2012/06/11 17:50:10 riz Exp $ */
+/*	$NetBSD: asm.h,v 1.24.8.2 2012/06/11 18:03:42 riz Exp $ */
 /*
  * Copyright (c) 1982, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -110,11 +110,9 @@
 	movzwl	\degree, %r2
 	movab	\tbladdr, %r3
 
-	clrd	%r0
-	jr	2f
+	movf	(%r3)+, %r0
 1:
 	mulf2	%r1, %r0		/* result *= arg */
-2:
 	addf2	(%r3)+, %r0		/* result += c[n] */
 	sobgtr	%r2, 1b
 	clrf	%r1			/* r1 is 0 on finish */
@@ -125,11 +123,9 @@
 	movzwl	\degree, %r2
 	movab	\tbladdr, %r3
 
-	clrd	%r0
-	jr	2f
+	movd	(%r3)+,	%r0
 1:
 	muld2	%r4, %r0		/* result *= arg */
-2:
 	addd2	(%r3)+, %r0		/* result += c[n] */
 	sobgtr	%r2, 1b
 	clrq	%r4			/* r4, r5 are 0 on finish */

Reply via email to