Macro dwarf_term::check_misalign8[]

macro_rules! check_misalign8 {
    ( $ ptr : expr ) => { ... };
}

Checks that an address is aligned to a 8 byte bound.

If the result is non-zero, that's how many bytes past the most recent 8 byte bound you are.

#[macro_use]
extern crate retro_pixel;

fn main() {
  for x in 0 .. 100 {
    assert_eq!(check_misalign8!(x), x % 8);
  }
}