[Kst] branches/work/kst/portto4/kst/src/libkstmath
Barth Netterfield
netterfield at astro.utoronto.ca
Fri Jan 6 21:06:16 UTC 2012
SVN commit 1272108 by netterfield:
remove BENCHMARK
M +4 -1 curve.cpp
--- branches/work/kst/portto4/kst/src/libkstmath/curve.cpp #1272107:1272108
@@ -37,8 +37,11 @@
#include <iostream>
// #define DEBUG_VECTOR_CURVE
-#define BENCHMARK
+//#define BENCHMARK
+// NOTE: on a modern (eg, sandybridge or later) cpu
+// the cpu's branch prediction is so good, this does
+// more or less nothing
#ifndef KDE_IS_LIKELY
#if __GNUC__ - 0 >= 3
# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
More information about the Kst
mailing list