# std.rand.float: simplify leading zero calculations · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/23ef7a80601d553bc9cce24500c9d079883867a4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 23ef7a80601d553bc9cce24500c9d079883867a4

Requested commit: 23ef7a80601d553bc9cce24500c9d079883867a4

Commit: 23ef7a80601d553bc9cce24500c9d079883867a4

Tree: 413e4a65ba2bdfaec792212f5c39f1346fe03809

Author: Erik Arvstedt

Committer: Erik Arvstedt

## Message

```
std.rand.float: simplify leading zero calculations

This saves a `bitwise or` operation in the common case and
removes the (slightly magic) mask constants.

```

## Parents

- [1d5ea10bee39c6378c5d41597ed477075c3c667f](https://git.cafe/gitcafe/zig/commit/1d5ea10bee39c6378c5d41597ed477075c3c667f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/23ef7a80601d553bc9cce24500c9d079883867a4?format=markdown)
