Page MenuHomeFreeBSD

atomic_* test, builds and links fine on i386

Authored By
mmokhi
Oct 14 2018, 2:03 PM
Size
552 B
Referenced Files
None
Subscribers
None

atomic_* test, builds and links fine on i386

#include <stdint.h>
#include <stdatomic.h>
int main (int argc, char **argv)
{
uint64_t ull1 = 1, ull2 = 0, ull3 = 2;
__atomic_load_n(&ull1, __ATOMIC_SEQ_CST);
__atomic_compare_exchange(&ull1, &ull2, &ull3, 1, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
__atomic_fetch_add(&ull1, 1, __ATOMIC_SEQ_CST);
__atomic_fetch_sub(&ull1, 1, __ATOMIC_SEQ_CST);
__atomic_or_fetch(&ull1, ull2, __ATOMIC_SEQ_CST);
__atomic_and_fetch(&ull1, ull2, __ATOMIC_SEQ_CST);
return 0;
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1599840
Default Alt Text
atomic_* test, builds and links fine on i386 (552 B)

Event Timeline