[libc-commits] [libc] [llvm] [libc][math] Implement nan(f|l) functions (PR #76690)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 2 15:26:38 PST 2024
https://github.com/michaelrj-google requested changes to this pull request.
The standard says that the implementation should be like passing "NAN(n-character-sequence)" to string to float, but actually generating the string to pass to string to float is not an efficient design. I'd recommend you look at `str_to_float.h` lines 1141-1169 to see how the n-character-sequence is currently parsed, then try to refactor that code into something that can be reused for these new functions.
https://github.com/llvm/llvm-project/pull/76690
More information about the libc-commits
mailing list