Skip to content

Commit

Permalink
Lets compiler unroll loops for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cslarsen committed Dec 7, 2017
1 parent 6d3b30c commit acba006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CXXFLAGS = -W -Wall -Wextra -Wsign-compare \
-msse \
-O2 \
-march=native \
-funroll-loops \
-ftree-vectorize \
-fomit-frame-pointer

Expand Down
2 changes: 1 addition & 1 deletion mersenne-twister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// Better on older Intel Core i7, but worse on newer Intel Xeon CPUs (undefine
// it on those).
#define MT_UNROLL_MORE
//#define MT_UNROLL_MORE

/*
* We have an array of 624 32-bit values, and there are 31 unused bits, so we
Expand Down

0 comments on commit acba006

Please sign in to comment.