Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17410/source
Modified Files: flatom_part.cpp flmap.h flsupport.h Log Message: optimized AtomList functions temporary fixes for VASP compilation updates for batch mode fixes for OSX updated build system fixed timer1 tutorial project oops, forgot about SIMD for Windows fixed compilation with SIMD instructions added shared library build facility for Windows fixed shared library versioning fixed flext::Timer::At method build system: added profiler mode, more fixes moved FLEXT_SHARE definition smaller changes to TableMap small optimizations new: FLEXT_WARN, FLEXT_ERROR macros win32 threading model included fixes for Max compilation
Index: flatom_part.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flatom_part.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** flatom_part.cpp 26 Jan 2005 05:01:24 -0000 1.4 --- flatom_part.cpp 9 Apr 2005 21:09:01 -0000 1.5 *************** *** 26,30 ****
! flext::AtomList flext::AtomList::GetPart(int offs,int len) const { if(offs+len > Count()) { --- 26,30 ----
! void flext::AtomList::GetPart(int offs,int len,AtomList &ret) const { if(offs+len > Count()) { *************** *** 33,37 **** }
! return AtomList(len,Atoms()+offs); }
--- 33,37 ---- }
! ret(len,Atoms()+offs); }
Index: flmap.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flmap.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** flmap.h 7 Apr 2005 15:25:03 -0000 1.12 --- flmap.h 9 Apr 2005 21:09:01 -0000 1.13 *************** *** 195,199 **** const int tsize; Data *const data; ! int count,n; TableAnyMap *parent,*left,*right;
--- 195,199 ---- const int tsize; Data *const data; ! int n,count; TableAnyMap *parent,*left,*right;
Index: flsupport.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.h,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** flsupport.h 7 Apr 2005 15:25:03 -0000 1.87 --- flsupport.h 9 Apr 2005 21:09:01 -0000 1.88 *************** *** 564,572 **** public: //! Construct list ! AtomList(): cnt(0),lst(NULL) {} //! Construct list ! AtomList(int argc,const t_atom *argv = NULL): cnt(0),lst(NULL) { operator()(argc,argv); } //! Construct list ! AtomList(const AtomList &a): cnt(0),lst(NULL) { operator =(a); } //! Destroy list virtual ~AtomList(); --- 564,572 ---- public: //! Construct list ! explicit AtomList(): cnt(0),lst(NULL) {} //! Construct list ! explicit AtomList(int argc,const t_atom *argv = NULL): cnt(0),lst(NULL) { operator()(argc,argv); } //! Construct list ! explicit AtomList(const AtomList &a): cnt(0),lst(NULL) { operator =(a); } //! Destroy list virtual ~AtomList(); *************** *** 635,641 ****
//! Get a part of the list ! AtomList GetPart(int offs,int len) const; //! Set to a part of the list ! AtomList &Part(int offs,int len) { return (*this = GetPart(offs,len)); }
//! Represent as a string --- 635,641 ----
//! Get a part of the list ! void GetPart(int offs,int len,AtomList &ret) const; //! Set to a part of the list ! AtomList &Part(int offs,int len) { GetPart(offs,len,*this); return *this; }
//! Represent as a string *************** *** 654,658 **** { protected: ! AtomListStaticBase(int pc,t_atom *dt): precnt(pc),predata(dt) {} virtual ~AtomListStaticBase(); virtual void Alloc(int sz,int keepix = -1,int keeplen = -1,int keepto = 0); --- 654,658 ---- { protected: ! explicit AtomListStaticBase(int pc,t_atom *dt): precnt(pc),predata(dt) {} virtual ~AtomListStaticBase(); virtual void Alloc(int sz,int keepix = -1,int keeplen = -1,int keepto = 0); *************** *** 669,680 **** public: //! Construct list ! AtomListStatic(): AtomListStaticBase(PRE,pre) {} //! Construct list ! AtomListStatic(int argc,const t_atom *argv = NULL): AtomListStaticBase(PRE,pre) { operator()(argc,argv); } //! Construct list ! AtomListStatic(const AtomList &a): AtomListStaticBase(PRE,pre) { operator =(a); }
//! Set list by another AtomList ! AtomListStatic &operator =(const AtomListStatic &a) { AtomListStaticBase::operator =(a); return *this; } protected: t_atom pre[PRE]; --- 669,680 ---- public: //! Construct list ! explicit AtomListStatic(): AtomListStaticBase(PRE,pre) {} //! Construct list ! explicit AtomListStatic(int argc,const t_atom *argv = NULL): AtomListStaticBase(PRE,pre) { operator()(argc,argv); } //! Construct list ! explicit AtomListStatic(const AtomList &a): AtomListStaticBase(PRE,pre) { AtomList::operator =(a); }
//! Set list by another AtomList ! AtomListStatic &operator =(const AtomListStatic &a) { AtomList::operator =(a); return *this; } protected: t_atom pre[PRE]; *************** *** 686,698 **** { public: ! AtomAnything(): hdr(NULL) {} #if FLEXT_SYS != FLEXT_SYS_JMAX //! Construct anything ! AtomAnything(const t_symbol *h,int argc = 0,const t_atom *argv = NULL) : AtomList(argc,argv),hdr(h?h:sym__) {} #endif //! Construct anything ! AtomAnything(const char *h,int argc = 0,const t_atom *argv = NULL) : AtomList(argc,argv),hdr(MakeSymbol(h)) {} --- 686,698 ---- { public: ! explicit AtomAnything(): hdr(NULL) {} #if FLEXT_SYS != FLEXT_SYS_JMAX //! Construct anything ! explicit AtomAnything(const t_symbol *h,int argc = 0,const t_atom *argv = NULL) : AtomList(argc,argv),hdr(h?h:sym__) {} #endif //! Construct anything ! explicit AtomAnything(const char *h,int argc = 0,const t_atom *argv = NULL) : AtomList(argc,argv),hdr(MakeSymbol(h)) {}