Skip to content

Commit

Permalink
Kokkos_SIMD_Scalar.hpp: remove extra ';'
Browse files Browse the repository at this point in the history
Resolve -Werror=pedantic errors in nightly gcc builds
  • Loading branch information
ndellingwood committed Oct 13, 2023
1 parent bd361e5 commit 78c1ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simd/src/Kokkos_SIMD_Scalar.hpp
Original file line number Diff line number Diff line change
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 78c1ed8

Please sign in to comment.