Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Strtol (0.13 sec)

  1. src/cmd/cgo/internal/test/test.go

    }
    
    func testMultipleAssign(t *testing.T) {
    	p := C.CString("234")
    	n, m := C.strtol(p, nil, 345), C.strtol(p, nil, 10)
    	if runtime.GOOS == "openbsd" {
    		// Bug in OpenBSD strtol(3) - base > 36 succeeds.
    		if (n != 0 && n != 239089) || m != 234 {
    			t.Fatal("Strtol x2: ", n, m)
    		}
    	} else if n != 0 || m != 234 {
    		t.Fatal("Strtol x2: ", n, m)
    	}
    	C.free(unsafe.Pointer(p))
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore_test.go

    	// types of the address fields are identical (where identicalness is
    	// decided by the CSE pass).
    	c := testConfig(t)
    	t1 := c.config.Types.UInt64.PtrTo()
    	t2 := c.config.Types.UInt32.PtrTo()
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

        # Consider if there is a way to check if activation fusion is properly
        # done in MLIR level.
        # Tests that the quantized graph outputs similar values. The rtol and atol
        # values are arbitrary.
        self.assertAllClose(new_outputs, expected_outputs, rtol=0.3, atol=0.2)
    
        # Due to other meta data, the compression is not exactly 1/4.
        self.assertLess(
            testing.get_size_ratio(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

        (Load <t.FieldType(0)> (OffPtr <t.FieldType(0).PtrTo()> [0]             ptr) mem)
        (Load <t.FieldType(1)> (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] ptr) mem)
        (Load <t.FieldType(2)> (OffPtr <t.FieldType(2).PtrTo()> [t.FieldOff(2)] ptr) mem))
    (Load <t> ptr mem) && t.IsStruct() && t.NumFields() == 4 && CanSSA(t) =>
      (StructMake4
        (Load <t.FieldType(0)> (OffPtr <t.FieldType(0).PtrTo()> [0]             ptr) mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. scan.go

    				values[idx] = reflect.New(reflect.PtrTo(field.FieldType)).Interface()
    				continue
    			}
    			values[idx] = new(interface{})
    		}
    	} else if len(columnTypes) > 0 {
    		for idx, columnType := range columnTypes {
    			if columnType.ScanType() != nil {
    				values[idx] = reflect.New(reflect.PtrTo(columnType.ScanType())).Interface()
    			} else {
    				values[idx] = new(interface{})
    			}
    		}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. src/reflect/badlinkname.go

    func badlinkname_rtype_Size(*rtype) uintptr
    
    //go:linkname badlinkname_rtype_String reflect.(*rtype).String
    func badlinkname_rtype_String(*rtype) string
    
    //go:linkname badlinkname_rtype_ptrTo reflect.(*rtype).ptrTo
    func badlinkname_rtype_ptrTo(*rtype) *abi.Type
    
    //go:linkname badlinkname_Value_pointer reflect.(*Value).pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/reflect/type.go

    var ptrMap sync.Map // map[*rtype]*ptrType
    
    // PtrTo returns the pointer type with element t.
    // For example, if t represents type Foo, PtrTo(t) represents *Foo.
    //
    // PtrTo is the old spelling of [PointerTo].
    // The two functions behave identically.
    //
    // Deprecated: Superseded by [PointerTo].
    func PtrTo(t Type) Type { return PointerTo(t) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    		}
    		var e Node = NewLinksymExpr(pos, name.LinksymABI(abi), types.Types[types.TUINTPTR])
    		e = NewAddrExpr(pos, e)
    		e.SetType(types.Types[types.TUINTPTR].PtrTo())
    		e = NewConvExpr(pos, OCONVNOP, types.Types[types.TUINTPTR], e)
    		e.SetTypecheck(1)
    		return e
    	}
    	// fn is not a defined function. It must be ABIInternal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// cond: t.IsStruct() && t.NumFields() == 3 && CanSSA(t)
    	// result: (StructMake3 (Load <t.FieldType(0)> (OffPtr <t.FieldType(0).PtrTo()> [0] ptr) mem) (Load <t.FieldType(1)> (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] ptr) mem) (Load <t.FieldType(2)> (OffPtr <t.FieldType(2).PtrTo()> [t.FieldOff(2)] ptr) mem))
    	for {
    		t := v.Type
    		ptr := v_0
    		mem := v_1
    		if !(t.IsStruct() && t.NumFields() == 3 && CanSSA(t)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  10. schema/field.go

    				return &serializer{
    					Field:      field,
    					Serializer: si.Interface().(SerializerInterface),
    				}
    			},
    		}
    	}
    
    	if field.NewValuePool == nil {
    		field.NewValuePool = poolInitializer(reflect.PtrTo(field.IndirectFieldType))
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top