Skip to content
Snippets Groups Projects
Commit 4e8b817a authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Cleanup micro-benchmarks

parent ab1c724b
No related branches found
No related tags found
No related merge requests found
Pipeline #2729 canceled
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int x = 0;
std::cin >> std::hex >> x;
if (x == 0x01000000)
abort();
return 0;
}
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int x = 0;
std::cin >> std::hex >> x;
if (x == 0x12345678)
abort();
return 0;
}
#include <unistd.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int x;
read(0, &x, 4);
// if (x == 33620225) // 0x02010101
// if (x == 3791716609) // 0xe2010101
// if (x == 16843057)
// if (x == 16851249)
// if (x == 0x7c3f)
if (x == 0x237c3f)
// if (x == 0x3f7c1234)
abort();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment