Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MinInt (0.1 sec)

  1. src/internal/types/testdata/check/const1.go

    	_ = int64(smallestFloat64 /* ERROR "cannot convert" */)
    )
    
    const (
    	_ int = minInt /* ERROR "overflows" */ - 1
    	_ int = minInt
    	_ int = maxInt
    	_ int = maxInt /* ERROR "overflows" */ + 1
    	_ int = smallestFloat64 /* ERROR "truncated" */
    
    	_ = int(minInt /* ERROR "overflows" */ - 1)
    	_ = int(minInt)
    	_ = int(maxInt)
    	_ = int(maxInt /* ERROR "overflows" */ + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/math/const_test.go

    	}
    	if v := uint64(MaxUint64); v+1 != 0 {
    		t.Errorf("MaxUint64 should wrap around to zero: %d", v+1)
    	}
    }
    
    func TestMaxInt(t *testing.T) {
    	if v := int(MaxInt); v+1 != MinInt {
    		t.Errorf("MaxInt should wrap around to MinInt: %d", v+1)
    	}
    	if v := int8(MaxInt8); v+1 != MinInt8 {
    		t.Errorf("MaxInt8 should wrap around to MinInt8: %d", v+1)
    	}
    	if v := int16(MaxInt16); v+1 != MinInt16 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 03 22:44:33 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. src/math/const.go

    )
    
    // Integer limit values.
    const (
    	intSize = 32 << (^uint(0) >> 63) // 32 or 64
    
    	MaxInt    = 1<<(intSize-1) - 1  // MaxInt32 or MaxInt64 depending on intSize.
    	MinInt    = -1 << (intSize - 1) // MinInt32 or MinInt64 depending on intSize.
    	MaxInt8   = 1<<7 - 1            // 127
    	MinInt8   = -1 << 7             // -128
    	MaxInt16  = 1<<15 - 1           // 32767
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 21 14:07:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. test/divmod.go

    		if x >= y {
    			x -= y
    			q |= 1
    		}
    		y >>= 1
    	}
    	return q, x	
    }
    
    // signed divide and mod: do unsigned and adjust signs.
    func idiv(x, y int64) (q, r int64) {
    	// special case for minint / -1 = minint
    	if x-1 > x && y == -1 {
    		return x, 0
    	}
    	ux := uint64(x)
    	uy := uint64(y)
    	if x < 0 {
    		ux = -ux
    	}
    	if y < 0 {
    		uy = -uy
    	}
    	uq, ur := udiv(ux, uy)
    	q = int64(uq)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 9.3K bytes
    - Viewed (0)
  5. src/encoding/gob/decgen.go

    	},
    	{
    		"float64",
    		"Float64",
    		`slice[i] = float64FromBits(state.decodeUint())`,
    	},
    	{
    		"int",
    		"Int",
    		`x := state.decodeInt()
    		// MinInt and MaxInt
    		if x < ^int64(^uint(0)>>1) || int64(^uint(0)>>1) < x {
    			error_(ovfl)
    		}
    		slice[i] = int(x)`,
    	},
    	{
    		"int16",
    		"Int16",
    		`x := state.decodeInt()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/runtime/defs_windows_arm64.go

    // So we set both here, to make a working _CONTEXT_CONTROL.
    const _CONTEXT_CONTROL = 0x400003
    
    type neon128 struct {
    	low  uint64
    	high int64
    }
    
    // See https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-arm64_nt_context
    type context struct {
    	contextflags uint32
    	cpsr         uint32
    	x            [31]uint64 // fp is x[29], lr is x[30]
    	xsp          uint64
    	pc           uint64
    	v            [32]neon128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    		//   the range and how it relates to number of CPUs is at https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-jobobject_cpu_rate_control_information
    		//   For process isolation, these are applied to the job object setting JOB_OBJECT_CPU_RATE_CONTROL_ENABLE, which can be set to either
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. cluster/gce/windows/testonly/user-profile.psm1

            [string]
            $password
        )
     
        $system = [ADSI]"WinNT://$env:COMPUTERNAME";
        $user = $system.Create("user",$userName);
        $user.SetPassword($password);
        $user.SetInfo();
     
        $flag=$user.UserFlags.value -bor 0x10000;
        $user.put("userflags",$flag);
        $user.SetInfo();
     
        $group = [ADSI]("WinNT://$env:COMPUTERNAME/Users");
        $group.PSBase.Invoke("Add", $user.PSBase.Path);
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 26 00:44:57 UTC 2019
    - 9.4K bytes
    - Viewed (0)
  9. maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

         */
        private static final String FAMILY_WIN9X = "win9x";
    
        /**
         * OS family that can be tested for. {@value}
         */
        public static final String FAMILY_NT = "winnt";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_OS2 = "os/2";
    
        /**
         * OS family that can be tested for. {@value}
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java

         */
        private static final String FAMILY_WIN9X = "win9x";
    
        /**
         * OS family that can be tested for. {@value}
         */
        public static final String FAMILY_NT = "winnt";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_OS2 = "os/2";
    
        /**
         * OS family that can be tested for. {@value}
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top