Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
soc:2008:memsearch [2009/03/25 07:27]
mcb30 created
soc:2008:memsearch [2009/03/25 07:36] (current)
mcb30
Line 41: Line 41:
                            ​uint32_t pattern, uint32_t mask ) {                            ​uint32_t pattern, uint32_t mask ) {
         uint32_t *test;         uint32_t *test;
 +    ​
 +        assert ( ( len % sizeof ( *test ) ) == 0 );
     ​     ​
         for ( test = start ; len ; test++, len -= sizeof ( *test ) ) {         for ( test = start ; len ; test++, len -= sizeof ( *test ) ) {

QR Code
QR Code soc:2008:memsearch (generated for current page)