[libc-commits] [libc] [libc] Fix forward octal prefix (PR #73526)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Mon Nov 27 07:18:45 PST 2023


https://github.com/gchatelet updated https://github.com/llvm/llvm-project/pull/73526

>From a78272f01c60635ee037176055788e88667f112d Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Mon, 27 Nov 2023 15:13:12 +0000
Subject: [PATCH 1/2] [libc] Fix forward octal prefix

---
 libc/src/__support/macros/properties/float.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h
index 3bfd04156893699..b1d40ff7237f876 100644
--- a/libc/src/__support/macros/properties/float.h
+++ b/libc/src/__support/macros/properties/float.h
@@ -37,7 +37,7 @@
 #endif
 #endif
 #if defined(LIBC_TARGET_ARCH_IS_AARCH64)
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 0900)) || \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 900)) || \
     (defined(LIBC_COMPILER_GCC_VER) && (LIBC_COMPILER_GCC_VER >= 1301))
 #define LIBC_COMPILER_HAS_C23_FLOAT16
 #endif
@@ -61,7 +61,7 @@ using float16 = _Float16;
      defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_C23_FLOAT128
 #endif
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 0500)) && \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) && \
     (defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
 #endif

>From a09085a935a58028b54e6725d5e8f73dbc402c24 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Mon, 27 Nov 2023 15:18:27 +0000
Subject: [PATCH 2/2] fix format

---
 libc/src/__support/macros/properties/float.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h
index b1d40ff7237f876..7e00ddc8f0cd327 100644
--- a/libc/src/__support/macros/properties/float.h
+++ b/libc/src/__support/macros/properties/float.h
@@ -37,7 +37,7 @@
 #endif
 #endif
 #if defined(LIBC_TARGET_ARCH_IS_AARCH64)
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 900)) || \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 900)) ||  \
     (defined(LIBC_COMPILER_GCC_VER) && (LIBC_COMPILER_GCC_VER >= 1301))
 #define LIBC_COMPILER_HAS_C23_FLOAT16
 #endif
@@ -61,7 +61,7 @@ using float16 = _Float16;
      defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_C23_FLOAT128
 #endif
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) && \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) &&  \
     (defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
 #endif



More information about the libc-commits mailing list