logbitp ported