Converts two uint32s to a uint64.
| 128 | |
| 129 | // Converts two uint32s to a uint64. |
| 130 | XlaOp Uint32sToUint64(std::array<XlaOp, 2> u32s) { |
| 131 | XlaBuilder* builder = u32s[0].builder(); |
| 132 | return ConvertElementType(u32s[0], U64) | |
| 133 | ShiftLeft(ConvertElementType(u32s[1], U64), |
| 134 | ConstantR0WithType(builder, U64, 32)); |
| 135 | } |
| 136 | |
| 137 | // Given the initial state and the request number of random numbers to be |
| 138 | // generated, returns the input for the random number generator and a new state. |
no test coverage detected