From: drowe67 Date: Thu, 21 Aug 2014 02:55:38 +0000 (+0000) Subject: optimisation of 8-16kHz funcs X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=3cac3f2f7060f8ed7446cfa480dc406df4786dd4;p=freetel-svn-tracking.git optimisation of 8-16kHz funcs git-svn-id: https://svn.code.sf.net/p/freetel/code@1812 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/fdmdv.c b/codec2-dev/src/fdmdv.c index fd0f3554..b57887e5 100644 --- a/codec2-dev/src/fdmdv.c +++ b/codec2-dev/src/fdmdv.c @@ -1716,21 +1716,28 @@ void fdmdv_get_demod_stats(struct FDMDV *fdmdv, struct FDMDV_STATS *fdmdv_stats) void fdmdv_8_to_16(float out16k[], float in8k[], int n) { - int i,j,k,l; + int i,k,l; + float acc; /* make sure n is an integer multiple of the oversampling rate, ow this function breaks */ assert((n % FDMDV_OS) == 0); + /* this version unrolled for specific FDMDV_OS */ + + assert(FDMDV_OS == 2); + for(i=0; i