From f151de983fbddb3f03159901963c29f64d1c139f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 5 Nov 2009 20:14:33 +0000 Subject: Provide assembly version of sqrtl(3). ok otto@ --- lib/libm/Makefile | 3 ++- lib/libm/arch/i387/e_sqrtl.S | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lib/libm/arch/i387/e_sqrtl.S (limited to 'lib') diff --git a/lib/libm/Makefile b/lib/libm/Makefile index 3e987580f9b..89ebcc67296 100644 --- a/lib/libm/Makefile +++ b/lib/libm/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.72 2009/10/26 21:06:19 kettenis Exp $ +# $OpenBSD: Makefile,v 1.73 2009/11/05 20:14:32 kettenis Exp $ # $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $ # # @(#)Makefile 5.1beta 93/09/24 @@ -26,6 +26,7 @@ ARCH_SRCS = s_copysign.S s_copysignf.S .PATH: ${.CURDIR}/arch/i387 ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ e_remainder.S e_remainderf.S e_scalb.S e_sqrt.S e_sqrtf.S \ + e_sqrtl.S \ invtrig.c \ s_atan.S s_atanf.S s_ceil.S s_ceilf.S s_copysign.S s_copysignf.S \ s_cos.S s_cosf.S s_floor.S s_floorf.S \ diff --git a/lib/libm/arch/i387/e_sqrtl.S b/lib/libm/arch/i387/e_sqrtl.S new file mode 100644 index 00000000000..d18d25f6dd6 --- /dev/null +++ b/lib/libm/arch/i387/e_sqrtl.S @@ -0,0 +1,12 @@ +/* $OpenBSD: e_sqrtl.S,v 1.1 2009/11/05 20:14:32 kettenis Exp $ */ +/* + * Written by J.T. Conklin . + * Public domain. + */ + +#include + +ENTRY(sqrtl) + fldt 4(%esp) + fsqrt + ret -- cgit v1.2.3