Everyone says they don’t need compiler optimizations because they’re a good programmer, but nobody actually wants to compile with -O0.
-
-
/* possible ANSI violation */
-
/* UBs R us */
-
-
goto jin
-
I think my favorite thing about this code may be that we `goto ret0` rather than just returning 0
-
I'm assuming that this is for some kind of C Reasons
-
I assume it saved 2 bytes of code on VAX
-
Has anybody done an experiment where they implement C std lib in a reasonable way and compare performance with glibc? If musl is that, then I know what to do

- 1 more reply
New conversation -
-
-
@#$%@#%$@%#$#$%
-
the only good thing about it is that it doesn't switch the endianness of the processor dynamically
-
someone should benchmark this against musl when both are compiled with modern clang and gcc
-
Well the perf ratio is arbitrarily large since it's bad big-O.
-
Just search for a^Mb in a^Nb, N>>>M.
End of conversation
New conversation -
-
-
Its the naive quadratic algorithm, with all the branches tweaked for some particular version of gcc and particular cpu. Which ones, history has forgotten.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
- 1 more reply
New conversation -
-
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.