-
-
Save AeroNotix/31897c8714e53777c29e9713376fda8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <immintrin.h> | |
#include "stdio.h" | |
void main(void) { | |
unsigned transaction_started = _xbegin(); | |
if (transaction_started == _XBEGIN_STARTED) { | |
puts("started"); | |
_xend(); | |
} else { | |
printf("%d\n", transaction_started); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment