Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/vax/gen Add modff



details:   https://anonhg.NetBSD.org/src/rev/20e35597476e
branches:  trunk
changeset: 533179:20e35597476e
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jun 23 21:48:52 2002 +0000

description:
Add modff

diffstat:

 lib/libc/arch/vax/gen/modf.S |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r f52079f47624 -r 20e35597476e lib/libc/arch/vax/gen/modf.S
--- a/lib/libc/arch/vax/gen/modf.S      Sun Jun 23 21:32:01 2002 +0000
+++ b/lib/libc/arch/vax/gen/modf.S      Sun Jun 23 21:48:52 2002 +0000
@@ -33,7 +33,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)modf.s   8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: modf.S,v 1.2 2002/02/24 01:06:19 matt Exp $"
+       .asciz "$NetBSD: modf.S,v 1.3 2002/06/23 21:48:52 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -54,3 +54,12 @@
 1:
        subd3   %r0,4(%ap),*12(%ap)
        ret
+
+ENTRY(modff, 0)
+       emodf   4(%ap),$0,$0f1.0,%r2,%r0
+       jvs     1f                      # integer overflow
+       cvtlf   %r2,*8(%ap)
+       ret
+1:
+       subf3   %r0,4(%ap),*8(%ap)
+       ret



Home | Main Index | Thread Index | Old Index