Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"06-14-11 - A simple allocator"

3 Comments -

1 – 3 of 3
Blogger Arseny Kapoulkine said...

Bottom and top bit indices are related: value & -value gives you the number where the only set bit is the bottom (least significant) one, then you can use clz.

June 15, 2011 at 10:14 AM

Blogger cbloom said...

Yeah, of course. Amended.

June 15, 2011 at 10:38 AM

Blogger Cyan said...

Up to now, i've been using a LIFO list or table in order to track slot allocation.
Obviously, since the table costs one pointer per slot, each slot has to be "reasonably sized" for this strategy to be effective.

September 10, 2012 at 4:52 AM

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.