[algs] Whitespace
This commit is contained in:
parent
014c50292b
commit
3290c181c1
|
@ -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,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,
|
static inline void
|
||||||
int (*compar)(const void *_a, const void *_b, void *_arg),
|
hb_sort_r (void *base, size_t nel, size_t width,
|
||||||
void *arg)
|
int (*compar)(const void *_a, const void *_b, void *_arg),
|
||||||
|
void *arg)
|
||||||
{
|
{
|
||||||
sort_r_simple(base, nel, width, compar, arg);
|
sort_r_simple(base, nel, width, compar, arg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue