diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-15 20:50:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-15 20:50:50 +0200 |
| commit | aa978addb3cffceb6f1020787369d07f65cf15b7 (patch) | |
| tree | 6998fc1c718ed3ceb9d7e427d0f194c0386a4ce2 /compiler/rustc_save_analysis/src | |
| parent | 224afadb3bb746cd3a9f70047825481a5bf9c655 (diff) | |
| parent | 7a35c0f52d2a37d3ce10772b07d7a45a445ebbf0 (diff) | |
| download | rust-aa978addb3cffceb6f1020787369d07f65cf15b7.tar.gz rust-aa978addb3cffceb6f1020787369d07f65cf15b7.zip | |
Rollup merge of #96040 - m-ou-se:futex-u32, r=Amanieu
Use u32 instead of i32 for futexes. This changes futexes from i32 to u32. The [Linux man page](https://man7.org/linux/man-pages/man2/futex.2.html) uses `uint32_t` for them, so I'm not sure why I used i32 for them. Maybe because I first used them for thread parkers, where I used -1, 0, and 1 as the states. (Wasm's `memory.atomic.wait32` does use `i32`, because wasm doesn't support `u32`.) It doesn't matter much, but using the unsigned type probably results in fewer surprises when shifting bits around or using comparison operators. r? ```@Amanieu```
Diffstat (limited to 'compiler/rustc_save_analysis/src')
0 files changed, 0 insertions, 0 deletions
