search for: i_sum

Displaying 3 results from an estimated 3 matches for "i_sum".

2014 Nov 11
3
[LLVMdev] supporting SAD in loop vectorizer
...porting SAD in loop vectorizer > > Here's the simple SAD code: > --------------------------------------------------- > 1 #include <stdlib.h> > 2 > 3 extern int ly,lx; > 4 int sad_c( unsigned char *pix1, unsigned char *pix2) > 5 { > 6 int i_sum = 0; > 7 for( int x = 0; x < lx; x++ ) > 8 i_sum += abs( pix1[x] - pix2[x] ); > 9 return i_sum; > 10 } > 11 > ----------------------------------------------------- > > The loop vectorizer does vectorize the loop and then un...
2014 Nov 11
4
[LLVMdev] supporting SAD in loop vectorizer
...ectorizer > > > > Here's the simple SAD code: > > --------------------------------------------------- > > 1 #include <stdlib.h> > > 2 > > 3 extern int ly,lx; > > 4 int sad_c( unsigned char *pix1, unsigned char *pix2) > > 5 { > > 6 int i_sum = 0; > > 7 for( int x = 0; x < lx; x++ ) > > 8 i_sum += abs( pix1[x] - pix2[x] ); > > 9 return i_sum; > > 10 } > > 11 > > ----------------------------------------------------- > > > > The loop vectorizer does vectorize the loop and then unrolls it...
2014 Nov 04
3
[LLVMdev] supporting SAD in loop vectorizer
----- Original Message ----- > From: "Renato Golin" <renato.golin at linaro.org> > To: "Dibyendu Das" <Dibyendu.Das at amd.com> > Cc: llvmdev at cs.uiuc.edu > Sent: Tuesday, November 4, 2014 5:23:30 AM > Subject: Re: [LLVMdev] supporting SAD in loop vectorizer > > On 4 November 2014 11:06, Das, Dibyendu <Dibyendu.Das at amd.com> wrote: