Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/04-simd-vectorization/bench/simd_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
#include <benchmark/benchmark.h>

#include <cmath>
#include <hpc/simd.hpp>
#include <random>
#include <vector>

#include <hpc/simd.hpp>

namespace {

// Initialize arrays with random data
Expand Down
3 changes: 1 addition & 2 deletions examples/04-simd-vectorization/src/auto_vectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
*/

#include <cmath>
#include <hpc/simd.hpp>
#include <iostream>
#include <numeric>
#include <vector>

#include <hpc/simd.hpp>

namespace hpc::simd {

// ============================================================================
Expand Down
3 changes: 1 addition & 2 deletions examples/04-simd-vectorization/src/dispatch_example_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <iostream>

#include <hpc/simd.hpp>
#include <iostream>

int main() {
constexpr size_t kSize = 8;
Expand Down
3 changes: 1 addition & 2 deletions examples/04-simd-vectorization/src/intrinsics_intro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

#include <chrono>
#include <cmath>
#include <iostream>

#include <hpc/simd.hpp>
#include <iostream>

// Include SIMD headers based on availability
#ifdef HPC_HAS_SSE2
Expand Down
8 changes: 2 additions & 6 deletions examples/05-concurrency/include/lock_free_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,14 @@ class MPMCQueue {
* @param value Element to push
* @return true if successful, false if queue is full
*/
bool push(const T& value) {
return push_impl(value);
}
bool push(const T& value) { return push_impl(value); }

/**
* @brief Push an element with move semantics (thread-safe)
* @param value Element to push
* @return true if successful, false if queue is full
*/
bool push(T&& value) {
return push_impl(std::move(value));
}
bool push(T&& value) { return push_impl(std::move(value)); }

/**
* @brief Pop an element from the queue (thread-safe)
Expand Down
3 changes: 1 addition & 2 deletions tests/property/simd_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
#include <algorithm>
#include <chrono>
#include <cmath>
#include <hpc/simd.hpp>
#include <iostream>
#include <numeric>
#include <random>
#include <vector>

#include <hpc/simd.hpp>

namespace {

constexpr float TOLERANCE = 1e-5f;
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/modern_cpp/modern_cpp_header_only_smoke_extra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ int modern_cpp_header_only_helper() {
std::vector<int> input{1, 2, 3};
std::vector<int> output;
hpc::ranges::transform_algorithm(input, output);
return static_cast<int>(hpc::compile_time::factorial_runtime(3) + hpc::ranges::sum_raw_loop(output));
return static_cast<int>(hpc::compile_time::factorial_runtime(3) +
hpc::ranges::sum_raw_loop(output));
}
1 change: 0 additions & 1 deletion tests/unit/simd/hpc_simd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <algorithm>
#include <cmath>

#include <hpc/simd.hpp>

namespace hpc::simd::test {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/simd/simd_utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
* @brief Unit tests for simd_utils.hpp and simd_wrapper.hpp
*/

#include <hpc/simd.hpp>

#include <gtest/gtest.h>

#include <cmath>
#include <hpc/simd.hpp>
#include <numeric>

namespace hpc::simd::test {
Expand Down
Loading