Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TrailingZeros32 (0.4 sec)

  1. src/internal/fuzz/pcg.go

    			prod = uint64(v) * uint64(n)
    			low = uint32(prod)
    		}
    	}
    	return uint32(prod >> 32)
    }
    
    // exp2 generates n with probability 1/2^(n+1).
    func (r *pcgRand) exp2() int {
    	return bits.TrailingZeros32(r.uint32())
    }
    
    // bool generates a random bool.
    func (r *pcgRand) bool() bool {
    	return r.uint32()&1 == 0
    }
    
    // noCopy may be embedded into structs which must not be copied
    // after the first use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top