[libc-commits] [llvm] [libc] [libc][math] Implement nan(f|l) functions (PR #76690)
via libc-commits
libc-commits at lists.llvm.org
Thu Jan 4 06:44:52 PST 2024
================
@@ -1206,6 +1226,29 @@ LIBC_INLINE StrToNumResult<T> strtofloatingpoint(const char *__restrict src) {
return {T(result), index, error};
}
+template <class T> LIBC_INLINE StrToNumResult<T> strtonan(const char *arg) {
----------------
lntue wrote:
Nit: this is internal function, expand the function name to `str_to_nan` to make it a bit easier to read.
https://github.com/llvm/llvm-project/pull/76690
More information about the libc-commits
mailing list