Skip to content

Commit

Permalink
Not sure why permissive is needed... well...
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Aug 13, 2016
1 parent a1bf35e commit 661a46d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else
GENFLAGS = -fPIC -O3 -march=native -Wall -Wextra -pedantic -Wshadow -Wno-unused
endif # debug
CFLAGS = -std=c99 $(GENFLAGS)
CXXFLAGS = -std=c++11 $(GENFLAGS)
CXXFLAGS = -std=c++11 -fpermissive $(GENFLAGS)

HEADERS=src/bpacking.h src/dict.h src/scalar.h src/avxbpacking.h src/avxcodec.h src/avxdict.h
EXECUTABLES=scalartest avxtest decodebenchmark
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static inline void tellmeall() {

#define RDTSC_START(cycles) \
do { \
register unsigned cyc_high, cyc_low; \
unsigned cyc_high, cyc_low; \
__asm volatile( \
"cpuid\n\t" \
"rdtsc\n\t" \
Expand All @@ -116,7 +116,7 @@ static inline void tellmeall() {

#define RDTSC_FINAL(cycles) \
do { \
register unsigned cyc_high, cyc_low; \
unsigned cyc_high, cyc_low; \
__asm volatile( \
"rdtscp\n\t" \
"mov %%edx, %0\n\t" \
Expand Down

0 comments on commit 661a46d

Please sign in to comment.