From 596b6228f2cdc6022fc961fba17ca9c46000a558 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Fri, 6 Sep 2013 17:14:33 +0000 Subject: fix mingw build svn path=/trunk/externals/nusmuk/; revision=17203 --- nusmuk-audio/tabosc4c~.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'nusmuk-audio/tabosc4c~.c') diff --git a/nusmuk-audio/tabosc4c~.c b/nusmuk-audio/tabosc4c~.c index ad4e7a2..c299708 100644 --- a/nusmuk-audio/tabosc4c~.c +++ b/nusmuk-audio/tabosc4c~.c @@ -2,7 +2,7 @@ // can replace with tabosc4~ // most of this code comes from pd. just the interpolation shematic is diferent. -/* +/* This software is copyrighted by Miller Puckette and others. The following terms (the "Standard Improved BSD License") apply to all files associated with the software unless explicitly disclaimed in individual files: @@ -13,12 +13,12 @@ met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote - products derived from this software without specific prior + products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY @@ -27,7 +27,7 @@ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING @@ -54,7 +54,7 @@ THE POSSIBILITY OF SUCH DAMAGE. #define int32 long /* a data type that has 32 bits */ #endif /* IRIX */ -#ifdef MSW +#ifdef _WIN32 /* little-endian; most significant byte is at highest address */ #define HIOFFSET 1 #define LOWOFFSET 0 @@ -70,17 +70,17 @@ THE POSSIBILITY OF SUCH DAMAGE. #endif #if defined(__unix__) || defined(__APPLE__) -#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 */ +#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 #define int32 int32_t #endif /* __unix__ or __APPLE__*/ @@ -153,7 +153,7 @@ static t_int *tabosc4c_tilde_perform(t_int *w) d = addr[3].w_float; // cminusb = c-b; // *out++ = b + frac * ( -// cminusb - 0.1666667f * (1.-frac) * ( +// cminusb - 0.1666667f * (1.-frac) * ( // (d - a - 3.0f * cminusb) * frac + (d + 2.0f*a - 3.0f*b) ) ); // CH // a0 = d - c - a + b; -- cgit v1.2.1