We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2b7d00 + ed57e8b commit 4e70d66Copy full SHA for 4e70d66
qmb/_hamiltonian_cuda.cu
@@ -42,7 +42,7 @@ __device__ bool get_bit(std::uint8_t* data, std::uint8_t index) {
42
return ((*data) >> index) & 1;
43
}
44
45
-__device__ bool set_bit(std::uint8_t* data, std::uint8_t index, bool value) {
+__device__ void set_bit(std::uint8_t* data, std::uint8_t index, bool value) {
46
if (value) {
47
*data |= (1 << index);
48
} else {
0 commit comments