[MERGE] branch prediction hints

From: Kinkie <kinkie_at_kinkie.it>
Date: Tue, 12 Oct 2010 17:47:13 +0200

Hi all,
  this patch-let makes implements a GCC feature to hint the branch
prediction algorithms about the likely outcome of a test. This is useful
to optimize the case of singleton patterns (e.g.
CacheManager::GetInstance).
This implements the likely() and unlikely() macros.

        Kinkie

Received on Wed Oct 13 2010 - 09:03:45 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 13 2010 - 12:00:05 MDT