<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55491>55491</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Bug in C++ standard library header <bit>
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Delta-dev-99
      </td>
    </tr>
</table>

<pre>
    https://github.com/llvm/llvm-project/blob/b3077f563d9f15aaf1868e54c91a82e2aab666a3/libcxx/include/bit#L161
The rotation direction there seems wrong
Left rotation makes sense, because it moves the most-significant-bits block (of same size as unsigned long long) to the least significant positions (it wraps around), where you can apply the usual function to that fragment of the value, by interpreting it as unsigned long long.

I would have fixed the issue myself (I would love to be included in the list of contributors) but I found the process to be too complicated.
The change is merely one character. Why not accept pull requests for this kind of changes?
So, I decided to at least open an issue so you can fix it.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU02PmzAQ_TXkMkpEcMjCgcN-dKWV9tZKPQ_2OLhrMPVHsumv7xiy3R56qYRgwDPvvXkz9E5duyHGORTivqie-TqZOKR-J93IL9aePx7b2bsfJCO_9tb1-SHKuztdH4Vq9b5G1Pvm2FB9kO0em4oqxP54PKLIAKaX7-8cmEnapChXG4YSr_vjviifivL-20DgXcRo3ATKeKbKURzIEwSiMcDFu-m0Zr-Sjp_pI75R4KQpMPIj9CQxBQITYXRnPmEQjkLcBnOajDYSp7hlAQG4FfkGRdU4DQFHZjK_CDBAmnIuKbDMudyKqoXoFixLGCL8BQazCyZLCRmLeS8e5wDoXZoUF2ZVl6WTq0vAFYDzbK8LWAoJLeg03RrOFBhBezyNxNCsLKed0aa1uyuYKZKfPUXD2pjtn3p3q1Pr_QUuLlkFA54JtHnnxAxqQkhszTWQ1Vn5R5pl27KSnlPWiSkO1t5NWDRJN0Vv-hSdD9kajuAFdG54yeN1kRTCDSU6xxXjbNmuSGr3OXM54HTKSmBkf9gTNy0fPUpucgffhytMjnuUkmY2OlkLnn4mCjw-7TyTce2bYdqsakHjbX5eGb66bNkLKJImN8Fq2Nt1fm4mnsN0MyG4P7Nhf9jVm8aN6njBRYubaKKl7iGdshWPRfXAF4SIk0LPlpneo7_CQKjIQyEe84aLL5vk7f__Yosm9vW5rg_tfjN0iK2UlVRNpQhRil7LVhzKUh-a_lCLemOxJxu6on4o6qeN6aqyqsp6X1eCI7HbK9E2tdCl0KJXjS4OJY1o7C4T75w_bXy3aOjTKfBhHnP4PMSwrBd94GOKg_PdE9mIW0XnbdtuFs3dIvg3f-Z3uw">