summaryrefslogtreecommitdiff
path: root/lib/libm/arch
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-06-11 14:50:07 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-06-11 14:50:07 +0000
commit855ad27fad0df12cf14b93cf23b8b9a05910bebb (patch)
tree6676cb331968b6bbb7425c397ca6c21911e1d760 /lib/libm/arch
parent25f2030c2e137bc470696eb8ea9b7bcdcb79495f (diff)
drem{,f} are aliases for remainder{,f}, so:
- document and mlink drem{,f} - drem->remainder on noieee, and make drem an alias - finite returns integer, n_support.c - general n_support.c ansification and cleanup - drem is now an ALTENTRY for remainder, in n_support.S help with man page from jmc@ and millert@ ok millert@
Diffstat (limited to 'lib/libm/arch')
-rw-r--r--lib/libm/arch/vax/n_support.S11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libm/arch/vax/n_support.S b/lib/libm/arch/vax/n_support.S
index 30706c4f271..6cb77266f86 100644
--- a/lib/libm/arch/vax/n_support.S
+++ b/lib/libm/arch/vax/n_support.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_support.S,v 1.7 2008/05/21 20:37:10 miod Exp $ */
+/* $OpenBSD: n_support.S,v 1.8 2008/06/11 14:50:06 martynas Exp $ */
/* $NetBSD: n_support.S,v 1.1 1995/10/10 23:40:30 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -39,7 +39,7 @@
* logb(x),
* scalbn(x,N),
* finite(x),
- * drem(x,y),
+ * remainder(x,y),
* Coded in vax assembly language by K.C. Ng, 3/14/85.
* Revised by K.C. Ng on 4/9/85.
*/
@@ -119,13 +119,16 @@ unfl: movq $0,r0
ret1: ret
/*
- * DREM(X,Y)
+ * REMAINDER(X,Y)
* RETURN X REM Y =X-N*Y, N=[X/Y] ROUNDED (ROUNDED TO EVEN IN THE HALF WAY CASE)
* DOUBLE PRECISION (VAX D format 56 bits)
* CODED IN VAX ASSEMBLY LANGUAGE BY K.C. NG, 4/8/85.
*/
-ENTRY(drem, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
+ .globl drem
+ drem = remainder
+
+ENTRY(remainder, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
subl2 $12,sp
movq 4(ap),r0 #r0=x
movq 12(ap),r2 #r2=y