[libc-commits] [PATCH] D136495: [libc] add performance options for string to float

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Oct 24 09:35:31 PDT 2022


sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libc/src/__support/str_to_float.h:214
 
-  uint32_t exp2 = static_cast<uint32_t>(exp10_to_exp2(exp10)) + BITS_IN_MANTISSA +
+  uint32_t exp2 = static_cast<uint32_t>(exp10_to_exp2(exp10)) +
+                  BITS_IN_MANTISSA +
----------------
Why did this and the above changes, which look like just formatting changes, happen?


================
Comment at: libc/src/__support/str_to_float.h:610
 
+#ifndef LLVM_LIBC_DISABLE_SIMPLE_DECIMAL_CONVERSION
   simple_decimal_conversion<T>(numStart, outputMantissa, outputExp2);
----------------
Why should this be a conditional also?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136495/new/

https://reviews.llvm.org/D136495



More information about the libc-commits mailing list