forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIMD: add shift ops for all int types (kokkos#6109)
* Added unit tests and shift operators for avx512 * Added shifts for avx2; impl for int64_t sra missing * Added shifts for neon * clang-formatted * Changed int usages to std::int32_t * Added unit tests for shift ops with simd type as rhs * Added device side unit test * Revert commented out lines * Changed argument type of rhs for simd shifts to take the same type as lhs. Added few workaround to avoid spurioud uninitialized variable warnings * removed an unnecessary commented out line * Quick fixes to neon simd * Added a corner case check * clang-formatted * Fixed test cases for shift op * clang-formatted * Added missing nodiscard attributes * Converted shift ops to hidden friends * Replaced static_asserts on data types with enable_ifs
- Loading branch information
Showing
6 changed files
with
685 additions
and
165 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
Oops, something went wrong.