[llvm] [libc] [libc][math] Implement nan(f|l) functions (PR #76690)

Nishant Mittal via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 02:17:42 PST 2024


================
@@ -1055,6 +1056,27 @@ hexadecimal_string_to_float(const char *__restrict src,
   return output;
 }
 
+LIBC_INLINE uint64_t
+nan_mantissa_from_ncharseq(const cpp::string_view ncharseq) {
+  uint64_t nan_mantissa = 0;
+
+  if (ncharseq.data() != nullptr && isdigit(*ncharseq.data())) {
----------------
nishantwrp wrote:

done

https://github.com/llvm/llvm-project/pull/76690


More information about the llvm-commits mailing list