(x)
| 62 | |
| 63 | |
| 64 | def uniform32_from_uint64(x): |
| 65 | x = np.uint64(x) |
| 66 | upper = np.array(x >> np.uint64(32), dtype=np.uint32) |
| 67 | lower = np.uint64(0xffffffff) |
| 68 | lower = np.array(x & lower, dtype=np.uint32) |
| 69 | joined = np.column_stack([lower, upper]).ravel() |
| 70 | return uint32_to_float32(joined) |
| 71 | |
| 72 | |
| 73 | def uniform32_from_uint53(x): |
no test coverage detected
searching dependent graphs…