(x)
| 51 | |
| 52 | |
| 53 | def uniform32_from_uint64(x): |
| 54 | x = np.uint64(x) |
| 55 | upper = np.array(x >> np.uint64(32), dtype=np.uint32) |
| 56 | lower = np.uint64(0xffffffff) |
| 57 | lower = np.array(x & lower, dtype=np.uint32) |
| 58 | joined = np.column_stack([lower, upper]).ravel() |
| 59 | return uint32_to_float32(joined) |
| 60 | |
| 61 | |
| 62 | def uniform32_from_uint53(x): |
no test coverage detected