[libc-commits] [PATCH] D140967: [libc] get_table_negative cannot be constexpr

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 5 06:31:46 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGabcdc26a81d1: [libc] get_table_negative cannot be constexpr (authored by gchatelet).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140967

Files:
  libc/src/__support/float_to_string.h


Index: libc/src/__support/float_to_string.h
===================================================================
--- libc/src/__support/float_to_string.h
+++ libc/src/__support/float_to_string.h
@@ -130,8 +130,8 @@
 // calculations.
 // The formula being used looks more like this:
 // floor(10^(9*(-i)) * 2^(c_0 + (-e))) % (10^9 * 2^c_0)
-constexpr inline cpp::UInt<MID_INT_SIZE>
-get_table_negative(int exponent, size_t i, const size_t constant) {
+inline cpp::UInt<MID_INT_SIZE> get_table_negative(int exponent, size_t i,
+                                                  const size_t constant) {
   constexpr size_t INT_SIZE = 1024;
   int shift_amount = constant - exponent;
   cpp::UInt<INT_SIZE> num(1);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140967.486550.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230105/4f0ee52f/attachment.bin>


More information about the libc-commits mailing list