[libc-commits] [libc] [llvm] [libc] Add is_fixed_point type trait. (PR #81263)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 13 17:38:08 PST 2024


================
@@ -0,0 +1,329 @@
+//===-- Definitions from stdfix.h -----------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __LLVM_LIBC_MACROS_STDFIX_MACROS_H
+#define __LLVM_LIBC_MACROS_STDFIX_MACROS_H
+
+#ifdef __clang__
+#if (!defined(__cplusplus) || (__clang_major__ >= 18))
+// _Fract and _Accum types are avaiable
----------------
lntue wrote:

Done.

https://github.com/llvm/llvm-project/pull/81263


More information about the libc-commits mailing list