Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ju32 (0.04 sec)

  1. src/crypto/internal/boring/div_test.c

    #define nelem(x) (sizeof(x)/sizeof((x)[0]))
    
    typedef uint32_t u32;
    
    static u32 div(u32 x, u32 y, u32 *rp) {
    	int n = 0;
    	while((y>>(32-1)) != 1 && y < x) {
    		y<<=1;
    		n++;
    	}
    	u32 q = 0;
    	for(;; n--, y>>=1, q<<=1) {
    		if(x>=y) {
    			x -= y;
    			q |= 1;
    		}
    		if(n == 0)
    			break;
    	}
    	if(rp)
    		*rp = x;
    	return q;
    }
    
    u32 tests[] = {
    	0,
    	1,
    	2,
    	3,
    	4,
    	5,
    	6,
    	7,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 21:28:09 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. src/regexp/syntax/prog.go

    		bw(b, "\n")
    	}
    }
    
    func u32(i uint32) string {
    	return strconv.FormatUint(uint64(i), 10)
    }
    
    func dumpInst(b *strings.Builder, i *Inst) {
    	switch i.Op {
    	case InstAlt:
    		bw(b, "alt -> ", u32(i.Out), ", ", u32(i.Arg))
    	case InstAltMatch:
    		bw(b, "altmatch -> ", u32(i.Out), ", ", u32(i.Arg))
    	case InstCapture:
    		bw(b, "cap ", u32(i.Arg), " -> ", u32(i.Out))
    	case InstEmptyWidth:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. test/codegen/noextend.go

    	val64[1] = uint64(*u16)
    
    	// ppc64x:-"MOVWZ\tR\\d+,\\sR\\d+"
    	val64[2] = uint64(*u32)
    }
    
    func cmp16(u8 *uint8, x32 *int32, u32 *uint32, x64 *int64, u64 *uint64) bool {
    
    	// ppc64x:-"MOVBZ\tR\\d+,\\sR\\d+"
    	if uint16(*u8) == val16[0] {
    		return true
    	}
    
    	// ppc64x:-"MOVHZ\tR\\d+,\\sR\\d+"
    	if uint16(*u32>>16) == val16[0] {
    		return true
    	}
    
    	// ppc64x:-"MOVHZ\tR\\d+,\\sR\\d+"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. test/codegen/math.go

    	// ppc64x:"MTVSRD"
    	// mips64/hardfloat:"MOVV\tR.*, F.*"
    	return math.Float64frombits(u64+1) + 1
    }
    
    func toFloat32(u32 uint32) float32 {
    	// amd64:"MOVL\t[^X].*, X.*"
    	// arm64:"FMOVS\tR.*, F.*"
    	// mips64/hardfloat:"MOVW\tR.*, F.*"
    	return math.Float32frombits(u32+1) + 1
    }
    
    // Test that comparisons with constants converted to float
    // are evaluated at compile-time
    
    func constantCheck64() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/runtime/os_wasip1.go

    // retain the objects that could otherwise be reclaimed by the GC.
    type uintptr32 = uint32
    
    // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-size-u32
    type size = uint32
    
    // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-errno-variant
    type errno = uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top