Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ju32 (0.03 sec)

  1. src/cmd/compile/internal/test/float_test.go

    	si64, si32, si16, si8 := float32(-1<<63), float32(-1<<31), float32(-1<<15), float32(-1<<7)
    
    	// integer to float
    	if float64(u64) != du64 {
    		t.Errorf("float64(u64) != du64")
    	}
    	if float64(u32) != du32 {
    		t.Errorf("float64(u32) != du32")
    	}
    	if float64(u16) != du16 {
    		t.Errorf("float64(u16) != du16")
    	}
    	if float64(u8) != du8 {
    		t.Errorf("float64(u8) != du8")
    	}
    	if float64(i64) != di64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. test/zerodivide.go

    }
    
    var (
    	i, j, k       int   = 0, 0, 1
    	i8, j8, k8    int8  = 0, 0, 1
    	i16, j16, k16 int16 = 0, 0, 1
    	i32, j32, k32 int32 = 0, 0, 1
    	i64, j64, k64 int64 = 0, 0, 1
    
    	bb = []int16{2, 0}
    
    	u, v, w       uint    = 0, 0, 1
    	u8, v8, w8    uint8   = 0, 0, 1
    	u16, v16, w16 uint16  = 0, 0, 1
    	u32, v32, w32 uint32  = 0, 0, 1
    	u64, v64, w64 uint64  = 0, 0, 1
    	up, vp, wp    uintptr = 0, 0, 1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. test/prove.go

    // Look through all extensions
    func signExtNto64(x []int, j8 int8, j16 int16, j32 int32) int {
    	if len(x) < 22 {
    		return 0
    	}
    	if j8 >= 0 && j8 < 22 {
    		return x[j8] // ERROR "Proved IsInBounds$"
    	}
    	if j16 >= 0 && j16 < 22 {
    		return x[j16] // ERROR "Proved IsInBounds$"
    	}
    	if j32 >= 0 && j32 < 22 {
    		return x[j32] // ERROR "Proved IsInBounds$"
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. 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)
  8. src/strconv/ftoaryu.go

    	var dl, dc, du uint64
    	var dl0, dc0, du0 bool
    	if flt == &float32info {
    		var dl32, dc32, du32 uint32
    		dl32, _, dl0 = mult64bitPow10(uint32(ml), e2, q)
    		dc32, _, dc0 = mult64bitPow10(uint32(mc), e2, q)
    		du32, e2, du0 = mult64bitPow10(uint32(mu), e2, q)
    		dl, dc, du = uint64(dl32), uint64(dc32), uint64(du32)
    	} else {
    		dl, _, dl0 = mult128bitPow10(ml, e2, q)
    		dc, _, dc0 = mult128bitPow10(mc, e2, q)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/aot/codegen_test.cc

                  xla::ShapeUtil::MakeShape(xla::F32, {1}),
                  xla::ShapeUtil::MakeShape(xla::S32, {5}),
              },
              xla::ShapeUtil::MakeTupleShape({
                  xla::ShapeUtil::MakeShape(xla::U32, {5, 6}),
                  xla::ShapeUtil::MakeShape(xla::F32, {1}),
                  xla::ShapeUtil::MakeShape(xla::S32, {5}),
              }))
              .ToProto();
      compile_result.entry_point = "entry_point";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top