[go: up one dir, main page]

File: makeconfig.sh

package info (click to toggle)
fftw 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 6,528 kB
  • ctags: 3,756
  • sloc: ansic: 65,239; sh: 12,650; ml: 3,084; perl: 2,894; makefile: 408; fortran: 102
file content (43 lines) | stat: -rwxr-xr-x 767 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh

# This shell script generates the file config.c containing a table
# of the codelets

. ./config

cat $COPYRIGHT
echo
cat config_prelude
echo

# declare the external variables
for i in $NOTW
do
    echo "extern fftw_codelet_desc fftw_no_twiddle_${i}_desc;"
    echo "extern fftw_codelet_desc fftwi_no_twiddle_${i}_desc;"
done
for i in $TWIDDLE
do
    echo "extern fftw_codelet_desc fftw_twiddle_${i}_desc;"
    echo "extern fftw_codelet_desc fftwi_twiddle_${i}_desc;"
done

echo
echo

echo "fftw_codelet_desc *fftw_config[] = {"

for i in $NOTW
do
    echo "NOTW_CODELET(${i}),"
    echo "NOTWI_CODELET(${i}),"
done

for i in $TWIDDLE
do
    echo "TWIDDLE_CODELET(${i}),"
    echo "TWIDDLEI_CODELET(${i}),"
done

echo "(fftw_codelet_desc *) 0 "
echo "};"