summaryrefslogtreecommitdiffstats
path: root/src/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-03 09:29:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-03 09:29:19 -0400
commit7e5357a1cf40ebaa7ffaeebfd3a88c3ba93eb1a7 (patch)
tree5a792a12d92518d2250611e05332f9904307f157 /src/trie.c
parent6d59961d6d5ce91529a17bdad380ee78fa866564 (diff)
downloadbfs-7e5357a1cf40ebaa7ffaeebfd3a88c3ba93eb1a7.tar.xz
style: Don't use tabs to indent preprocessor directives
Diffstat (limited to 'src/trie.c')
-rw-r--r--src/trie.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/trie.c b/src/trie.c
index 43df9dc..9f2e45f 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -94,9 +94,9 @@
static_assert(CHAR_BIT == 8, "This trie implementation assumes 8-bit bytes.");
#if BFS_TARGET_CLONES && (__i386__ || __x86_64__)
-# define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default")))
+# define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default")))
#else
-# define TARGET_CLONES_POPCNT
+# define TARGET_CLONES_POPCNT
#endif
/** Number of bits for the sparse array bitmap, aka the range of a nibble. */
@@ -367,23 +367,23 @@ static size_t trie_node_size(unsigned int size) {
}
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
-# define TRIE_BSWAP(n) (n)
+# define TRIE_BSWAP(n) (n)
#elif defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-# if __SIZEOF_SIZE_T__ == 8
-# define TRIE_BSWAP(n) __builtin_bswap64(n)
-# elif __SIZEOF_SIZE_T__ == 4
-# define TRIE_BSWAP(n) __builtin_bswap32(n)
-# endif
+# if __SIZEOF_SIZE_T__ == 8
+# define TRIE_BSWAP(n) __builtin_bswap64(n)
+# elif __SIZEOF_SIZE_T__ == 4
+# define TRIE_BSWAP(n) __builtin_bswap32(n)
+# endif
#endif
#ifdef TRIE_BSWAP
-# if __SIZEOF_SIZE_T__ == __SIZEOF_LONG_LONG__
-# define TRIE_CTZ(n) __builtin_ctzll(n)
-# elif __SIZEOF_SIZE_T__ == __SIZEOF_LONG__
-# define TRIE_CTZ(n) __builtin_ctzl(n)
-# elif __SIZEOF_SIZE_T__ == __SIZEOF_INT__
-# define TRIE_CTZ(n) __builtin_ctz(n)
-# endif
+# if __SIZEOF_SIZE_T__ == __SIZEOF_LONG_LONG__
+# define TRIE_CTZ(n) __builtin_ctzll(n)
+# elif __SIZEOF_SIZE_T__ == __SIZEOF_LONG__
+# define TRIE_CTZ(n) __builtin_ctzl(n)
+# elif __SIZEOF_SIZE_T__ == __SIZEOF_INT__
+# define TRIE_CTZ(n) __builtin_ctz(n)
+# endif
#endif
/** Find the offset of the first nibble that differs between two keys. */