Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"09-09-12 - A Simple Tight-Packed Array"

2 Comments -

1 – 2 of 2
Blogger ryg said...

"(and of course everything is a disaster on platforms where variable shift is slow)"
This one can be resolved for the low, low price of a single cache line on the most annoying platforms with that particular misfeature. :)

Similarly, a small LUT (32-64 entries) for small integer->float works well.

September 9, 2012 at 2:29 PM

Blogger cbloom said...

True, I guess 1 << n is easy; x << n is hard.

On most platforms this code is faster with a cached occupation count, but I hate redundant state so I left it out of the post.

September 12, 2012 at 3:17 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.