summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-04-21 23:02:24 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-04-21 23:02:24 +0000
commit7be25967adcf927ddeabd24f7ed618964adada32 (patch)
treebee1d4b430924be106bc2efbafbfcbc783c91ded
parentbeb83b36914cc0f0e35d386843e81ab3cb9b3b98 (diff)
alias and give frexpf symbol external linkage to scalbnf; this was
overriden by md source. spotted by kurt@ actually; on amd64 scalbnf, scalbn (and therefore now frexpf) have always been broken since second argument is not float. fix is under reviewal / will be committed separately ok kurt@, kettenis@, millert@. tested by kurt@
-rw-r--r--lib/libm/arch/amd64/s_scalbnf.S5
-rw-r--r--lib/libm/arch/i387/s_scalbnf.S5
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/libm/arch/amd64/s_scalbnf.S b/lib/libm/arch/amd64/s_scalbnf.S
index 99acc312715..c9b69622956 100644
--- a/lib/libm/arch/amd64/s_scalbnf.S
+++ b/lib/libm/arch/amd64/s_scalbnf.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_scalbnf.S,v 1.2 2005/08/02 11:17:31 espie Exp $ */
+/* $OpenBSD: s_scalbnf.S,v 1.3 2009/04/21 23:02:23 martynas Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -8,6 +8,9 @@
#include "abi.h"
+.global ldexpf
+ ldexpf = scalbnf
+
ENTRY(scalbnf)
XMM_TWO_ARG_FLOAT_PROLOGUE
fildl ARG_FLOAT_TWO
diff --git a/lib/libm/arch/i387/s_scalbnf.S b/lib/libm/arch/i387/s_scalbnf.S
index 484bb34467f..fe602460956 100644
--- a/lib/libm/arch/i387/s_scalbnf.S
+++ b/lib/libm/arch/i387/s_scalbnf.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_scalbnf.S,v 1.3 2005/08/02 11:17:31 espie Exp $ */
+/* $OpenBSD: s_scalbnf.S,v 1.4 2009/04/21 23:02:23 martynas Exp $ */
/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
@@ -6,6 +6,9 @@
#include <machine/asm.h>
+.global ldexpf
+ ldexpf = scalbnf
+
ENTRY(scalbnf)
fildl 8(%esp)
flds 4(%esp)