fn atomic_cmpxchg_u32(ptr: *mut u32, expected: u32, desired: u32) -> u32
Performs the atomic cmpxchg u32 operation.