Generates rationals in (-1, 1]
| 150 | |
| 151 | // Generates rationals in (-1, 1] |
| 152 | __device__ static double getDoubleNegative11(uint num1, uint num2) { |
| 153 | uint32_t arr[2] = {num2, num1}; |
| 154 | uint64_t num; |
| 155 | |
| 156 | memcpy(&num, arr, sizeof(uint64_t)); |
| 157 | return fma(static_cast<double>(num), signed_factor, half_factor); |
| 158 | } |
| 159 | |
| 160 | namespace { |
| 161 |
no test coverage detected