Monthly Archives: June 2011

What the !@# is SSE2 good for: char search in long strings

You don’t need SSE4.2 to do some neat string operations with XMM registers. Case in point: using 16-byte parallelism, searching for a character in a null-terminated character string — aka strchr. Smart implementations of strchr don’t simply test each byte … Continue reading

Posted in Uncategorized | Tagged , , , | 10 Comments

Stupid gcc trick #2: finding all included files, recursively

“C” programmers live in a love-hate relationship with #include files. They make it possible to import and ignore details of implementation; but sometimes, you really want to know about the implementation. For example, suppose you want to find the definition … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments