X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Flib%2Ffilter%2Fgr_fir_ccf_simd.cc;h=c20cd4e623fc3e6d3b91aa2d56433a7263051dac;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=0862ba1f0b75dc64e479b5e1389475abb8f5a6c0;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc index 0862ba1f..c20cd4e6 100644 --- a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc +++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2002 Free Software Foundation, Inc. + * Copyright 2002,2007 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -28,6 +28,7 @@ #include #include #include +#include using std::cerr; using std::endl; @@ -103,6 +104,8 @@ gr_fir_ccf_simd::filter (const gr_complex input[]) if (ntaps () == 0) return 0.0; + if (((intptr_t) input & 0x7) != 0) + throw std::invalid_argument("gr_complex must be 8-byte aligned"); // Round input data address down to 16 byte boundary // NB: depending on the alignment of input[], memory