Lines Matching defs:rand
266 static inline xf_float makeNaN80(uint64_t rand) {
268 0x8000000000000000 | (rand & 0x3fffffffffffffff));
286 static inline TYPE_FP16 makeNaN16(uint16_t rand)
288 return fromRep16(0x7c00U | (rand & 0x7fffU));
291 static inline float makeNaN32(uint32_t rand)
293 return fromRep32(0x7f800000U | (rand & 0x7fffffU));
296 static inline double makeNaN64(uint64_t rand)
298 return fromRep64(0x7ff0000000000000UL | (rand & 0xfffffffffffffUL));
302 static inline tf_float makeNaN128(uint64_t rand) {
303 return fromRep128(0x7fff000000000000UL | (rand & 0xffffffffffffUL), 0x0UL);