Wrap masks as 64bit uint constants for compilers which can't infer.