←back to thread

1764 points fatihky | 1 comments | | HN request time: 0.224s | source
Show context
jblow ◴[] No.12701702[source]
#9 is especially stupid because it's so context-dependent. SSE4 gives you a popcount instruction, for example, which would be easily the fastest way to do this, if available.
replies(2): >>12702641 #>>12702679 #
1. mortehu ◴[] No.12702641[source]
Which is why you ask follow-up questions instead of just giving the optimal solution for UltraSPARC and rejecting what would be the optimal solution for other CPUs.