Module Name:    src
Committed By:   matt
Date:           Fri Jun  1 06:26:38 UTC 2012

Modified Files:
        src/sys/arch/vax/include: asm.h

Log Message:
Really fix polyf/polyd macros.  Now returns expected results.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 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.25 src/sys/arch/vax/include/asm.h:1.26
--- src/sys/arch/vax/include/asm.h:1.25	Tue May 29 17:25:38 2012
+++ src/sys/arch/vax/include/asm.h	Fri Jun  1 06:26:38 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.25 2012/05/29 17:25:38 matt Exp $ */
+/*	$NetBSD: asm.h,v 1.26 2012/06/01 06:26:38 matt 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