[libcxx-commits] [clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 23 06:11:58 PDT 2026


gonzalobg wrote:

How would we use this intrinsic to implement a compare and exchange loop for `atomic_ref`? 

For the compare to succeed, the values of the padding bytes of the `expected` value passed in would need to match the values of that padding bytes in memory, which may not be zero.

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


More information about the libcxx-commits mailing list