projects
/
debian
/
gnuradio
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.2.2
[debian/gnuradio]
/
gnuradio-core
/
src
/
lib
/
filter
/
gr_fir_ccc_simd.cc
diff --git
a/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
b/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
index 8868b1a59b6988a4072281519a100d3051799d08..44fdeacdf6a3b36fce03dd633f88af45761fe173 100644
(file)
--- a/
gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
+++ b/
gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
@@
-1,6
+1,6
@@
/* -*- c++ -*- */
/*
/* -*- c++ -*- */
/*
- * Copyright 2002 Free Software Foundation, Inc.
+ * Copyright 2002
,2007
Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
*
* This file is part of GNU Radio
*
@@
-28,6
+28,7
@@
#include <assert.h>
#include <malloc16.h>
#include <iostream>
#include <assert.h>
#include <malloc16.h>
#include <iostream>
+#include <stdexcept>
using std::cerr;
using std::endl;
using std::cerr;
using std::endl;
@@
-105,6
+106,8
@@
gr_fir_ccc_simd::filter (const gr_complex input[])
if (ntaps () == 0)
return 0.0;
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
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory