File: MicroOpts.hpp

package info (click to toggle)
salmon 0.7.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,352 kB
  • ctags: 5,243
  • sloc: cpp: 42,341; ansic: 6,252; python: 228; makefile: 207; sh: 190
file content (16 lines) | stat: -rw-r--r-- 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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