]> git.lizzy.rs Git - rust.git/commit
auto merge of #10612 : pnkfelix/rust/remove-cut-and-pasted-rt-fixme, r=pcwalton
authorbors <bors@rust-lang.org>
Fri, 22 Nov 2013 20:41:36 +0000 (12:41 -0800)
committerbors <bors@rust-lang.org>
Fri, 22 Nov 2013 20:41:36 +0000 (12:41 -0800)
commit09ed7913e43cf0234a1bbe3f29dcd52c6a166961
treea8cc359123596c1e10e134dda52e62a7e92656da
parentcd9069ca734fe89fe446c16dc821e54b973506f5
parent861e6f5cd26b4a568d64d78ec85f3e67ab2eea7b
auto merge of #10612 : pnkfelix/rust/remove-cut-and-pasted-rt-fixme, r=pcwalton

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.)