Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for overflows (0.17 sec)

  1. src/reflect/all_test.go

    		t.Errorf("%v should overflow float32", -ovfFloat32)
    	}
    
    	maxInt32 := int64(0x7fffffff)
    	if ovf := V(int32(0)).OverflowInt(maxInt32); ovf {
    		t.Errorf("%v wrongly overflows int32", maxInt32)
    	}
    	if ovf := V(int32(0)).OverflowInt(-1 << 31); ovf {
    		t.Errorf("%v wrongly overflows int32", -int64(1)<<31)
    	}
    	ovfInt32 := int64(1 << 31)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    discard high bits upon overflow, and programs may rely on "wrap around".
    </p>
    <p>
    For signed integers, the operations <code>+</code>,
    <code>-</code>, <code>*</code>, <code>/</code>, and <code>&lt;&lt;</code> may legally
    overflow and the resulting value exists and is deterministically defined
    by the signed integer representation, the operation, and its operands.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/s390x/asmz.go

    	case 71: // cmp reg $constant
    		v := c.vregoff(&p.To)
    		switch p.As {
    		case ACMP, ACMPW:
    			if int64(int32(v)) != v {
    				c.ctxt.Diag("%v overflows an int32", v)
    			}
    		case ACMPU, ACMPWU:
    			if int64(uint32(v)) != v {
    				c.ctxt.Diag("%v overflows a uint32", v)
    			}
    		}
    		if p.As == ACMP && int64(int16(v)) == v {
    			zRI(op_CGHI, uint32(p.From.Reg), uint32(v), asm)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 176.7K bytes
    - Viewed (0)
  4. src/database/sql/sql_test.go

    		{[]any{"Brad", int64(31)}, ""},
    		{[]any{"Bob", "32"}, ""},
    		{[]any{7, 9}, ""},
    
    		// Invalid conversions:
    		{[]any{"Brad", int64(0xFFFFFFFF)}, "sql: converting argument $2 type: sql/driver: value 4294967295 overflows int32"},
    		{[]any{"Brad", "strconv fail"}, `sql: converting argument $2 type: sql/driver: value "strconv fail" can't be converted to int32`},
    
    		// Wrong number of args:
    		{[]any{}, "sql: expected 2 arguments, got 0"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              }
            };
        Bar bar = getDone(transform(future, function, directExecutor()));
        assertSame(barChild, bar);
      }
    
      /*
       * Android does not handle this stack overflow gracefully... though somehow some other
       * stack-overflow tests work. It must depend on the exact place the error occurs.
       */
      @AndroidIncompatible
      @J2ktIncompatible
      @GwtIncompatible // StackOverflowError
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              }
            };
        Bar bar = getDone(transform(future, function, directExecutor()));
        assertSame(barChild, bar);
      }
    
      /*
       * Android does not handle this stack overflow gracefully... though somehow some other
       * stack-overflow tests work. It must depend on the exact place the error occurs.
       */
      @AndroidIncompatible
      @J2ktIncompatible
      @GwtIncompatible // StackOverflowError
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	gp := getg()
    
    	if gp.m.p != 0 {
    		// Call on the systemstack to avoid a nosplit overflow build failure
    		// on some platforms when built with -N -l. See #64113.
    		systemstack(func() {
    			throw("wirep: already in go")
    		})
    	}
    	if pp.m != 0 || pp.status != _Pidle {
    		// Call on the systemstack to avoid a nosplit overflow build failure
    		// on some platforms when built with -N -l. See #64113.
    		systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/x86/asm6.go

    		//
    		// For 64bit mode only LEAL is allowed to overflow.
    		// It's how https://golang.org/cl/59630 made it.
    		// crypto/sha1/sha1block_amd64.s depends on this feature.
    		//
    		// For 32bit mode rules are more permissive.
    		// If offset fits uint32, it's permitted.
    		// This is allowed for assembly that wants to use 32-bit hex
    		// constants, e.g. LEAL 0x99999999(AX), AX.
    		overflowOK := (ctxt.Arch.Family == sys.AMD64 && p.As == ALEAL) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  9. src/reflect/value.go

    type hiter struct {
    	key         unsafe.Pointer
    	elem        unsafe.Pointer
    	t           unsafe.Pointer
    	h           unsafe.Pointer
    	buckets     unsafe.Pointer
    	bptr        unsafe.Pointer
    	overflow    *[]unsafe.Pointer
    	oldoverflow *[]unsafe.Pointer
    	startBucket uintptr
    	offset      uint8
    	wrapped     bool
    	B           uint8
    	i           uint8
    	bucket      uintptr
    	checkBucket uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"type(self.val3) == int",
    				"type(self.val5) == int",
    			},
    			errors: map[string]string{
    				"self.val1 + 1 == 0": "integer overflow",
    				"self.val5 + 1 == 0": "integer overflow",
    				"1 / 0 == 1 / 0":     "division by zero",
    			},
    		},
    		{name: "numbers",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top