File: MicroOpts.hpp

package info (click to toggle)
salmon 1.10.3%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,148 kB
  • sloc: cpp: 200,707; ansic: 171,082; sh: 859; python: 792; makefile: 238
file content (14 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef MICROOPTS_HPP
#define MICROOPTS_HPP

/** Based on Likely.h from FB's Folly library **/

#undef LIKELY
#undef UNLIKELY

#if defined(__GUNC__) && __GNUC__ >= 4
#define LIKELY(X) (__builtin_expect((x), 1))
#define UNLIKELY(X) (__builtin_expect((x), 0))
#elif defined(__clang__)

#endif // MICROOPTS_HPP