using int for return type of movemask in nbtrue instead of ptrdiff_t