[algs] Whitespace

This commit is contained in:
Behdad Esfahbod 2019-01-09 09:08:15 -08:00
parent 014c50292b
commit 3290c181c1
1 changed files with 7 additions and 5 deletions

View File

@ -59,6 +59,7 @@ hb_first (const Pair& pair) { return pair.first; }
template <typename Pair> inline typename Pair::second_t template <typename Pair> inline typename Pair::second_t
hb_second (const Pair& pair) { return pair.second; } hb_second (const Pair& pair) { return pair.second; }
/* /*
* Bithacks. * Bithacks.
*/ */
@ -256,8 +257,8 @@ hb_ctz (T v)
* Tiny stuff. * Tiny stuff.
*/ */
template <typename T> template <typename T> static inline T*
static inline T* hb_addressof (const T& arg) hb_addressof (const T& arg)
{ {
/* https://en.cppreference.com/w/cpp/memory/addressof */ /* https://en.cppreference.com/w/cpp/memory/addressof */
return reinterpret_cast<T*>( return reinterpret_cast<T*>(
@ -496,7 +497,8 @@ 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, static inline void
hb_sort_r (void *base, size_t nel, size_t width,
int (*compar)(const void *_a, const void *_b, void *_arg), int (*compar)(const void *_a, const void *_b, void *_arg),
void *arg) void *arg)
{ {