llvm/llvm-project

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

Open

#195 400 ouverte le 2 mai 2026

Voir sur GitHub
 (16 commentaires) (0 réactions) (3 assignés)C++ (10 782 forks)batch import
good first issuelibc

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

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.

Guide contributeur