Expose bitmask() function.