[PD-cvs] externals/grill/flext/source flbuf.cpp,1.20,1.21 flsimd.cpp,1.15,1.16

Thomas Grill xovo at users.sourceforge.net
Fri Jan 7 05:58:50 CET 2005


Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27942/source

Modified Files:
	flbuf.cpp flsimd.cpp 
Log Message:
updated for OSX
better templates, some minor changes
fix for showing attributes on select (and recreate the object on edit)
cleanups


Index: flsimd.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsimd.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** flsimd.cpp	13 Nov 2004 03:30:49 -0000	1.15
--- flsimd.cpp	7 Jan 2005 04:58:47 -0000	1.16
***************
*** 3,7 ****
  flext - C++ layer for Max/MSP and pd (pure data) externals
  
! Copyright (c) 2001-2003 Thomas Grill (xovo at gmx.net)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
--- 3,7 ----
  flext - C++ layer for Max/MSP and pd (pure data) externals
  
! Copyright (c) 2001-2005 Thomas Grill (gr at grrrr.org)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
***************
*** 48,52 ****
          #include <altivec.h>
          #include <vectorOps.h>
!     #elif FLEXT_CPU == FLEXT_CPU_PPC && defined(__GNUG__) && defined(__VEC__)
          #include <sys/sysctl.h> 
          #include <vecLib/vecLib.h>
--- 48,52 ----
          #include <altivec.h>
          #include <vectorOps.h>
!     #elif FLEXT_CPU == FLEXT_CPU_PPC && defined(__GNUC__) && defined(__VEC__)
          #include <sys/sysctl.h> 
          #include <vecLib/vecLib.h>
***************
*** 345,349 ****
  inline bool IsVectorAligned(const void *where) 
  {
!     return reinterpret_cast<unsigned long>(where)&(sizeof(vector float)-1) == 0; 
  }
  
--- 345,349 ----
  inline bool IsVectorAligned(const void *where) 
  {
!     return (reinterpret_cast<size_t>(where)&(sizeof(vector float)-1)) == 0; 
  }
  

Index: flbuf.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flbuf.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** flbuf.cpp	6 Jan 2005 04:59:05 -0000	1.20
--- flbuf.cpp	7 Jan 2005 04:58:47 -0000	1.21
***************
*** 29,34 ****
  
  #if FLEXT_SYS == FLEXT_SYS_MAX
! static const t_symbol *sym_buffer = flext::MakeSymbol("buffer~");
! static const t_symbol *sym_size = flext::MakeSymbol("size");
  #endif
  
--- 29,34 ----
  
  #if FLEXT_SYS == FLEXT_SYS_MAX
! static const t_symbol *sym_buffer = NULL;
! static const t_symbol *sym_size = NULL;
  #endif
  
***************
*** 43,46 ****
--- 43,49 ----
      ticking = false;
      tick = clock_new(this,(t_method)cb_tick);
+ #elif FLEXT_SYS == FLEXT_SYS_MAX
+ 	if(!sym_buffer) sym_buffer = flext::MakeSymbol("buffer~");
+ 	if(!sym_size) sym_size = flext::MakeSymbol("size");
  #endif
  
***************
*** 107,111 ****
              
              if(ob_sym(p) != sym_buffer) {
!                 post("buffer: object '%s' not valid",GetString(sym)); 
                  if(valid) ret = -2;
              }
--- 110,114 ----
              
              if(ob_sym(p) != sym_buffer) {
!                 post("buffer: object '%s' not valid (type %s)",GetString(sym),GetString(ob_sym(p))); 
                  if(valid) ret = -2;
              }





More information about the Pd-cvs mailing list