Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3872844
atomic_* test, builds and links fine on i386
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
mmokhi
Oct 14 2018, 2:03 PM
2018-10-14 14:03:09 (UTC+0)
Size
552 B
Referenced Files
None
Subscribers
None
atomic_* test, builds and links fine on i386
View Options
#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
Details
Attached
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)
Attached To
Mode
P228 atomic_* test, builds and links fine on i386
Attached
Detach File
Event Timeline
Log In to Comment