Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29724
Modified Files: Tag: desiredata d_array.c d_osc.c Log Message: use -DBIGENDIAN
Index: d_array.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_array.c,v retrieving revision 1.3.4.3.2.4 retrieving revision 1.3.4.3.2.4.2.1 diff -C2 -d -r1.3.4.3.2.4 -r1.3.4.3.2.4.2.1 *** d_array.c 20 Apr 2006 22:20:39 -0000 1.3.4.3.2.4 --- d_array.c 8 Dec 2006 04:06:24 -0000 1.3.4.3.2.4.2.1 *************** *** 24,29 **** } t_tabwrite_tilde;
- static void tabwrite_tilde_tick(t_tabwrite_tilde *x); - static void *tabwrite_tilde_new(t_symbol *s) { --- 24,27 ---- *************** *** 523,587 **** /******************** tabosc4~ ***********************/
- /* this is all copied from d_osc.c... what include file could this go in? */ #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 */ - #else - #if defined(MSW) || defined(__CYGWIN__) - /* little-endian; most significant byte is at highest address */ - #define HIOFFSET 1 - #define LOWOFFSET 0 - #define int32 long #else - #ifdef __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 #endif - - #ifdef __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 ! ! #else ! #ifdef __APPLE__ ! #define int32 int /* a data type that has 32 bits */ ! #ifdef __BIG_ENDIAN__ ! #define HIOFFSET 0 /* word offset to find MSB */ ! #define LOWOFFSET 1 /* word offset to find LSB */ ! #elif defined(__LITTLE_ENDIAN__) ! #define HIOFFSET 1 ! #define LOWOFFSET 0 ! #endif /*__*_ENDIAN__*/ ! #endif /* __APPLE__ */ ! #endif /* __linux__ */ ! #endif /* MSW */ ! #endif /* SGI */
union tabfudge --- 521,536 ---- /******************** tabosc4~ ***********************/
#define UNITBIT32 1572864. /* 3*2^19; bit 32 has place value 1 */
! #ifdef BIGENDIAN #define HIOFFSET 0 /* word offset to find MSB */ #define LOWOFFSET 1 /* word offset to find LSB */ #else #define HIOFFSET 1 #define LOWOFFSET 0 #endif #include <sys/types.h> ! //#define int32 int32_t ! #define int32 int
union tabfudge *************** *** 746,751 **** } t_tabsend;
- static void tabsend_tick(t_tabsend *x); - static void *tabsend_new(t_symbol *s) { --- 695,698 ----
Index: d_osc.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_osc.c,v retrieving revision 1.2.4.1.2.4 retrieving revision 1.2.4.1.2.4.2.1 diff -C2 -d -r1.2.4.1.2.4 -r1.2.4.1.2.4.2.1 *** d_osc.c 30 Nov 2005 13:36:57 -0000 1.2.4.1.2.4 --- d_osc.c 8 Dec 2006 04:06:24 -0000 1.2.4.1.2.4.2.1 *************** *** 11,59 **** #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 */ ! #endif /* IRIX */ ! ! #if defined(MSW) || defined(__CYGWIN__) ! /* little-endian; most significant byte is at highest address */ #define HIOFFSET 1 #define LOWOFFSET 0 - #define int32 long - #endif - - #if defined(__FreeBSD__) || defined(MACOSX) - #include <machine/endian.h> - #endif - - #ifdef MACOSX - #define __BYTE_ORDER BYTE_ORDER - #define __LITTLE_ENDIAN LITTLE_ENDIAN - #endif - - #ifdef __linux__ - #include <endian.h> #endif
- #if defined(__unix__) || defined(MACOSX) - #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 - #endif /* __unix__ or MACOSX*/ - union tabfudge { --- 11,23 ---- #define UNITBIT32 1572864. /* 3*2^19; bit 32 has place value 1 */
! #define int32 int ! #ifdef BIGENDIAN #define HIOFFSET 0 /* word offset to find MSB */ #define LOWOFFSET 1 /* word offset to find LSB */ ! #else #define HIOFFSET 1 #define LOWOFFSET 0 #endif
union tabfudge {