llvm/llvm-project
[libc][math] Add missing isnan variants for float16, bfloat16, and float128
開放
#195,400 建立於 2026年5月2日
good first issuelibc
倉庫指標
- 星標
- (26,378 顆星)
- 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.