From 3290c181c17db33991cd1b79eca49f70d2601ce0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jan 2019 09:08:15 -0800 Subject: [PATCH] [algs] Whitespace --- src/hb-algs.hh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 79db3eb96..95adc2723 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -59,6 +59,7 @@ hb_first (const Pair& pair) { return pair.first; } template inline typename Pair::second_t hb_second (const Pair& pair) { return pair.second; } + /* * Bithacks. */ @@ -256,8 +257,8 @@ hb_ctz (T v) * Tiny stuff. */ -template -static inline T* hb_addressof (const T& arg) +template static inline T* +hb_addressof (const T& arg) { /* https://en.cppreference.com/w/cpp/memory/addressof */ return reinterpret_cast( @@ -496,9 +497,10 @@ static inline void sort_r_simple(void *base, size_t nel, size_t w, } } -static inline void hb_sort_r(void *base, size_t nel, size_t width, - int (*compar)(const void *_a, const void *_b, void *_arg), - void *arg) +static inline void +hb_sort_r (void *base, size_t nel, size_t width, + int (*compar)(const void *_a, const void *_b, void *_arg), + void *arg) { sort_r_simple(base, nel, width, compar, arg); }