Update of /cvsroot/pure-data/externals/iem16/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5288
Modified Files: iem16.c iem16.h iem16_table.h Added Files: del16read~.c del16write~.c iem16_delay.h tab16play~.c tab16read.c tab16read4.c tab16read4~.c tab16read~.c tab16receive~.c tab16send~.c tab16write.c tab16write~.c table16.c vd16~.c Removed Files: iem16_array.c iem16_array_tilde.c iem16_delay.c iem16_table.c Log Message: new filelayout (one c-file per object)
Index: iem16.h =================================================================== RCS file: /cvsroot/pure-data/externals/iem16/src/iem16.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** iem16.h 23 Nov 2004 15:29:47 -0000 1.1.1.1 --- iem16.h 1 Jun 2007 09:15:08 -0000 1.2 *************** *** 38,42 **** #define IEM16_SCALE_DOWN (1./32767)
! #define VERSION "0.1"
#endif --- 38,93 ---- #define IEM16_SCALE_DOWN (1./32767)
! #define VERSION "0.2" ! ! #define UNITBIT32 1572864. /* 3*2^19; bit 32 has place value 1 */ ! ! /* machine-dependent definitions. These ifdefs really ! should have been by CPU type and not by operating system! */ ! #ifdef __irix__ ! /* big-endian. Most significant byte is at low address in memory */ ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # define int32 long /* a data type that has 32 bits */ ! #elif defined __WIN32__ ! /* little-endian; most significant byte is at highest address */ ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # define int32 long ! #elif defined __FreeBSD__ ! # include <machine/endian.h> ! # if BYTE_ORDER == LITTLE_ENDIAN ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # else ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # endif /* BYTE_ORDER */ ! # include <sys/types.h> ! # define int32 int32_t ! #elif defined __linux__ ! # include <endian.h> ! # if !defined(__BYTE_ORDER) || !defined(__LITTLE_ENDIAN) ! # error No byte order defined ! # endif ! # if __BYTE_ORDER == __LITTLE_ENDIAN ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # else ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # endif /* __BYTE_ORDER */ ! # include <sys/types.h> ! # define int32 int32_t ! #elif defined __APPLE__ ! # ifdef __BIG_ENDIAN__ ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # else ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # endif ! # define int32 int /* a data type that has 32 bits */ ! #endif /* system */ !
#endif
Index: iem16_table.h =================================================================== RCS file: /cvsroot/pure-data/externals/iem16/src/iem16_table.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** iem16_table.h 29 May 2007 18:02:18 -0000 1.7 --- iem16_table.h 1 Jun 2007 09:15:09 -0000 1.8 *************** *** 32,84 ****
- #define UNITBIT32 1572864. /* 3*2^19; bit 32 has place value 1 */ - - /* machine-dependent definitions. These ifdefs really - should have been by CPU type and not by operating system! */ - #ifdef __irix__ - /* big-endian. Most significant byte is at low address in memory */ - # define HIOFFSET 0 /* word offset to find MSB */ - # define LOWOFFSET 1 /* word offset to find LSB */ - # define int32 long /* a data type that has 32 bits */ - #elif defined __WIN32__ - /* little-endian; most significant byte is at highest address */ - # define HIOFFSET 1 - # define LOWOFFSET 0 - # define int32 long - #elif defined __FreeBSD__ - # include <machine/endian.h> - # if BYTE_ORDER == LITTLE_ENDIAN - # define HIOFFSET 1 - # define LOWOFFSET 0 - # else - # define HIOFFSET 0 /* word offset to find MSB */ - # define LOWOFFSET 1 /* word offset to find LSB */ - # endif /* BYTE_ORDER */ - # include <sys/types.h> - # define int32 int32_t - #elif defined __linux__ - # include <endian.h> - # if !defined(__BYTE_ORDER) || !defined(__LITTLE_ENDIAN) - # error No byte order defined - # endif - # if __BYTE_ORDER == __LITTLE_ENDIAN - # define HIOFFSET 1 - # define LOWOFFSET 0 - # else - # define HIOFFSET 0 /* word offset to find MSB */ - # define LOWOFFSET 1 /* word offset to find LSB */ - # endif /* __BYTE_ORDER */ - # include <sys/types.h> - # define int32 int32_t - #elif defined __APPLE__ - # ifdef __BIG_ENDIAN__ - # define HIOFFSET 0 /* word offset to find MSB */ - # define LOWOFFSET 1 /* word offset to find LSB */ - # else - # define HIOFFSET 1 - # define LOWOFFSET 0 - # endif - # define int32 int /* a data type that has 32 bits */ - #endif /* system */
union tabfudge --- 32,35 ----
--- NEW FILE: table16.c --- (This appears to be a binary file; contents omitted.)
--- iem16_array_tilde.c DELETED ---
--- NEW FILE: tab16read4.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: tab16send~.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: tab16read.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: tab16read4~.c --- (This appears to be a binary file; contents omitted.)
--- iem16_table.c DELETED ---
--- NEW FILE: vd16~.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: del16write~.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: del16read~.c --- (This appears to be a binary file; contents omitted.)
Index: iem16.c =================================================================== RCS file: /cvsroot/pure-data/externals/iem16/src/iem16.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** iem16.c 29 Apr 2007 11:00:33 -0000 1.3 --- iem16.c 1 Jun 2007 09:15:08 -0000 1.4 *************** *** 23,30 ****
/* include some externals */ ! void iem16_table_setup(); ! void iem16_array_setup(); ! void iem16_array_tilde_setup(); ! void iem16_delay_setup();
void iem16_setup(void) { --- 23,39 ----
/* include some externals */ ! void del16read_tilde_setup(); ! void del16write_tilde_setup(); ! void tab16play_tilde_setup(); ! void tab16read4_setup(); ! void tab16read4_tilde_setup(); ! void tab16read_setup(); ! void tab16read_tilde_setup(); ! void tab16receive_tilde_setup(); ! void tab16send_tilde_setup(); ! void tab16write_setup(); ! void tab16write_tilde_setup(); ! void table16_setup(); ! void vd16_tilde_setup();
void iem16_setup(void) { *************** *** 35,43 **** } setupcount++; - iem16_table_setup(); - iem16_array_setup(); - iem16_array_tilde_setup(); - iem16_delay_setup();
/* ************************************** */ post("iem16:\t16bit-objects for low memory usage"); --- 44,62 ---- } setupcount++;
+ del16read_tilde_setup(); + del16write_tilde_setup(); + tab16play_tilde_setup(); + tab16read4_setup(); + tab16read4_tilde_setup(); + tab16read_setup(); + tab16read_tilde_setup(); + tab16receive_tilde_setup(); + tab16send_tilde_setup(); + tab16write_setup(); + tab16write_tilde_setup(); + table16_setup(); + vd16_tilde_setup(); + /* ************************************** */ post("iem16:\t16bit-objects for low memory usage");
--- NEW FILE: tab16write~.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: iem16_delay.h --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: tab16write.c --- (This appears to be a binary file; contents omitted.)
--- iem16_delay.c DELETED ---
--- NEW FILE: tab16read~.c --- (This appears to be a binary file; contents omitted.)
--- iem16_array.c DELETED ---
--- NEW FILE: tab16receive~.c --- (This appears to be a binary file; contents omitted.)
--- NEW FILE: tab16play~.c --- (This appears to be a binary file; contents omitted.)