[libc-commits] [libc] [llvm] [libc] Modify NaN/payload functions for emulated float128 type (#221574) (PR #221946)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 14 06:55:01 PDT 2026
================
@@ -1,19 +1,29 @@
-//===-- Unittests for nanf128 ---------------------------------------------===//
+//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
+///
+/// \file
+/// \brief Unittests for nanf128.
+///
+//===----------------------------------------------------------------------===//
#include "hdr/signal_macros.h"
#include "src/__support/FPUtil/FPBits.h"
+#include "src/__support/FPUtil/float128.h"
#include "src/__support/uint128.h"
#include "src/math/nanf128.h"
#include "test/UnitTest/FEnvSafeTest.h"
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
+#ifndef LIBC_TYPES_HAS_NATIVE_FLOAT128
+using float128 = LIBC_NAMESPACE::fputil::Float128;
+#endif
----------------
Sukumarsawant wrote:
nit: ending guard comment
https://github.com/llvm/llvm-project/pull/221946
More information about the libc-commits
mailing list