~ubuntu-branches/ubuntu/utopic/fftw3/utopic

« back to all changes in this revision

Viewing changes to dft/simd/n1b.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-12-14 13:21:22 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20111214132122-l4avyl2kkr7vq5aj
Tags: 3.3-1ubuntu1
* Merge with Debian; remaining changes:
  - Revert the ARM workaround.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2003, 2007-8 Matteo Frigo
3
 
 * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
 *
19
 
 */
20
 
 
21
 
#include "codelet-dft.h"
22
 
#include "n1b.h"
23
 
 
24
 
#if HAVE_SIMD
25
 
static int okp(const kdft_desc *d,
26
 
               const R *ri, const R *ii, const R *ro, const R *io,
27
 
               INT is, INT os, INT vl, INT ivs, INT ovs, 
28
 
               const planner *plnr)
29
 
{
30
 
     return (RIGHT_CPU()
31
 
             && ALIGNED(ii)
32
 
             && ALIGNED(io)
33
 
             && !NO_SIMDP(plnr)
34
 
             && SIMD_STRIDE_OK(is)
35
 
             && SIMD_STRIDE_OK(os)
36
 
             && SIMD_VSTRIDE_OK(ivs)
37
 
             && SIMD_VSTRIDE_OK(ovs)
38
 
             && ri == ii + 1
39
 
             && ro == io + 1
40
 
             && (vl % VL) == 0
41
 
             && (!d->is || (d->is == is))
42
 
             && (!d->os || (d->os == os))
43
 
             && (!d->ivs || (d->ivs == ivs))
44
 
             && (!d->ovs || (d->ovs == ovs))
45
 
          );
46
 
}
47
 
 
48
 
const kdft_genus GENUS = { okp, VL };
49
 
#endif