Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 553 for Shift2 (0.1 sec)

  1. test/fixedbugs/issue60601.go

    import (
    	"strings"
    	"unsafe"
    )
    
    func shift[T any]() int64 {
    	return 1 << unsafe.Sizeof(*new(T))
    }
    
    func div[T any]() uintptr {
    	return 1 / unsafe.Sizeof(*new(T))
    }
    
    func add[T any]() int64 {
    	return 1<<63 - 1 + int64(unsafe.Sizeof(*new(T)))
    }
    
    func main() {
    	shift[[62]byte]()
    	shift[[63]byte]()
    	shift[[64]byte]()
    	shift[[100]byte]()
    	shift[[1e6]byte]()
    
    	add[[1]byte]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 15 18:41:09 UTC 2023
    - 862 bytes
    - Viewed (0)
  2. src/strconv/decimal_test.go

    }
    
    func TestDecimalShift(t *testing.T) {
    	for i := 0; i < len(shifttests); i++ {
    		test := &shifttests[i]
    		d := NewDecimal(test.i)
    		d.Shift(test.shift)
    		s := d.String()
    		if s != test.out {
    			t.Errorf("Decimal %v << %v = %v, want %v",
    				test.i, test.shift, s, test.out)
    		}
    	}
    }
    
    type roundTest struct {
    	i               uint64
    	nd              int
    	down, round, up string
    	int             uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/arm/armasm/inst.go

    		return "BE"
    	}
    	return "LE"
    }
    
    // A Shift describes an ARM shift operation.
    type Shift uint8
    
    const (
    	ShiftLeft        Shift = 0 // left shift
    	ShiftRight       Shift = 1 // logical (unsigned) right shift
    	ShiftRightSigned Shift = 2 // arithmetic (signed) right shift
    	RotateRight      Shift = 3 // right rotate
    	RotateRightExt   Shift = 4 // right rotate through carry (Count will always be 1)
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 22:23:32 UTC 2017
    - 7.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/generated.pb.go

    		case 0:
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return 0, io.ErrUnexpectedEOF
    				}
    				iNdEx++
    				if dAtA[iNdEx-1] < 0x80 {
    					break
    				}
    			}
    		case 1:
    			iNdEx += 8
    		case 2:
    			var length int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/extensions/v1beta1/generated.pb.go

    	iNdEx := 0
    	for iNdEx < l {
    		preIndex := iNdEx
    		var wire uint64
    		for shift := uint(0); ; shift += 7 {
    			if shift >= 64 {
    				return ErrIntOverflowGenerated
    			}
    			if iNdEx >= l {
    				return io.ErrUnexpectedEOF
    			}
    			b := dAtA[iNdEx]
    			iNdEx++
    			wire |= uint64(b&0x7F) << shift
    			if b < 0x80 {
    				break
    			}
    		}
    		fieldNum := int32(wire >> 3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 293.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/authorization/v1beta1/generated.pb.go

    	iNdEx := 0
    	for iNdEx < l {
    		preIndex := iNdEx
    		var wire uint64
    		for shift := uint(0); ; shift += 7 {
    			if shift >= 64 {
    				return ErrIntOverflowGenerated
    			}
    			if iNdEx >= l {
    				return io.ErrUnexpectedEOF
    			}
    			b := dAtA[iNdEx]
    			iNdEx++
    			wire |= uint64(b&0x7F) << shift
    			if b < 0x80 {
    				break
    			}
    		}
    		fieldNum := int32(wire >> 3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 101K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_proto.go

    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return 0, io.ErrUnexpectedEOF
    				}
    				iNdEx++
    				if data[iNdEx-1] < 0x80 {
    					break
    				}
    			}
    			return iNdEx, nil
    		case 1:
    			iNdEx += 8
    			return iNdEx, nil
    		case 2:
    			var length int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 05:31:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/storage/v1beta1/generated.pb.go

    	iNdEx := 0
    	for iNdEx < l {
    		preIndex := iNdEx
    		var wire uint64
    		for shift := uint(0); ; shift += 7 {
    			if shift >= 64 {
    				return ErrIntOverflowGenerated
    			}
    			if iNdEx >= l {
    				return io.ErrUnexpectedEOF
    			}
    			b := dAtA[iNdEx]
    			iNdEx++
    			wire |= uint64(b&0x7F) << shift
    			if b < 0x80 {
    				break
    			}
    		}
    		fieldNum := int32(wire >> 3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 133.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/certificates/v1beta1/generated.pb.go

    		case 0:
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return 0, io.ErrUnexpectedEOF
    				}
    				iNdEx++
    				if dAtA[iNdEx-1] < 0x80 {
    					break
    				}
    			}
    		case 1:
    			iNdEx += 8
    		case 2:
    			var length int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.pb.go

    		case 0:
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return 0, ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return 0, io.ErrUnexpectedEOF
    				}
    				iNdEx++
    				if dAtA[iNdEx-1] < 0x80 {
    					break
    				}
    			}
    		case 1:
    			iNdEx += 8
    		case 2:
    			var length int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 35.9K bytes
    - Viewed (0)
Back to top