[libc-commits] [libc] [libc][stdlib] Remove LIBC_THREAD_LOCAL from rand_next (PR #96245)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Jun 25 15:58:14 PDT 2024


jhuber6 wrote:

I feel like updating this with a CAS loop is a good middle-ground https://github.com/llvm/llvm-project/pull/96692. This also lets the GPU implementation actually work, since previously I couldn't statically initialize it to 1. Though, it's not like CAS loops are cheap, but I didn't want to use actual locks since they're a PITA to make work on the GPU (see the RPC implementation).

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


More information about the libc-commits mailing list