File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ main() {
47
47
echo ' derive_more = "0.99"' >> $td /Cargo.toml
48
48
fi
49
49
if [[ " $options " == * " --atomics" * ]]; then
50
- echo ' portable-atomic = { version = "0.3.15 ", default-features = false }' >> $td /Cargo.toml
50
+ echo ' portable-atomic = { version = "0.3.16 ", default-features = false }' >> $td /Cargo.toml
51
51
fi
52
52
echo ' [profile.dev]' >> $td /Cargo.toml
53
53
echo ' incremental = false' >> $td /Cargo.toml
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::process::{Command, Output};
8
8
const CRATES_ALL : & [ & str ] = & [ "critical-section = \" 1.0\" " , "vcell = \" 0.1.2\" " ] ;
9
9
const CRATES_MSP430 : & [ & str ] = & [ "msp430 = \" 0.4.0\" " , "msp430-rt = \" 0.4.0\" " ] ;
10
10
const CRATES_ATOMICS : & [ & str ] =
11
- & [ "portable-atomic = { version = \" 0.3.15 \" , default-features = false }" ] ;
11
+ & [ "portable-atomic = { version = \" 0.3.16 \" , default-features = false }" ] ;
12
12
const CRATES_CORTEX_M : & [ & str ] = & [ "cortex-m = \" 0.7.6\" " , "cortex-m-rt = \" 0.6.13\" " ] ;
13
13
const CRATES_RISCV : & [ & str ] = & [ "riscv = \" 0.9.0\" " , "riscv-rt = \" 0.9.0\" " ] ;
14
14
const CRATES_XTENSALX : & [ & str ] = & [ "xtensa-lx-rt = \" 0.9.0\" " , "xtensa-lx = \" 0.6.0\" " ] ;
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ mod atomic {
11
11
( $U: ty, $Atomic: ty) => {
12
12
impl AtomicOperations for $U {
13
13
unsafe fn atomic_or( ptr: * mut Self , val: Self ) {
14
- ( * ( ptr as * const $Atomic) ) . fetch_or ( val, Ordering :: SeqCst ) ;
14
+ ( * ( ptr as * const $Atomic) ) . or ( val, Ordering :: SeqCst ) ;
15
15
}
16
16
17
17
unsafe fn atomic_and( ptr: * mut Self , val: Self ) {
18
- ( * ( ptr as * const $Atomic) ) . fetch_and ( val, Ordering :: SeqCst ) ;
18
+ ( * ( ptr as * const $Atomic) ) . and ( val, Ordering :: SeqCst ) ;
19
19
}
20
20
21
21
unsafe fn atomic_xor( ptr: * mut Self , val: Self ) {
22
- ( * ( ptr as * const $Atomic) ) . fetch_xor ( val, Ordering :: SeqCst ) ;
22
+ ( * ( ptr as * const $Atomic) ) . xor ( val, Ordering :: SeqCst ) ;
23
23
}
24
24
}
25
25
} ;
Original file line number Diff line number Diff line change 492
492
//! concurrently called on different bits in the same register without data races. This flag won't
493
493
//! work for RISCV chips without the atomic extension.
494
494
//!
495
- //! `portable-atomic` v0.3.15 must be added to the dependencies, with default features off to
495
+ //! `portable-atomic` v0.3.16 must be added to the dependencies, with default features off to
496
496
//! disable the `fallback` feature.
497
497
//!
498
498
//! Usage examples:
You can’t perform that action at this time.
0 commit comments