~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

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 "n2f.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
             && ALIGNEDA(ri)
 
32
             && ALIGNEDA(ro)
 
33
             && !NO_SIMDP(plnr)
 
34
             && SIMD_STRIDE_OKA(is)
 
35
             && SIMD_VSTRIDE_OKA(ivs)
 
36
             && SIMD_VSTRIDE_OKA(os) /* os == 2 enforced by codelet */
 
37
             && SIMD_STRIDE_OKPAIR(ovs)
 
38
             && ii == ri + 1
 
39
             && io == ro + 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