From 111bf961e73352018a6500dd4658f5dd000bc7d8 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 9 Sep 2019 13:50:20 +0000 Subject: compiler-rt: use fp_t instead of long double, for consistency Most builtins accepting or returning long double use the fp_t typedef. Change the remaining few cases to do so. Differential Revision: https://reviews.llvm.org/D35034 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371400 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/addtf3.c | 2 +- lib/builtins/divtf3.c | 2 +- lib/builtins/extenddftf2.c | 2 +- lib/builtins/extendsftf2.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/builtins/addtf3.c b/lib/builtins/addtf3.c index ac9b0cd60..86e4f4cfc 100644 --- a/lib/builtins/addtf3.c +++ b/lib/builtins/addtf3.c @@ -16,7 +16,7 @@ #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT) #include "fp_add_impl.inc" -COMPILER_RT_ABI long double __addtf3(long double a, long double b) { +COMPILER_RT_ABI fp_t __addtf3(fp_t a, fp_t b) { return __addXf3__(a, b); } diff --git a/lib/builtins/divtf3.c b/lib/builtins/divtf3.c index 6e61d2e31..ce462d4d4 100644 --- a/lib/builtins/divtf3.c +++ b/lib/builtins/divtf3.c @@ -213,7 +213,7 @@ COMPILER_RT_ABI fp_t __divtf3(fp_t a, fp_t b) { // Round. absResult += round; // Insert the sign and return. - const long double result = fromRep(absResult | quotientSign); + const fp_t result = fromRep(absResult | quotientSign); return result; } } diff --git a/lib/builtins/extenddftf2.c b/lib/builtins/extenddftf2.c index 849a39da1..ddf470ecd 100644 --- a/lib/builtins/extenddftf2.c +++ b/lib/builtins/extenddftf2.c @@ -14,7 +14,7 @@ #define DST_QUAD #include "fp_extend_impl.inc" -COMPILER_RT_ABI long double __extenddftf2(double a) { +COMPILER_RT_ABI fp_t __extenddftf2(double a) { return __extendXfYf2__(a); } diff --git a/lib/builtins/extendsftf2.c b/lib/builtins/extendsftf2.c index c6368406d..cf1fd2fac 100644 --- a/lib/builtins/extendsftf2.c +++ b/lib/builtins/extendsftf2.c @@ -14,7 +14,7 @@ #define DST_QUAD #include "fp_extend_impl.inc" -COMPILER_RT_ABI long double __extendsftf2(float a) { +COMPILER_RT_ABI fp_t __extendsftf2(float a) { return __extendXfYf2__(a); } -- cgit v1.2.1