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 Provide cbrtl() and cbrtf() for vax
details: https://anonhg.NetBSD.org/src/rev/33d1dac21540
branches: trunk
changeset: 791590:33d1dac21540
user: martin <martin%NetBSD.org@localhost>
date: Sun Nov 24 15:12:10 2013 +0000
description:
Provide cbrtl() and cbrtf() for vax
diffstat:
lib/libm/arch/vax/n_cbrt.S | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r ad21a667bbbb -r 33d1dac21540 lib/libm/arch/vax/n_cbrt.S
--- a/lib/libm/arch/vax/n_cbrt.S Sun Nov 24 14:49:00 2013 +0000
+++ b/lib/libm/arch/vax/n_cbrt.S Sun Nov 24 15:12:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_cbrt.S,v 1.6 2003/08/07 16:44:45 agc Exp $ */
+/* $NetBSD: n_cbrt.S,v 1.7 2013/11/24 15:12:10 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -40,6 +40,16 @@
* Max error less than 0.667 ulps (unit in the last places)
*/
+ENTRY(cbrtf, 0)
+ cvtfd 4(%ap),-(%sp)
+ calls $2,_C_LABEL(cbrt)
+ cvtdf %r0,%r0
+ ret
+
+#ifdef WEAK_ALIAS
+WEAK_ALIAS(cbrtl, cbrt)
+#endif
+
ALTENTRY(cbrt)
ENTRY(d_cbrt, 0x00c0) # save %r6 & %r7
movq 4(%ap),%r0 # %r0 = argument x
Home |
Main Index |
Thread Index |
Old Index