-
-
Save nucular/bef582b754c4beaf325822c42dc6aa89 to your computer and use it in GitHub Desktop.
-Osuperfast
This file contains hidden or 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
export CFLAGS=""\ | |
"-march=native -Ofast"\ | |
"-fmerge-all-constants"\ | |
"-fmodulo-sched -fmodulo-sched-allow-regmoves"\ | |
"-fgcse-sm -fgcse-las -fgcse-after-reload"\ | |
"-funsafe-loop-optimizations"\ | |
"-fdevirtualize-speculatively -fdevirtualize-at-ltrans"\ | |
"-fipa-pta"\ | |
"-ftree-loop-if-convert-stores -ftree-loop-distribution -ftree-loop-im"\ | |
"-ftree-parallelize-loops=$(nproc)"\ | |
"-ftree-vectorize -fvect-cost-model=dynamic"\ | |
"-fvariable-expansion-in-unroller"\ | |
"-flto"\ | |
"-fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math"\ | |
"-funroll-loops -funswitch-loops"\ | |
"-include osuperfast.h" |
This file contains hidden or 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 <unistd.h> | |
#define pause() (errno = EINTR, -1) | |
#define sleep(x) (0) | |
#define usleep(x) (0) | |
#define nanosleep(x,y) (0) | |
#define alarm(x) (raise(SIGALARM), 0) | |
#define ualarm(x) (raise(SIGALARM), 0) | |
#include <signal.h> | |
#define sigsuspend(x) (errno = EINTR, -1) | |
#include <sched.h> | |
#define sched_yield() (0) | |
#include <pthread.h> | |
#define pthread_yield() (0) | |
#include <time.h> | |
#define clock_nanosleep(a,b,c,d) (0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment