mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 11:37:39 +00:00
6 lines
121 B
Rust
6 lines
121 B
Rust
![]() |
pub fn pr32379(mut data: u64, f1: bool, f2: bool) -> u64 {
|
||
|
if f1 { data &= !2; }
|
||
|
if f2 { data |= 2; }
|
||
|
data
|
||
|
}
|