]> git.lizzy.rs Git - rust.git/commit
The original fixme #2699 was removed back in PR #6053.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 22 Nov 2013 17:00:21 +0000 (18:00 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 22 Nov 2013 17:00:21 +0000 (18:00 +0100)
commit861e6f5cd26b4a568d64d78ec85f3e67ab2eea7b
treea220a07429d647b93de6ad6238dd82cb0d09f672
parent747213a280ac5505e2537952f1d28efceda0bfcc
The original fixme #2699 was removed back in PR #6053.

I cannot tell whether the original comment was unsure about the
arithmetic calculations, or if it was unsure about the assumptions
being made about the alignment of the current allocation pointer.

The arithmetic calculation looks fine to me, though.  This technique
is documented e.g. in Henry Warren's "Hacker's Delight" (section 3-1).

(I am sure one can find it elsewhere too, its not an obscure
property.)
src/libstd/rt/global_heap.rs