use duff's devices to accelerate code