From: Loren Merritt Date: Sat, 1 Mar 2008 07:30:34 +0000 (+0000) Subject: faster array_non_zero X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78ec787957d66996336224fde5e0bec38bf11b3c;p=libx264 faster array_non_zero git-svn-id: svn://svn.videolan.org/x264/trunk@740 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/macroblock.h b/encoder/macroblock.h index d52668c6..3ca227da 100644 --- a/encoder/macroblock.h +++ b/encoder/macroblock.h @@ -58,8 +58,8 @@ void x264_denoise_dct( x264_t *h, int16_t *dct ); static inline int array_non_zero_int( void *v, int i_count ) { int i; - uint32_t *x = v; - i_count /= sizeof(uint32_t); + uint64_t *x = v; + i_count /= sizeof(uint64_t); for( i = 0; i < i_count; i++ ) if( x[i] ) return 1; return 0;