Skip to content

Commit 2fb9fbd

Browse files
committed
clang-format
1 parent 10bfac0 commit 2fb9fbd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

include/darray.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,16 @@ namespace util {
263263

264264
struct identity_getter {
265265
template <typename Vec>
266-
uint64_t operator()(Vec const& data, uint64_t i) const { return data[i]; }
266+
uint64_t operator()(Vec const& data, uint64_t i) const {
267+
return data[i];
268+
}
267269
};
268270

269271
struct negating_getter {
270272
template <typename Vec>
271-
uint64_t operator()(Vec const& data, uint64_t i) const { return ~data[i]; }
273+
uint64_t operator()(Vec const& data, uint64_t i) const {
274+
return ~data[i];
275+
}
272276
};
273277

274278
} // namespace util

include/util.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ static inline uint64_t select_in_word(uint64_t word, uint64_t i) {
9999
return s - 1;
100100
#else
101101
uint64_t k = 1ULL << i;
102-
asm("pdep %[word], %[mask], %[word]" : [ word ] "+r"(word) : [ mask ] "r"(k));
103-
asm("tzcnt %[bit], %[index]" : [ index ] "=r"(k) : [ bit ] "g"(word) : "cc");
102+
asm("pdep %[word], %[mask], %[word]" : [word] "+r"(word) : [mask] "r"(k));
103+
asm("tzcnt %[bit], %[index]" : [index] "=r"(k) : [bit] "g"(word) : "cc");
104104
return k;
105105
#endif
106106
}

0 commit comments

Comments
 (0)