[libc-commits] [libc] [llvm] [libc] Move printf long double to simple calc (PR #75414)

via libc-commits libc-commits at lists.llvm.org
Thu Jan 11 08:43:01 PST 2024


================
@@ -152,15 +157,17 @@ LIBC_INLINE constexpr uint32_t ceil_log10_pow2(const uint32_t e) {
   return log10_pow2(e) + 1;
 }
 
+LIBC_INLINE constexpr uint32_t div_ceil(const uint32_t num,
+                                        const uint32_t denom) {
+  return (num + (denom - 1)) / denom;
----------------
lntue wrote:

`const` quantifiers in the function signatures don't do anything with value types.  You should remove them to reduce confusion with the function signatures.  Same with the function below.

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


More information about the libc-commits mailing list