From 214066a139e6c680e8517c89a07431a9649321a0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 27 Oct 2006 13:34:56 +0000 Subject: fix for Codewarrior compilation update docs fixed anything/symbol message mixup (thanks to Stefano Papetti) fixed typos, dates, contact info added gcc branch hinting svn path=/trunk/; revision=6170 --- externals/grill/flext/source/flout.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'externals/grill/flext/source/flout.cpp') diff --git a/externals/grill/flext/source/flout.cpp b/externals/grill/flext/source/flout.cpp index 3933d5f1..dae256a7 100644 --- a/externals/grill/flext/source/flout.cpp +++ b/externals/grill/flext/source/flout.cpp @@ -20,7 +20,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. void flext_base::ToSysAtom(int n,const t_atom &at) const { outlet *o = GetOut(n); - if(o) { + if(LIKELY(o)) { CRITON(); if(IsSymbol(at)) outlet_symbol((t_outlet *)o,const_cast(GetSymbol(at))); @@ -45,12 +45,12 @@ void flext_base::ToSysAtom(int n,const t_atom &at) const #if defined(FLEXT_THREADS) #if FLEXT_QMODE == 2 - #define CHKTHR() ((IsSystemThread() || IsThread(flext::thrmsgid)) && !InDSP()) + #define CHKTHR() (LIKELY((IsSystemThread() || IsThread(flext::thrmsgid)) && !InDSP())) #else - #define CHKTHR() (IsSystemThread() && !InDSP()) + #define CHKTHR() (LIKELY(IsSystemThread() && !InDSP())) #endif #else - #define CHKTHR() (!InDSP()) + #define CHKTHR() (LIKELY(!InDSP())) #endif void flext_base::ToOutBang(int n) const { if(CHKTHR()) ToSysBang(n); else ToQueueBang(n); } -- cgit v1.2.1