aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/main.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2007-06-19 14:34:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2007-06-19 14:34:11 +0000
commitdacf7b607b9d0fda8b9a38b58dc97ce77b9ce3e9 (patch)
tree6516ed960ea9cf0c02ed7fb3886a483954c75e49 /externals/grill/xsample/source/main.h
parent681682b3efa84c7d6323a43bdda54616b39cd73c (diff)
use branch hints
added xcode 2.4 project fixed one-shot loop bang updated copyrights svn path=/trunk/; revision=7786
Diffstat (limited to 'externals/grill/xsample/source/main.h')
-rw-r--r--externals/grill/xsample/source/main.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h
index ec2218d3..8cf39d7d 100644
--- a/externals/grill/xsample/source/main.h
+++ b/externals/grill/xsample/source/main.h
@@ -86,8 +86,15 @@ extern "C++" {
}
#endif
-#if FLEXT_CPU == FLEXT_CPU_INTEL && defined(__GNUC__)
-template<typename I,typename F> inline I CASTINT(F o) { return lrintf(o); }
+#if 0 // FLEXT_CPU == FLEXT_CPU_PPC && defined(__GNUC__)
+#include <ppc_intrinsics.h>
+template<typename I,typename F>
+inline I CASTINT( F f )
+{
+ int i;
+ __stfiwx(__fctiwz(f),0,&i);
+ return i;
+}
#elif FLEXT_CPU == FLEXT_CPU_INTEL && defined(_MSC_VER)
template<typename I,typename F>
inline I CASTINT(F x) {