Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 365 for bigptr (0.12 sec)

  1. src/cmd/compile/internal/ssa/fuse_test.go

    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Goto("checkPtr")),
    		Bloc("checkPtr",
    			Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"),
    			Valu("nilptr", OpConstNil, ptrType, 0, nil),
    			Valu("bool1", OpNeqPtr, c.config.Types.Bool, 0, nil, "ptr1", "nilptr"),
    			If("bool1", "then", "exit")),
    		Bloc("then",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	fuseLate(fun.f)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. test/fixedbugs/issue27695b.go

    package main
    
    import (
    	"reflect"
    	"runtime"
    	"unsafe"
    )
    
    var badPtr uintptr
    
    var sink []byte
    
    func init() {
    	// Allocate large enough to use largeAlloc.
    	b := make([]byte, 1<<16-1)
    	sink = b // force heap allocation
    	//  Any space between the object and the end of page is invalid to point to.
    	badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
    }
    
    func f(d func() *byte) *byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 29 20:25:24 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ## Dependencies for a group of *path operations*
    
    Later, when reading about how to structure bigger applications ([Bigger Applications - Multiple Files](../../tutorial/bigger-applications.md){.internal-link target=_blank}), possibly with multiple files, you will learn how to declare a single `dependencies` parameter for a group of *path operations*.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/cmp/cmp_test.go

    	{math.NaN(), math.Inf(-1), -1},
    	{math.Inf(-1), math.NaN(), +1},
    	{0.0, 0.0, 0},
    	{negzero, negzero, 0},
    	{negzero, 0.0, 0},
    	{0.0, negzero, 0},
    	{negzero, 1.0, -1},
    	{negzero, -1.0, +1},
    	{nilptr, nonnilptr, -1},
    	{nonnilptr, nilptr, 1},
    	{nonnilptr, nonnilptr, 0},
    }
    
    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/sigfwd.go

    }
    */
    import "C"
    
    func init() {
    	register("CgoSigfwd", CgoSigfwd)
    }
    
    var nilPtr *byte
    
    func f() (ret bool) {
    	defer func() {
    		if recover() == nil {
    			fmt.Fprintf(os.Stderr, "ERROR: couldn't raise SIGSEGV in Go\n")
    			C.exit(2)
    		}
    		ret = true
    	}()
    	*nilPtr = 1
    	return false
    }
    
    func CgoSigfwd() {
    	if os.Getenv("GO_TEST_CGOSIGFWD") == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/ReaderInputStream.java

      private static CharBuffer grow(CharBuffer buf) {
        char[] copy = Arrays.copyOf(buf.array(), buf.capacity() * 2);
        CharBuffer bigger = CharBuffer.wrap(copy);
        Java8Compatibility.position(bigger, buf.position());
        Java8Compatibility.limit(bigger, buf.limit());
        return bigger;
      }
    
      /** Handle the case of underflow caused by needing more input characters. */
      private void readMoreChars() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ReaderInputStream.java

      private static CharBuffer grow(CharBuffer buf) {
        char[] copy = Arrays.copyOf(buf.array(), buf.capacity() * 2);
        CharBuffer bigger = CharBuffer.wrap(copy);
        Java8Compatibility.position(bigger, buf.position());
        Java8Compatibility.limit(bigger, buf.limit());
        return bigger;
      }
    
      /** Handle the case of underflow caused by needing more input characters. */
      private void readMoreChars() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/shift_test.go

    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("SP", OpSP, c.config.Types.Uintptr, 0, nil),
    			Valu("argptr", OpOffPtr, ptyp, 8, nil, "SP"),
    			Valu("resptr", OpOffPtr, ptyp, 16, nil, "SP"),
    			Valu("load", OpLoad, typ, 0, nil, "argptr", "mem"),
    			Valu("c", OpConst64, c.config.Types.UInt64, amount, nil),
    			Valu("shift", op, typ, 0, nil, "load", "c"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/sigstack.go

    }
    
    func SigStack() {
    	C.DoThread(0)
    	C.DoThread(1)
    	C.DoThread(0)
    	C.DoThread(1)
    	println("OK")
    }
    
    var BadPtr *int
    
    //export SigStackCallback
    func SigStackCallback() {
    	// Cause the Go signal handler to run.
    	defer func() { recover() }()
    	*BadPtr = 42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. callbacks/associations.go

    					var (
    						rValLen   = db.Statement.ReflectValue.Len()
    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    						isPtr     = fieldType.Kind() == reflect.Ptr
    					)
    
    					if !isPtr {
    						fieldType = reflect.PtrTo(fieldType)
    					}
    
    					elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top