replaced std.bitmanip