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? =]

3 Responses to “In Which DJ Fails Utterly To Write Good Code”

  1. Paul Knight says:

    I think he’s including the .global and .section declarations in that count. Though they’re not ops.

  2. jauricchio says:

    They’re clearly not ops. And a BRANCH!?

  3. D.J. Capelis says:

    I special cased out null characters, so it took an extra three instructions.

Leave a Reply


Or, enter your OpenID URL to log in: (cookies required)

Just another WordPress weblog