llvm/llvm-project

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

オープン

#195,400 opened on 2026/05/02

 (16 件のコメント) (0 件のリアクション) (3 人の担当者)C++ (10,782 件のフォーク)batch import
good first issuelibc

Repository metrics

Stars
 (26,378 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド