[libc-commits] [libc] [llvm] [libc][math] Implement isnanf16 header-only function (PR #198115)

Aayush Shrivastava via libc-commits libc-commits at lists.llvm.org
Sat May 23 02:42:07 PDT 2026


================
@@ -0,0 +1,56 @@
+//===-- Utility class to test different flavors of isnan --------*- C++ -*-===//
+//
+// 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_TEST_SRC_MATH_SMOKE_ISNANTEST_H
+#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_ISNANTEST_H
+
+#include "test/UnitTest/FEnvSafeTest.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/Test.h"
+
+template <typename T>
+class IsNanTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
+
+  DECLARE_SPECIAL_CONSTANTS(T)
+
+public:
+using IsNanFunc = int (*)(T);
----------------
iamaayushrivastava wrote:

Hi @Sukumarsawant, thank you for the feedback. I’ve made the required changes accordingly.

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


More information about the libc-commits mailing list