⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makemakefile.sh

📁 FFTW, a collection of fast C routines to compute the Discrete Fourier Transform in one or more dime
💻 SH
字号:
#! /bin/sh# This file generates the FFTW makefile, starting from Makefile.fftw.am.# It also generates the rfftw makefile.. ./config############################################################################ Compute the list of file namesnotw_codelets=""notwi_codelets=""for i in $NOTWdo    notw_codelets="$notw_codelets ${NOTW_PREFIX}${i}.c"    notwi_codelets="$notwi_codelets ${NOTWI_PREFIX}${i}.c"donetwiddle_codelets=""twiddlei_codelets=""for i in $TWIDDLEdo    twiddle_codelets="$twiddle_codelets ${TWID_PREFIX}${i}.c"    twiddlei_codelets="$twiddlei_codelets ${TWIDI_PREFIX}${i}.c"done# now substitute list in Makefile.fftw.am, to get Makefile.fftw# (the two cats are redundant, but the script is clearer this way)cat Makefile.fftw.am |    sed -e "s/@NOTW_CODELETS@/$notw_codelets/g" |    sed -e "s/@NOTWI_CODELETS@/$notwi_codelets/g" |    sed -e "s/@TWID_CODELETS@/$twiddle_codelets/g" |    sed -e "s/@TWIDI_CODELETS@/$twiddlei_codelets/g" |cat >Makefile.fftw############################################################################ Compute the list of file namesnotw_codelets=""notwi_codelets=""for i in $NOTW_REALdo    notw_codelets="$notw_codelets ${REAL2HC_PREFIX}${i}.c"    notwi_codelets="$notwi_codelets ${HC2REAL_PREFIX}${i}.c"donetwiddle_codelets=""twiddlei_codelets=""for i in $TWIDDLE_REALdo    twiddle_codelets="$twiddle_codelets ${HC2HC_FORWARD_PREFIX}${i}.c"    twiddlei_codelets="$twiddlei_codelets ${HC2HC_BACKWARD_PREFIX}${i}.c"done# now substitute list in Makefile.rfftw.am, to get Makefile.rfftw# (the two cats are redundant, but the script is clearer this way)cat Makefile.rfftw.am |    sed -e "s/@NOTW_CODELETS@/$notw_codelets/g" |    sed -e "s/@NOTWI_CODELETS@/$notwi_codelets/g" |    sed -e "s/@TWID_CODELETS@/$twiddle_codelets/g" |    sed -e "s/@TWIDI_CODELETS@/$twiddlei_codelets/g" |cat >Makefile.rfftw

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -