Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch/vax Add sinf/cosf.
details: https://anonhg.NetBSD.org/src/rev/9ba5c0a3139a
branches: trunk
changeset: 534063:9ba5c0a3139a
user: matt <matt%NetBSD.org@localhost>
date: Sun Jul 14 19:55:24 2002 +0000
description:
Add sinf/cosf.
diffstat:
lib/libm/arch/vax/n_sincos.S | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r d43e07853ee6 -r 9ba5c0a3139a lib/libm/arch/vax/n_sincos.S
--- a/lib/libm/arch/vax/n_sincos.S Sun Jul 14 19:42:58 2002 +0000
+++ b/lib/libm/arch/vax/n_sincos.S Sun Jul 14 19:55:24 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_sincos.S,v 1.5 2002/02/24 01:06:21 matt Exp $ */
+/* $NetBSD: n_sincos.S,v 1.6 2002/07/14 19:55:24 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -50,6 +50,12 @@
*/
#include <machine/asm.h>
+ENTRY(sinf, 0)
+ cvtfd 4(%ap),-(sp)
+ calls $2,sin
+ cvtdf r0,r0
+ ret
+
ENTRY(sin, 0xfc0)
movq 4(%ap),%r0
bicw3 $0x807f,%r0,%r2
@@ -79,6 +85,12 @@
* S. McDonald, April 4, 1985
*/
+ENTRY(cosf, 0)
+ cvtfd 4(%ap),-(sp)
+ calls $2,cos
+ cvtdf r0,r0
+ ret
+
ENTRY(cos, 0x0fc0)
movq 4(%ap),%r0
bicw3 $0x7f,%r0,%r2
Home |
Main Index |
Thread Index |
Old Index