News for hackers. Stuff that matters.
Re:Glibc's strlen implementation: Probably not what you'd guess by tlb on Tuesday March 10, 2009 @06:12PM (#510801)
In places where I've done this sort of thing, I prefer

  #ifdef NO_CLEVER_OPTIMIZATIONS
      obvious version
  #else
      complicated fast version
  #endif
It's good as documentation, good as a test case, and good for isolating weird problems like compiler optimization bugs.
Re:Glibc's strlen implementation: Probably not what you'd guess by path on Wednesday March 11, 2009 @01:33AM (#511333)
Agreed, that's a great way to handle the case