Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30159
Modified Files: Tag: devel_0_37 m_pd.h Log Message: PD_BADFLOAT now detects almost denormal numbers
Index: m_pd.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v retrieving revision 1.1.1.4.2.12 retrieving revision 1.1.1.4.2.13 diff -C2 -d -r1.1.1.4.2.12 -r1.1.1.4.2.13 *** m_pd.h 22 Feb 2004 05:52:16 -0000 1.1.1.4.2.12 --- m_pd.h 16 May 2004 21:21:04 -0000 1.1.1.4.2.13 *************** *** 640,647 **** #define PD_USE_TE_XPIX
! /* a test for NANs and denormals. Should only be necessary on i386. */ ! #ifdef __i386__ ! #define PD_BADFLOAT(f) ((((*(unsigned int*)&(f))&0x7f800000)==0) || \ (((*(unsigned int*)&(f))&0x7f800000)==0x7f800000)) #else --- 640,647 ---- #define PD_USE_TE_XPIX
! /* a test for NANs and nubers that are almost (TB) denormals. ! Should only be necessary on i386. */ #ifdef __i386__ ! #define PD_BADFLOAT(f) ((((*(unsigned int*)&(f))&0x7f800000) < 0x08000000) || \ (((*(unsigned int*)&(f))&0x7f800000)==0x7f800000)) #else