153a5a1b3Sopenharmony_ci/* Copyright (C) 2007 Hong Zhiqian */ 253a5a1b3Sopenharmony_ci/** 353a5a1b3Sopenharmony_ci @file profile_tm.h 453a5a1b3Sopenharmony_ci @author Hong Zhiqian 553a5a1b3Sopenharmony_ci @brief Various compatibility routines for Speex (TriMedia version) 653a5a1b3Sopenharmony_ci*/ 753a5a1b3Sopenharmony_ci/* 853a5a1b3Sopenharmony_ci Redistribution and use in source and binary forms, with or without 953a5a1b3Sopenharmony_ci modification, are permitted provided that the following conditions 1053a5a1b3Sopenharmony_ci are met: 1153a5a1b3Sopenharmony_ci 1253a5a1b3Sopenharmony_ci - Redistributions of source code must retain the above copyright 1353a5a1b3Sopenharmony_ci notice, this list of conditions and the following disclaimer. 1453a5a1b3Sopenharmony_ci 1553a5a1b3Sopenharmony_ci - Redistributions in binary form must reproduce the above copyright 1653a5a1b3Sopenharmony_ci notice, this list of conditions and the following disclaimer in the 1753a5a1b3Sopenharmony_ci documentation and/or other materials provided with the distribution. 1853a5a1b3Sopenharmony_ci 1953a5a1b3Sopenharmony_ci - Neither the name of the Xiph.org Foundation nor the names of its 2053a5a1b3Sopenharmony_ci contributors may be used to endorse or promote products derived from 2153a5a1b3Sopenharmony_ci this software without specific prior written permission. 2253a5a1b3Sopenharmony_ci 2353a5a1b3Sopenharmony_ci THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2453a5a1b3Sopenharmony_ci ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2553a5a1b3Sopenharmony_ci LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2653a5a1b3Sopenharmony_ci A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 2753a5a1b3Sopenharmony_ci CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 2853a5a1b3Sopenharmony_ci EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 2953a5a1b3Sopenharmony_ci PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 3053a5a1b3Sopenharmony_ci PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 3153a5a1b3Sopenharmony_ci LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 3253a5a1b3Sopenharmony_ci NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 3353a5a1b3Sopenharmony_ci SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3453a5a1b3Sopenharmony_ci*/ 3553a5a1b3Sopenharmony_ci/** 3653a5a1b3Sopenharmony_ci* @remarks This file provide some capabilities to measure clock cycles. 3753a5a1b3Sopenharmony_ci* Use this if unable to compile with TriMedia profile options 3853a5a1b3Sopenharmony_ci*/ 3953a5a1b3Sopenharmony_ci 4053a5a1b3Sopenharmony_ciextern int __profile_begin; 4153a5a1b3Sopenharmony_ciextern int __profile_end; 4253a5a1b3Sopenharmony_ci 4353a5a1b3Sopenharmony_ci#if TM_PROFILE 4453a5a1b3Sopenharmony_ci#define PROFILE_START() \ 4553a5a1b3Sopenharmony_ci { \ 4653a5a1b3Sopenharmony_ci __profile_begin = cycles(); \ 4753a5a1b3Sopenharmony_ci } \ 4853a5a1b3Sopenharmony_ci 4953a5a1b3Sopenharmony_ci#define PROFILE_STOP() \ 5053a5a1b3Sopenharmony_ci { \ 5153a5a1b3Sopenharmony_ci __profile_end = cycles(); \ 5253a5a1b3Sopenharmony_ci printf("%s\t%d\n", __FUNCTION__, end - begin); \ 5353a5a1b3Sopenharmony_ci } \ 5453a5a1b3Sopenharmony_ci 5553a5a1b3Sopenharmony_ci#else 5653a5a1b3Sopenharmony_ci#define PROFILE_START() 5753a5a1b3Sopenharmony_ci#define PROFILE_STOP() 5853a5a1b3Sopenharmony_ci#endif 5953a5a1b3Sopenharmony_ci 6053a5a1b3Sopenharmony_ci#if TM_PROFILE_SPXAUTOCORR 6153a5a1b3Sopenharmony_ci#define _SPX_AUTOCORR_START() PROFILE_START() 6253a5a1b3Sopenharmony_ci#define _SPX_AUTOCORR_STOP() PROFILE_STOP() 6353a5a1b3Sopenharmony_ci#else 6453a5a1b3Sopenharmony_ci#define _SPX_AUTOCORR_START() 6553a5a1b3Sopenharmony_ci#define _SPX_AUTOCORR_STOP() 6653a5a1b3Sopenharmony_ci#endif 6753a5a1b3Sopenharmony_ci 6853a5a1b3Sopenharmony_ci#if TM_PROFILE_INNERPROD 6953a5a1b3Sopenharmony_ci#define INNERPROD_START() PROFILE_START() 7053a5a1b3Sopenharmony_ci#define INNERPROD_STOP() PROFILE_STOP() 7153a5a1b3Sopenharmony_ci#else 7253a5a1b3Sopenharmony_ci#define INNERPROD_START() 7353a5a1b3Sopenharmony_ci#define INNERPROD_STOP() 7453a5a1b3Sopenharmony_ci#endif 7553a5a1b3Sopenharmony_ci 7653a5a1b3Sopenharmony_ci#if TM_PROFILE_PITCHXCORR 7753a5a1b3Sopenharmony_ci#define PITCHXCORR_START() PROFILE_START() 7853a5a1b3Sopenharmony_ci#define PITCHXCORR_STOP() PROFILE_STOP() 7953a5a1b3Sopenharmony_ci#else 8053a5a1b3Sopenharmony_ci#define PITCHXCORR_START() 8153a5a1b3Sopenharmony_ci#define PITCHXCORR_STOP() 8253a5a1b3Sopenharmony_ci#endif 8353a5a1b3Sopenharmony_ci 8453a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTEPITCHERROR 8553a5a1b3Sopenharmony_ci#define COMPUTEPITCHERROR_START() PROFILE_START() 8653a5a1b3Sopenharmony_ci#define COMPUTEPITCHERROR_STOP() PROFILE_STOP() 8753a5a1b3Sopenharmony_ci#else 8853a5a1b3Sopenharmony_ci#define COMPUTEPITCHERROR_START() 8953a5a1b3Sopenharmony_ci#define COMPUTEPITCHERROR_STOP() 9053a5a1b3Sopenharmony_ci#endif 9153a5a1b3Sopenharmony_ci 9253a5a1b3Sopenharmony_ci#if TM_PROFILE_PITCHGAINSEARCH3TAPVQ 9353a5a1b3Sopenharmony_ci#define PITCHGAINSEARCH3TAPVQ_START() PROFILE_START() 9453a5a1b3Sopenharmony_ci#define PITCHGAINSEARCH3TAPVQ_STOP() PROFILE_STOP() 9553a5a1b3Sopenharmony_ci#else 9653a5a1b3Sopenharmony_ci#define PITCHGAINSEARCH3TAPVQ_START() 9753a5a1b3Sopenharmony_ci#define PITCHGAINSEARCH3TAPVQ_STOP() 9853a5a1b3Sopenharmony_ci#endif 9953a5a1b3Sopenharmony_ci 10053a5a1b3Sopenharmony_ci#if TM_PROFILE_OPENLOOPNBESTPITCH 10153a5a1b3Sopenharmony_ci#define OPENLOOPNBESTPITCH_START() PROFILE_START() 10253a5a1b3Sopenharmony_ci#define OPENLOOPNBESTPITCH_STOP() PROFILE_STOP() 10353a5a1b3Sopenharmony_ci#else 10453a5a1b3Sopenharmony_ci#define OPENLOOPNBESTPITCH_START() 10553a5a1b3Sopenharmony_ci#define OPENLOOPNBESTPITCH_STOP() 10653a5a1b3Sopenharmony_ci#endif 10753a5a1b3Sopenharmony_ci 10853a5a1b3Sopenharmony_ci 10953a5a1b3Sopenharmony_ci#if TM_PROFILE_LSP_INTERPOLATE 11053a5a1b3Sopenharmony_ci#define LSPINTERPOLATE_START() PROFILE_START() 11153a5a1b3Sopenharmony_ci#define LSPINTERPOLATE_STOP() PROFILE_STOP() 11253a5a1b3Sopenharmony_ci#else 11353a5a1b3Sopenharmony_ci#define LSPINTERPOLATE_START() 11453a5a1b3Sopenharmony_ci#define LSPINTERPOLATE_STOP() 11553a5a1b3Sopenharmony_ci#endif 11653a5a1b3Sopenharmony_ci 11753a5a1b3Sopenharmony_ci#if TM_PROFILE_CHEBPOLYEVA 11853a5a1b3Sopenharmony_ci#define CHEBPOLYEVA_START() PROFILE_START() 11953a5a1b3Sopenharmony_ci#define CHEBPOLYEVA_STOP() PROFILE_STOP() 12053a5a1b3Sopenharmony_ci#else 12153a5a1b3Sopenharmony_ci#define CHEBPOLYEVA_START() 12253a5a1b3Sopenharmony_ci#define CHEBPOLYEVA_STOP() 12353a5a1b3Sopenharmony_ci#endif 12453a5a1b3Sopenharmony_ci 12553a5a1b3Sopenharmony_ci 12653a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTEQUANTWEIGHTS 12753a5a1b3Sopenharmony_ci#define COMPUTEQUANTWEIGHTS_START() PROFILE_START() 12853a5a1b3Sopenharmony_ci#define COMPUTEQUANTWEIGHTS_STOP() PROFILE_STOP() 12953a5a1b3Sopenharmony_ci#else 13053a5a1b3Sopenharmony_ci#define COMPUTEQUANTWEIGHTS_START() 13153a5a1b3Sopenharmony_ci#define COMPUTEQUANTWEIGHTS_STOP() 13253a5a1b3Sopenharmony_ci#endif 13353a5a1b3Sopenharmony_ci 13453a5a1b3Sopenharmony_ci#if TM_PROFILE_LSPQUANT 13553a5a1b3Sopenharmony_ci#define LSPQUANT_START() PROFILE_START() 13653a5a1b3Sopenharmony_ci#define LSPQUANT_STOP() PROFILE_STOP() 13753a5a1b3Sopenharmony_ci#else 13853a5a1b3Sopenharmony_ci#define LSPQUANT_START() 13953a5a1b3Sopenharmony_ci#define LSPQUANT_STOP() 14053a5a1b3Sopenharmony_ci#endif 14153a5a1b3Sopenharmony_ci 14253a5a1b3Sopenharmony_ci#if TM_PROFILE_LSPWEIGHTQUANT 14353a5a1b3Sopenharmony_ci#define LSPWEIGHTQUANT_START() PROFILE_START() 14453a5a1b3Sopenharmony_ci#define LSPWEIGHTQUANT_STOP() PROFILE_STOP() 14553a5a1b3Sopenharmony_ci#else 14653a5a1b3Sopenharmony_ci#define LSPWEIGHTQUANT_START() 14753a5a1b3Sopenharmony_ci#define LSPWEIGHTQUANT_STOP() 14853a5a1b3Sopenharmony_ci#endif 14953a5a1b3Sopenharmony_ci 15053a5a1b3Sopenharmony_ci#if TM_PROFILE_FIRMEM16 15153a5a1b3Sopenharmony_ci#define FIRMEM16_START() PROFILE_START() 15253a5a1b3Sopenharmony_ci#define FIRMEM16_STOP() PROFILE_STOP() 15353a5a1b3Sopenharmony_ci#else 15453a5a1b3Sopenharmony_ci#define FIRMEM16_START() 15553a5a1b3Sopenharmony_ci#define FIRMEM16_STOP() 15653a5a1b3Sopenharmony_ci#endif 15753a5a1b3Sopenharmony_ci 15853a5a1b3Sopenharmony_ci#if TM_PROFILE_IIRMEM16 15953a5a1b3Sopenharmony_ci#define IIRMEM16_START() PROFILE_START() 16053a5a1b3Sopenharmony_ci#define IIRMEM16_STOP() PROFILE_STOP() 16153a5a1b3Sopenharmony_ci#else 16253a5a1b3Sopenharmony_ci#define IIRMEM16_START() 16353a5a1b3Sopenharmony_ci#define IIRMEM16_STOP() 16453a5a1b3Sopenharmony_ci#endif 16553a5a1b3Sopenharmony_ci 16653a5a1b3Sopenharmony_ci#if TM_PROFILE_FILTERMEM16 16753a5a1b3Sopenharmony_ci#define FILTERMEM16_START() PROFILE_START() 16853a5a1b3Sopenharmony_ci#define FILTERMEM16_STOP() PROFILE_STOP() 16953a5a1b3Sopenharmony_ci#else 17053a5a1b3Sopenharmony_ci#define FILTERMEM16_START() 17153a5a1b3Sopenharmony_ci#define FILTERMEM16_STOP() 17253a5a1b3Sopenharmony_ci#endif 17353a5a1b3Sopenharmony_ci 17453a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTERMS16 17553a5a1b3Sopenharmony_ci#define COMPUTERMS16_START() PROFILE_START() 17653a5a1b3Sopenharmony_ci#define COMPUTERMS16_STOP() PROFILE_STOP() 17753a5a1b3Sopenharmony_ci#else 17853a5a1b3Sopenharmony_ci#define COMPUTERMS16_START() 17953a5a1b3Sopenharmony_ci#define COMPUTERMS16_STOP() 18053a5a1b3Sopenharmony_ci#endif 18153a5a1b3Sopenharmony_ci 18253a5a1b3Sopenharmony_ci#if TM_PROFILE_NORMALIZE16 18353a5a1b3Sopenharmony_ci#define NORMALIZE16_START() PROFILE_START() 18453a5a1b3Sopenharmony_ci#define NORMALIZE16_STOP() PROFILE_STOP() 18553a5a1b3Sopenharmony_ci#else 18653a5a1b3Sopenharmony_ci#define NORMALIZE16_START() 18753a5a1b3Sopenharmony_ci#define NORMALIZE16_STOP() 18853a5a1b3Sopenharmony_ci#endif 18953a5a1b3Sopenharmony_ci 19053a5a1b3Sopenharmony_ci#if TM_PROFILE_BWLPC 19153a5a1b3Sopenharmony_ci#define BWLPC_START() PROFILE_START() 19253a5a1b3Sopenharmony_ci#define BWLPC_STOP() PROFILE_STOP() 19353a5a1b3Sopenharmony_ci#else 19453a5a1b3Sopenharmony_ci#define BWLPC_START() 19553a5a1b3Sopenharmony_ci#define BWLPC_STOP() 19653a5a1b3Sopenharmony_ci#endif 19753a5a1b3Sopenharmony_ci 19853a5a1b3Sopenharmony_ci#if TM_PROFILE_HIGHPASS 19953a5a1b3Sopenharmony_ci#define HIGHPASS_START() PROFILE_START() 20053a5a1b3Sopenharmony_ci#define HIGHPASS_STOP() PROFILE_STOP() 20153a5a1b3Sopenharmony_ci#else 20253a5a1b3Sopenharmony_ci#define HIGHPASS_START() 20353a5a1b3Sopenharmony_ci#define HIGHPASS_STOP() 20453a5a1b3Sopenharmony_ci#endif 20553a5a1b3Sopenharmony_ci 20653a5a1b3Sopenharmony_ci#if TM_PROFILE_SIGNALMUL 20753a5a1b3Sopenharmony_ci#define SIGNALMUL_START() PROFILE_START() 20853a5a1b3Sopenharmony_ci#define SIGNALMUL_STOP() PROFILE_STOP() 20953a5a1b3Sopenharmony_ci#else 21053a5a1b3Sopenharmony_ci#define SIGNALMUL_START() 21153a5a1b3Sopenharmony_ci#define SIGNALMUL_STOP() 21253a5a1b3Sopenharmony_ci#endif 21353a5a1b3Sopenharmony_ci 21453a5a1b3Sopenharmony_ci#if TM_PROFILE_SIGNALDIV 21553a5a1b3Sopenharmony_ci#define SIGNALDIV_START() PROFILE_START() 21653a5a1b3Sopenharmony_ci#define SIGNALDIV_STOP() PROFILE_STOP() 21753a5a1b3Sopenharmony_ci#else 21853a5a1b3Sopenharmony_ci#define SIGNALDIV_START() 21953a5a1b3Sopenharmony_ci#define SIGNALDIV_STOP() 22053a5a1b3Sopenharmony_ci#endif 22153a5a1b3Sopenharmony_ci 22253a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTEIMPULSERESPONSE 22353a5a1b3Sopenharmony_ci#define COMPUTEIMPULSERESPONSE_START() PROFILE_START() 22453a5a1b3Sopenharmony_ci#define COMPUTEIMPULSERESPONSE_STOP() PROFILE_STOP() 22553a5a1b3Sopenharmony_ci#else 22653a5a1b3Sopenharmony_ci#define COMPUTEIMPULSERESPONSE_START() 22753a5a1b3Sopenharmony_ci#define COMPUTEIMPULSERESPONSE_STOP() 22853a5a1b3Sopenharmony_ci#endif 22953a5a1b3Sopenharmony_ci 23053a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTEWEIGHTEDCODEBOOK 23153a5a1b3Sopenharmony_ci#define COMPUTEWEIGHTEDCODEBOOK_START() PROFILE_START() 23253a5a1b3Sopenharmony_ci#define COMPUTEWEIGHTEDCODEBOOK_STOP() PROFILE_STOP() 23353a5a1b3Sopenharmony_ci#else 23453a5a1b3Sopenharmony_ci#define COMPUTEWEIGHTEDCODEBOOK_START() 23553a5a1b3Sopenharmony_ci#define COMPUTEWEIGHTEDCODEBOOK_STOP() 23653a5a1b3Sopenharmony_ci#endif 23753a5a1b3Sopenharmony_ci 23853a5a1b3Sopenharmony_ci#if TM_PROFILE_TARGETUPDATE 23953a5a1b3Sopenharmony_ci#define TARGETUPDATE_START() PROFILE_START() 24053a5a1b3Sopenharmony_ci#define TARGETUPDATE_STOP() PROFILE_STOP() 24153a5a1b3Sopenharmony_ci#else 24253a5a1b3Sopenharmony_ci#define TARGETUPDATE_START() 24353a5a1b3Sopenharmony_ci#define TARGETUPDATE_STOP() 24453a5a1b3Sopenharmony_ci#endif 24553a5a1b3Sopenharmony_ci 24653a5a1b3Sopenharmony_ci 24753a5a1b3Sopenharmony_ci#if TM_PROFILE_VQNBEST 24853a5a1b3Sopenharmony_ci#define VQNBEST_START() PROFILE_START() 24953a5a1b3Sopenharmony_ci#define VQNBEST_STOP() PROFILE_STOP() 25053a5a1b3Sopenharmony_ci#else 25153a5a1b3Sopenharmony_ci#define VQNBEST_START() 25253a5a1b3Sopenharmony_ci#define VQNBEST_STOP() 25353a5a1b3Sopenharmony_ci#endif 25453a5a1b3Sopenharmony_ci 25553a5a1b3Sopenharmony_ci#if TM_PROFILE_VQNBESTSIGN 25653a5a1b3Sopenharmony_ci#define VQNBESTSIGN_START() PROFILE_START() 25753a5a1b3Sopenharmony_ci#define VQNBESTSIGN_STOP() PROFILE_STOP() 25853a5a1b3Sopenharmony_ci#else 25953a5a1b3Sopenharmony_ci#define VQNBESTSIGN_START() 26053a5a1b3Sopenharmony_ci#define VQNBESTSIGN_STOP() 26153a5a1b3Sopenharmony_ci#endif 26253a5a1b3Sopenharmony_ci 26353a5a1b3Sopenharmony_ci#if TM_PROFILE_PREPROCESSANALYSIS 26453a5a1b3Sopenharmony_ci#define PREPROCESSANAYLSIS_START() PROFILE_START() 26553a5a1b3Sopenharmony_ci#define PREPROCESSANAYLSIS_STOP() PROFILE_STOP() 26653a5a1b3Sopenharmony_ci#else 26753a5a1b3Sopenharmony_ci#define PREPROCESSANAYLSIS_START() 26853a5a1b3Sopenharmony_ci#define PREPROCESSANAYLSIS_STOP() 26953a5a1b3Sopenharmony_ci#endif 27053a5a1b3Sopenharmony_ci 27153a5a1b3Sopenharmony_ci#if TM_PROFILE_UPDATENOISEPROB 27253a5a1b3Sopenharmony_ci#define UPDATENOISEPROB_START() PROFILE_START() 27353a5a1b3Sopenharmony_ci#define UPDATENOISEPROB_STOP() PROFILE_STOP() 27453a5a1b3Sopenharmony_ci#else 27553a5a1b3Sopenharmony_ci#define UPDATENOISEPROB_START() 27653a5a1b3Sopenharmony_ci#define UPDATENOISEPROB_STOP() 27753a5a1b3Sopenharmony_ci#endif 27853a5a1b3Sopenharmony_ci 27953a5a1b3Sopenharmony_ci#if TM_PROFILE_COMPUTEGAINFLOOR 28053a5a1b3Sopenharmony_ci#define COMPUTEGAINFLOOR_START() PROFILE_START() 28153a5a1b3Sopenharmony_ci#define COMPUTEGAINFLOOR_STOP() PROFILE_STOP() 28253a5a1b3Sopenharmony_ci#else 28353a5a1b3Sopenharmony_ci#define COMPUTEGAINFLOOR_START() 28453a5a1b3Sopenharmony_ci#define COMPUTEGAINFLOOR_STOP() 28553a5a1b3Sopenharmony_ci#endif 28653a5a1b3Sopenharmony_ci 28753a5a1b3Sopenharmony_ci#if TM_PROFILE_FILTERDCNOTCH16 28853a5a1b3Sopenharmony_ci#define FILTERDCNOTCH16_START() PROFILE_START() 28953a5a1b3Sopenharmony_ci#define FILTERDCNOTCH16_STOP() PROFILE_STOP() 29053a5a1b3Sopenharmony_ci#else 29153a5a1b3Sopenharmony_ci#define FILTERDCNOTCH16_START() 29253a5a1b3Sopenharmony_ci#define FILTERDCNOTCH16_STOP() 29353a5a1b3Sopenharmony_ci#endif 29453a5a1b3Sopenharmony_ci 29553a5a1b3Sopenharmony_ci#if TM_PROFILE_MDFINNERPROD 29653a5a1b3Sopenharmony_ci#define MDFINNERPROD_START() PROFILE_START() 29753a5a1b3Sopenharmony_ci#define MDFINNERPROD_STOP() PROFILE_STOP() 29853a5a1b3Sopenharmony_ci#else 29953a5a1b3Sopenharmony_ci#define MDFINNERPROD_START() 30053a5a1b3Sopenharmony_ci#define MDFINNERPROD_STOP() 30153a5a1b3Sopenharmony_ci#endif 30253a5a1b3Sopenharmony_ci 30353a5a1b3Sopenharmony_ci#if TM_PROFILE_SPECTRALMULACCUM 30453a5a1b3Sopenharmony_ci#define SPECTRALMULACCUM_START() PROFILE_START() 30553a5a1b3Sopenharmony_ci#define SPECTRALMULACCUM_STOP() PROFILE_STOP() 30653a5a1b3Sopenharmony_ci#else 30753a5a1b3Sopenharmony_ci#define SPECTRALMULACCUM_START() 30853a5a1b3Sopenharmony_ci#define SPECTRALMULACCUM_STOP() 30953a5a1b3Sopenharmony_ci#endif 31053a5a1b3Sopenharmony_ci 31153a5a1b3Sopenharmony_ci#if TM_PROFILE_WEIGHTEDSPECTRALMULCONJ 31253a5a1b3Sopenharmony_ci#define WEIGHTEDSPECTRALMULCONJ_START() PROFILE_START() 31353a5a1b3Sopenharmony_ci#define WEIGHTEDSPECTRALMULCONJ_STOP() PROFILE_STOP() 31453a5a1b3Sopenharmony_ci#else 31553a5a1b3Sopenharmony_ci#define WEIGHTEDSPECTRALMULCONJ_START() 31653a5a1b3Sopenharmony_ci#define WEIGHTEDSPECTRALMULCONJ_STOP() 31753a5a1b3Sopenharmony_ci#endif 31853a5a1b3Sopenharmony_ci 31953a5a1b3Sopenharmony_ci#if TM_PROFILE_MDFADJUSTPROP 32053a5a1b3Sopenharmony_ci#define MDFADJUSTPROP_START() PROFILE_START() 32153a5a1b3Sopenharmony_ci#define MDFADJUSTPROP_STOP() PROFILE_STOP() 32253a5a1b3Sopenharmony_ci#else 32353a5a1b3Sopenharmony_ci#define MDFADJUSTPROP_START() 32453a5a1b3Sopenharmony_ci#define MDFADJUSTPROP_STOP() 32553a5a1b3Sopenharmony_ci#endif 32653a5a1b3Sopenharmony_ci 32753a5a1b3Sopenharmony_ci#if TM_PROFILE_SPEEXECHOGETRESIDUAL 32853a5a1b3Sopenharmony_ci#define SPEEXECHOGETRESIDUAL_START() PROFILE_START() 32953a5a1b3Sopenharmony_ci#define SPEEXECHOGETRESIDUAL_STOP() PROFILE_STOP() 33053a5a1b3Sopenharmony_ci#else 33153a5a1b3Sopenharmony_ci#define SPEEXECHOGETRESIDUAL_START() 33253a5a1b3Sopenharmony_ci#define SPEEXECHOGETRESIDUAL_STOP() 33353a5a1b3Sopenharmony_ci#endif 33453a5a1b3Sopenharmony_ci 33553a5a1b3Sopenharmony_ci#if TM_PROFILE_LSPENFORCEMARGIN 33653a5a1b3Sopenharmony_ci#define LSPENFORCEMARGIN_START() PROFILE_START() 33753a5a1b3Sopenharmony_ci#define LSPENFORCEMARGIN_STOP() PROFILE_STOP() 33853a5a1b3Sopenharmony_ci#else 33953a5a1b3Sopenharmony_ci#define LSPENFORCEMARGIN_START() 34053a5a1b3Sopenharmony_ci#define LSPENFORCEMARGIN_STOP() 34153a5a1b3Sopenharmony_ci#endif 34253a5a1b3Sopenharmony_ci 34353a5a1b3Sopenharmony_ci#if TM_PROFILE_LSPTOLPC 34453a5a1b3Sopenharmony_ci#define LSPTOLPC_START() PROFILE_START() 34553a5a1b3Sopenharmony_ci#define LSPTOLPC_STOP() PROFILE_STOP() 34653a5a1b3Sopenharmony_ci#else 34753a5a1b3Sopenharmony_ci#define LSPTOLPC_START() 34853a5a1b3Sopenharmony_ci#define LSPTOLPC_STOP() 34953a5a1b3Sopenharmony_ci#endif 35053a5a1b3Sopenharmony_ci 35153a5a1b3Sopenharmony_ci#if TM_PROFILE_MAXIMIZERANGE 35253a5a1b3Sopenharmony_ci#define MAXIMIZERANGE_START() PROFILE_START() 35353a5a1b3Sopenharmony_ci#define MAXIMIZERANGE_STOP() PROFILE_STOP() 35453a5a1b3Sopenharmony_ci#else 35553a5a1b3Sopenharmony_ci#define MAXIMIZERANGE_START() 35653a5a1b3Sopenharmony_ci#define MAXIMIZERANGE_STOP() 35753a5a1b3Sopenharmony_ci#endif 35853a5a1b3Sopenharmony_ci 35953a5a1b3Sopenharmony_ci#if TM_PROFILE_RENORMRANGE 36053a5a1b3Sopenharmony_ci#define RENORMRANGE_START() PROFILE_START() 36153a5a1b3Sopenharmony_ci#define RENORMRANGE_STOP() PROFILE_STOP() 36253a5a1b3Sopenharmony_ci#else 36353a5a1b3Sopenharmony_ci#define RENORMRANGE_START() 36453a5a1b3Sopenharmony_ci#define RENORMRANGE_STOP() 36553a5a1b3Sopenharmony_ci#endif 36653a5a1b3Sopenharmony_ci 36753a5a1b3Sopenharmony_ci#if TM_PROFILE_POWERSPECTRUM 36853a5a1b3Sopenharmony_ci#define POWERSPECTRUM_START() PROFILE_START() 36953a5a1b3Sopenharmony_ci#define POWERSPECTRUM_STOP() PROFILE_STOP() 37053a5a1b3Sopenharmony_ci#else 37153a5a1b3Sopenharmony_ci#define POWERSPECTRUM_START() 37253a5a1b3Sopenharmony_ci#define POWERSPECTRUM_STOP() 37353a5a1b3Sopenharmony_ci#endif 37453a5a1b3Sopenharmony_ci 37553a5a1b3Sopenharmony_ci#if TM_PROFILE_QMFSYNTH 37653a5a1b3Sopenharmony_ci#define QMFSYNTH_START() PROFILE_START() 37753a5a1b3Sopenharmony_ci#define QMFSYNTH_STOP() PROFILE_STOP() 37853a5a1b3Sopenharmony_ci#else 37953a5a1b3Sopenharmony_ci#define QMFSYNTH_START() 38053a5a1b3Sopenharmony_ci#define QMFSYNTH_STOP() 38153a5a1b3Sopenharmony_ci#endif 38253a5a1b3Sopenharmony_ci 38353a5a1b3Sopenharmony_ci#if TM_PROFILE_QMFDECOMP 38453a5a1b3Sopenharmony_ci#define QMFDECOMP_START() PROFILE_START() 38553a5a1b3Sopenharmony_ci#define QMFDECOMP_STOP() PROFILE_STOP() 38653a5a1b3Sopenharmony_ci#else 38753a5a1b3Sopenharmony_ci#define QMFDECOMP_START() 38853a5a1b3Sopenharmony_ci#define QMFDECOMP_STOP() 38953a5a1b3Sopenharmony_ci#endif 39053a5a1b3Sopenharmony_ci 39153a5a1b3Sopenharmony_ci#if TM_PROFILE_FILTERBANKCOMPUTEBANK32 39253a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEBANK32_START() PROFILE_START() 39353a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEBANK32_STOP() PROFILE_STOP() 39453a5a1b3Sopenharmony_ci#else 39553a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEBANK32_START() 39653a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEBANK32_STOP() 39753a5a1b3Sopenharmony_ci#endif 39853a5a1b3Sopenharmony_ci 39953a5a1b3Sopenharmony_ci#if TM_PROFILE_FILTERBANKCOMPUTEPSD16 40053a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEPSD16_START() PROFILE_START() 40153a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEPSD16_STOP() PROFILE_STOP() 40253a5a1b3Sopenharmony_ci#else 40353a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEPSD16_START() 40453a5a1b3Sopenharmony_ci#define FILTERBANKCOMPUTEPSD16_STOP() 40553a5a1b3Sopenharmony_ci#endif 40653a5a1b3Sopenharmony_ci 40753a5a1b3Sopenharmony_ci 408