The OpenD Programming Language

BitField.__vmap

optimization for bitwise operations

  1. auto __vmap(Fun fun)
    struct BitField(Field, I = typeof(cast()Field.init[size_t.init]))
    __vmap
    (
    Fun : LeftOp!(op, bool)
    string op
    )
    (
    Fun fun
    )
    if (
    op == "|" ||
    op == "&"
    ||
    op == "^"
    )
    if (
    __traits(isUnsigned, I)
    )
  2. auto __vmap(Fun fun)
  3. auto __vmap(Fun fun)

Meta