[all-commits] [llvm/llvm-project] b66399: [libc] Add explicit constructor calls to fix compi...

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Tue May 16 09:00:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b663993067ffb5800632ad41ea7f2f92caab1093
      https://github.com/llvm/llvm-project/commit/b663993067ffb5800632ad41ea7f2f92caab1093
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M libc/src/__support/FPUtil/generic/sqrt.h
    M libc/src/__support/UInt.h
    M libc/src/__support/float_to_string.h
    M libc/src/__support/str_to_float.h
    M libc/src/stdio/printf_core/char_converter.h
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    M libc/src/stdio/printf_core/float_inf_nan_converter.h
    M libc/src/stdio/printf_core/int_converter.h

  Log Message:
  -----------
  [libc] Add explicit constructor calls to fix compilation when using UInt<T>

This patch is similar to 86fe88c8d9 and adds several explicit
constructor calls (bool(...), uint64_t(...), uint8_t(...)) that are
needed when we use UInt<T> (in my case UInt<128> in riscv32).

This patch also adds two operators to UInt<T>:
* operator/= required by printf_core/float_hex_converter.h:148
* operator-- required by FPUtil/ManipulationFunctions.h:166

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D149594




More information about the All-commits mailing list