Skip to content

Commit

Permalink
Fix issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell authored and hivert committed Jan 17, 2020
1 parent 1e60705 commit b6186ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# http://www.gnu.org/licenses/ #
#****************************************************************************#

find_package(PkgConfig REQUIRED)
pkg_check_modules(BENCHMARK REQUIRED IMPORTED_TARGET benchmark)

include_directories(
${CMAKE_SOURCE_DIR}/include
Expand All @@ -24,6 +26,8 @@ set(benchmark_src
foreach(f ${benchmark_src})
get_filename_component(benchName ${f} NAME_WE)
add_executable (${benchName} ${f})
target_include_directories(${benchName} PUBLIC ${BENCHMARK_INCLUDE_DIRS})
target_compile_options(${benchName} PUBLIC ${BENCHMARK_CFLAGS_OTHER})
target_link_libraries(${benchName} benchmark pthread)
# install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${benchName}
# DESTINATION bin
Expand Down
6 changes: 6 additions & 0 deletions include/vect16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,15 @@ struct alignas(16) Vect16 {
using iterator = typename array::iterator;
using const_iterator = typename array::const_iterator;

const_iterator cbegin() const { return as_array().begin(); }
const_iterator cend() const { return as_array().end(); }

iterator begin() { return as_array().begin(); }
iterator end() { return as_array().end(); }

const_iterator begin() const { return as_array().begin(); }
const_iterator end() const { return as_array().end(); }

bool operator==(const Vect16 &b) const { return HPCombi::equal(v, b.v); };
bool operator!=(const Vect16 &b) const {
return HPCombi::not_equal(v, b.v);
Expand Down

0 comments on commit b6186ec

Please sign in to comment.