10131daccb
musepack encoder
18 lines
561 B
Plaintext
18 lines
561 B
Plaintext
$OpenBSD: patch-src_cvd_c,v 1.1.1.1 2006/12/19 19:15:25 steven Exp $
|
|
--- src/cvd.c.orig Fri Nov 10 21:04:46 2006
|
|
+++ src/cvd.c Tue Dec 19 09:26:37 2006
|
|
@@ -222,10 +222,10 @@ logfast ( float x )
|
|
tmp.d = x * x;
|
|
tmp.d *= tmp.d;
|
|
tmp.d *= tmp.d;
|
|
-#if ENDIAN == HAVE_LITTLE_ENDIAN
|
|
- return (tmp.n[1] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
|
|
-#else
|
|
+#ifdef WORDS_BIGENDIAN
|
|
return (tmp.n[0] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
|
|
+#else
|
|
+ return (tmp.n[1] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
|
|
#endif
|
|
}
|
|
|