llvm/llvm-project

[libc][math] Add missing isnan variants for float16, bfloat16, and float128

开放

#195,400 创建于 2026年5月2日

 (16 条评论) (0 个反应) (3 位负责人)C++ (10,782 个派生)batch import
good first issuelibc

仓库指标

星标
 (26,378 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The current implementations of isnan are limited to float, double, and long double. We should add support for the remaining types (float16, bfloat16, and float128).

Additionally, the existing implementations currently rely on __builtin_isnan. I think refactoring them to use fputil would be better, especially since issignaling already uses fputil.

贡献者指南