Skip to content

Commit

Permalink
Merge pull request #6510 from ndellingwood/fix-werror-pedantic
Browse files Browse the repository at this point in the history
Kokkos_SIMD_Scalar.hpp: remove extra ';'

(cherry picked from commit 58f53a6)
  • Loading branch information
dalg24 authored and ndellingwood committed Jan 25, 2024
1 parent ea564a2 commit 8845cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simd/src/Kokkos_SIMD_Scalar.hpp
Expand Up @@ -224,31 +224,31 @@ template <typename T>
using data_type = std::conditional_t<std::is_floating_point_v<T>, T, double>;
return Experimental::simd<data_type, Experimental::simd_abi::scalar>(
Kokkos::floor(static_cast<data_type>(a[0])));
};
}

template <typename T>
[[nodiscard]] KOKKOS_FORCEINLINE_FUNCTION auto ceil(
Experimental::simd<T, Experimental::simd_abi::scalar> const& a) {
using data_type = std::conditional_t<std::is_floating_point_v<T>, T, double>;
return Experimental::simd<data_type, Experimental::simd_abi::scalar>(
Kokkos::ceil(static_cast<data_type>(a[0])));
};
}

template <typename T>
[[nodiscard]] KOKKOS_FORCEINLINE_FUNCTION auto round(
Experimental::simd<T, Experimental::simd_abi::scalar> const& a) {
using data_type = std::conditional_t<std::is_floating_point_v<T>, T, double>;
return Experimental::simd<data_type, Experimental::simd_abi::scalar>(
Experimental::round_half_to_nearest_even(static_cast<data_type>(a[0])));
};
}

template <typename T>
[[nodiscard]] KOKKOS_FORCEINLINE_FUNCTION auto trunc(
Experimental::simd<T, Experimental::simd_abi::scalar> const& a) {
using data_type = std::conditional_t<std::is_floating_point_v<T>, T, double>;
return Experimental::simd<data_type, Experimental::simd_abi::scalar>(
Kokkos::trunc(static_cast<data_type>(a[0])));
};
}

template <class T>
[[nodiscard]] KOKKOS_FORCEINLINE_FUNCTION
Expand Down

0 comments on commit 8845cee

Please sign in to comment.