Commit c49ce826 authored by Felix Paul Kühne's avatar Felix Paul Kühne

libdca: work-around a compiler bug

parent bdbc5fa0
...@@ -48,9 +48,6 @@ ifdef HAVE_DARWIN_OS ...@@ -48,9 +48,6 @@ ifdef HAVE_DARWIN_OS
export CC export CC
export CXX export CXX
export LD export LD
export RANLIB
export AR
export STRIP
endif endif
# *************************************************************************** # ***************************************************************************
...@@ -1365,6 +1362,9 @@ libdca-$(LIBDCA_VERSION).tar.bz2: ...@@ -1365,6 +1362,9 @@ libdca-$(LIBDCA_VERSION).tar.bz2:
libdca: libdca-$(LIBDCA_VERSION).tar.bz2 libdca: libdca-$(LIBDCA_VERSION).tar.bz2
$(EXTRACT_BZ2) $(EXTRACT_BZ2)
ifdef HAVE_DARWIN_9
( cd $@; patch -p0 < ../Patches/libdca-llvm-gcc.patch )
endif
.dca: libdca .dca: libdca
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
......
Index: libdca/parse.c
===================================================================
--- libdca/parse.c (revision 90)
+++ libdca/parse.c (working copy)
@@ -1193,11 +1193,14 @@
for (k=0;k<16;k++)
{
B[k] = 0.0;
- for (i=0;i<16;i++)
+
+ B[k]+=(raXin[0])*state->cos_mod[j++];
+
+ for (i=1;i<16;i++)
{
- if(i>0) B[k]+=(raXin[2*i]+raXin[2*i-1])*state->cos_mod[j++];
- else B[k]+=(raXin[2*i])*state->cos_mod[j++];
+ B[k]+=(raXin[2*i]+raXin[2*i-1])*state->cos_mod[j++];
}
+
SUM[k]=A[k]+B[k];
DIFF[k]=A[k]-B[k];
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment