mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-10 00:48:33 +01:00
Inline fast part of tracked_fds_find().
This commit is contained in:
@@ -20,6 +20,17 @@
|
||||
#ifndef COMPILER_H
|
||||
#define COMPILER_H 1
|
||||
|
||||
/* Prevent/force inlining. Used to improve performance. */
|
||||
#undef __noinline
|
||||
#undef __always_inline
|
||||
#ifdef HAVE___ATTRIBUTE__
|
||||
# define __noinline __attribute__((noinline))
|
||||
# define __always_inline __attribute__((always_inline))
|
||||
#else
|
||||
# define __noinline
|
||||
# define __always_inline
|
||||
#endif
|
||||
|
||||
/* Branch prediction information for the compiler. */
|
||||
#ifdef HAVE___BUILTIN_EXPECT
|
||||
# define likely(x) __builtin_expect(!!(x), 1)
|
||||
|
||||
Reference in New Issue
Block a user