llvm/llvm-project

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

Open

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

在 GitHub 查看
 (16 评论) (0 反应) (3 负责人)C++ (10,782 fork)batch import
good first issuelibc

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 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.

贡献者指南