diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2025-09-07 23:22:22 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-01-05 19:32:49 +0000 |
| commit | a9462e32fa75a9a1e3f49964bc42b5303e0dd092 (patch) | |
| tree | 1e9a595a22e9e533fc123cef2cda640685f1fed1 | |
| parent | 242beec703f771312fac3be1b4ce3092bbc93e25 (diff) | |
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/bitops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h index 8fac80820f30..969b5e8245e7 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitops.h +++ b/sys/compat/linuxkpi/common/include/linux/bitops.h @@ -437,4 +437,10 @@ sign_extend32(uint32_t value, int index) return ((int32_t)(value << shift) >> shift); } +static inline uint64_t +rol64(uint64_t word, unsigned int shift) +{ + return ((word << (shift & 63)) | (word >> ((-shift) & 63))); +} + #endif /* _LINUXKPI_LINUX_BITOPS_H_ */ |
