mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 03:11:37 +08:00
shmem_qurt: fix format
This commit is contained in:
@@ -64,11 +64,14 @@ uint64_t update_from_shmem_prev_time = 0, update_from_shmem_current_time = 0;
|
|||||||
static unsigned char krait_changed_index[MAX_SHMEM_PARAMS / 8 + 1];
|
static unsigned char krait_changed_index[MAX_SHMEM_PARAMS / 8 + 1];
|
||||||
|
|
||||||
// Small helper to get log2 for ints
|
// Small helper to get log2 for ints
|
||||||
static unsigned log2_for_int(unsigned v) {
|
static unsigned log2_for_int(unsigned v)
|
||||||
|
{
|
||||||
unsigned r = 0;
|
unsigned r = 0;
|
||||||
|
|
||||||
while (v >>= 1) {
|
while (v >>= 1) {
|
||||||
++r;
|
++r;
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user