mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 02:18:31 +00:00
These are not needed after #35129 but making uncrustify still play nice with them was a bit tricky. Unfortunately `uncrustify --update-config-with-doc` breaks strings with backslashes. This issue has been reported upstream, and in the meanwhile auto-update on every single run has been disabled.
13 lines
217 B
C
13 lines
217 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
/// Check if number is a power of two
|
|
static inline bool is_power_of_two(uint64_t x)
|
|
{
|
|
return x != 0 && ((x & (x - 1)) == 0);
|
|
}
|
|
|
|
#include "math.h.generated.h"
|