This should no longer be necessary. dmd now has logic to detect code patterns like what follows this, and optimizes it to just read as a uint. This is similar to how ROL instructions are generated (like what rotl32() above assumes).

If it does not, please file a bug report.