Closed tkaitchuck closed 2 years ago
Do you know which cfg is used to detect if it is available for a particular target?
The only way I am aware of is by using target_arch = "arm"
. I don't know if there is a list somewhere of which architectures have which features.
FYI:
These four lines: 1, 2, 3, 4 fail to compile on ARM because on ARM the
AtomicUsize
lacks acompare_exchange
method. It may be possible to work around this with aload
and astore
and a loop.