-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from mklarqvist/cleanup
General cleanup: function names as used in the paper. Fix compilation issues for Windows.
- Loading branch information
Showing
10 changed files
with
456 additions
and
419 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,6 @@ | |
example | ||
bench | ||
instrumented_benchmark | ||
.vscode | ||
CMakeFiles | ||
Testing |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
cmake_minimum_required(VERSION 2.8) | ||
project(libppospopcnt C CXX) | ||
set(CMAKE_BUILD_TYPE Release) | ||
include_directories(. benchmark/linux/) | ||
|
||
set(CMAKE_CXX_STANDARD 11) # enable C++11 standard | ||
set(CMAKE_CXX_FLAGS "-O3 -march=native") | ||
set(CMAKE_C_FLAGS "-O3 -march=native") | ||
|
||
add_executable(bench pospopcnt.c benchmark.cpp) | ||
add_executable(example pospopcnt.c example.c) | ||
add_executable(instrumented_benchmark pospopcnt.c benchmark/linux/instrumented_benchmark.cpp) | ||
|
||
enable_testing() | ||
add_test(NAME example COMMAND example) | ||
add_test(NAME bench COMMAND bench 100000 10) | ||
add_test(NAME instrumented_benchmark COMMAND instrumented_benchmark -n 100000 -i 10) | ||
|
||
install(FILES pospopcnt.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/pospopcnt) |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> // memcpy | ||
|
||
#include "pospopcnt.h" | ||
|
||
|
Oops, something went wrong.