Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
@tj tj
17 lines (13 sloc) 0.304 kb
//
// unlikely.h
//
#ifndef UNLIKELY_H
#define UNLIKELY_H
#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
#define likely(expr) __builtin_expect((expr), 1)
#define unlikely(expr) __builtin_expect((expr), 0)
#else
#define likely(expr) (expr)
#define unlikely(expr) (expr)
#endif
#endif
Jump to Line
Something went wrong with that request. Please try again.