A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/core/numerics/bit-manipulation.html below:

Bit manipulation - Kokkos documentation

Toggle table of contents sidebar

Bit manipulation

Defined in header <Kokkos_BitManipulation.hpp> which is included from <Kokkos_Core.hpp>

Provides function templates from the standard library header <bit> (since C++20).

Bit manipulation function templates are defined in the Kokkos:: namespace since Kokkos 4.1

bit_cast

reinterpret the object representation of one type as that of another (see note below)

byteswap

reverses the bytes in the given integer value

has_single_bit

checks if a number is an integral power of two

bit_ceil

finds the smallest integral power of two not less than the given value

bit_floor

finds the largest integral power of two not greater than the given value

bit_width

finds the smallest number of bits needed to represent the given value

rotl

computes the result of bitwise left-rotation

rotr

computes the result of bitwise right-rotation

countl_zero

counts the number of consecutive 0 bits, starting from the most significant bit

countl_one

counts the number of consecutive 1 bits, starting from the most significant bit

countr_zero

counts the number of consecutive 0 bits, starting from the least significant bit

countr_one

counts the number of consecutive 1 bits, starting from the least significant bit

popcount

counts the number of 1 bits in an unsigned integer

Notes

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4