In Which DJ Fails Utterly To Write Good Code
06:23:18 <SIGFPE> charCompare took a branch and 7 instructions :-(
charCompare:
ldub [%o0], %o0
ldub [%o1], %o1
retl
sub %o0, %o1, %o0
So uh, eat my shorts DJ? =]
06:23:18 <SIGFPE> charCompare took a branch and 7 instructions :-(
charCompare:
ldub [%o0], %o0
ldub [%o1], %o1
retl
sub %o0, %o1, %o0
So uh, eat my shorts DJ? =]
March 1st, 2006 at 9:14 pm
I think he’s including the .global and .section declarations in that count. Though they’re not ops.
March 1st, 2006 at 10:10 pm
They’re clearly not ops. And a BRANCH!?
March 1st, 2006 at 10:23 pm
I special cased out null characters, so it took an extra three instructions.