llvm/llvm-project

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

Open

#195.400 geöffnet am 2. Mai 2026

Auf GitHub ansehen
 (16 Kommentare) (0 Reaktionen) (3 zugewiesene Personen)C++ (10.782 Forks)batch import
good first issuelibc

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide