[all-commits] [llvm/llvm-project] 45500f: [libc++] Fix the signature of std::rotl and std::rotr

Daniil via All-commits all-commits at lists.llvm.org
Sat Aug 12 08:46:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45500fa08acdf3849de9de470cdee5f4c8ee2f32
      https://github.com/llvm/llvm-project/commit/45500fa08acdf3849de9de470cdee5f4c8ee2f32
  Author: Daniil Kalinin <kalinin.de at phystech.edu>
  Date:   2023-08-12 (Sat, 12 Aug 2023)

  Changed paths:
    M libcxx/include/__bit/rotate.h
    M libcxx/include/bit
    M libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp
    M libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp
    M libcxx/utils/data/ignore_format.txt

  Log Message:
  -----------
  [libc++] Fix the signature of std::rotl and std::rotr

- Changed parameters type in `std::rotr` and `std::rorl` functions from `unsigned int` to `int`.
- Implemented behaviour for negative parameter values.

Fixes #64544

Reviewed By: #libc, philnik

Spies: arichardson, philnik, libcxx-commits

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




More information about the All-commits mailing list