[libc-commits] [libc] [libc] Fix implicit conversion in FEnvImpl for arm32 targets. (PR #79210)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 23 13:07:36 PST 2024
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/79210
None
>From 084d701a25059ec4c39c35a3586f94a60affbab7 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Tue, 23 Jan 2024 16:06:25 -0500
Subject: [PATCH] [libc] Fix implicit conversion in FEnvImpl for arm32 targets.
---
libc/src/__support/FPUtil/arm/FEnvImpl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/src/__support/FPUtil/arm/FEnvImpl.h b/libc/src/__support/FPUtil/arm/FEnvImpl.h
index 1a89de50b6b6048..ac4673cf20f6323 100644
--- a/libc/src/__support/FPUtil/arm/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/arm/FEnvImpl.h
@@ -135,8 +135,8 @@ LIBC_INLINE int set_except(int excepts) {
LIBC_INLINE int raise_except(int excepts) {
float zero = 0.0f;
float one = 1.0f;
- float large_value = FPBits<float>::max_normal();
- float small_value = FPBits<float>::min_normal();
+ float large_value = FPBits<float>::max_normal().get_val();
+ float small_value = FPBits<float>::min_normal().get_val();
auto divfunc = [](float a, float b) {
__asm__ __volatile__("flds s0, %0\n\t"
"flds s1, %1\n\t"
More information about the libc-commits
mailing list