~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to extern/fftw/dft/simd/q1b.c

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2003, 2006 Matteo Frigo
 
3
 * Copyright (c) 2003, 2006 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 "q1b.h"
 
23
 
 
24
#if HAVE_SIMD
 
25
static int okp(const ct_desc *d,
 
26
               const R *rio, const R *iio, 
 
27
               INT ios, INT vs, INT m, INT mb, INT me, INT dist,
 
28
               const planner *plnr)
 
29
{
 
30
     return (RIGHT_CPU()
 
31
             && ALIGNED(iio)
 
32
             && !NO_SIMDP(plnr)
 
33
             && SIMD_STRIDE_OK(ios)
 
34
             && SIMD_STRIDE_OK(vs)
 
35
             && SIMD_VSTRIDE_OK(dist)
 
36
             && rio == iio + 1
 
37
             && (m % VL) == 0
 
38
             && (mb % VL) == 0
 
39
             && (me % VL) == 0
 
40
             && (!d->s1 || (d->s1 == ios))
 
41
             && (!d->s2 || (d->s2 == vs))
 
42
             && (!d->dist || (d->dist == dist))
 
43
          );
 
44
}
 
45
const ct_genus GENUS = { okp, VL };
 
46
#endif