Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for Strtol (0.24 sec)

  1. src/regexp/testdata/testregex.c

    			if (*p == '+' || *p == '-')
    				m += strtol(p, &p, 10);
    		}
    		else
    			m = strtol(p, &p, 10);
    		if (*p++ != ',')
    			bad("improper answer\n", re, s, -1, test);
    		if (*p == '?')
    		{
    			n = -1;
    			p++;
    		}
    		else if (*p == 'R' && !memcmp(p, "RE_DUP_MAX", 10))
    		{
    			n = RE_DUP_MAX;
    			p += 10;
    			if (*p == '+' || *p == '-')
    				n += strtol(p, &p, 10);
    		}
    		else
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/compile/internal/ssa/_gen/dec.rules

        f2
        (Store {t.FieldType(1)}
          (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] dst)
          f1
          (Store {t.FieldType(0)}
            (OffPtr <t.FieldType(0).PtrTo()> [0] dst)
              f0 mem)))
    (Store dst (StructMake4 <t> f0 f1 f2 f3) mem) =>
      (Store {t.FieldType(3)}
        (OffPtr <t.FieldType(3).PtrTo()> [t.FieldOff(3)] dst)
        f3
        (Store {t.FieldType(2)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritedec.go

    	// result: (Store {t.FieldType(2)} (OffPtr <t.FieldType(2).PtrTo()> [t.FieldOff(2)] dst) f2 (Store {t.FieldType(1)} (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] dst) f1 (Store {t.FieldType(0)} (OffPtr <t.FieldType(0).PtrTo()> [0] dst) f0 mem)))
    	for {
    		dst := v_0
    		if v_1.Op != OpStructMake3 {
    			break
    		}
    		t := v_1.Type
    		f2 := v_1.Args[2]
    		f0 := v_1.Args[0]
    		f1 := v_1.Args[1]
    		mem := v_2
    		v.reset(OpStore)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/cse_test.go

    	c := testConfig(t)
    	a := c.Temp(c.config.Types.Int8.PtrTo())
    
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sp", OpSP, c.config.Types.Uintptr, 0, nil),
    			Valu("sb1", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("sb2", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("addr1", OpAddr, c.config.Types.Int64.PtrTo(), 0, nil, "sb1"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/regalloc_test.go

    	f := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("x", OpArg, c.config.Types.Int64, 0, c.Temp(c.config.Types.Int64)),
    			Valu("p", OpArg, c.config.Types.Int64.PtrTo(), 0, c.Temp(c.config.Types.Int64.PtrTo())),
    			Valu("a", OpAMD64TESTQ, types.TypeFlags, 0, nil, "x", "x"),
    			Goto("loop1"),
    		),
    		Bloc("loop1",
    			Valu("y", OpAMD64MULQ, c.config.Types.Int64, 0, nil, "x", "x"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/branchelim_test.go

    					Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    					Valu("const1", OpConst32, intType, 1, nil),
    					Valu("const2", OpConst32, intType, 2, nil),
    					Valu("addr", OpAddr, boolType.PtrTo(), 0, nil, "sb"),
    					Valu("cond", OpLoad, boolType, 0, nil, "addr", "start"),
    					If("cond", "b2", "b3")),
    				Bloc("b2",
    					Goto("b3")),
    				Bloc("b3",
    					Valu("phi", OpPhi, intType, 0, nil, "const1", "const2"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  8. 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)
  9. callbacks/associations.go

    				isPtr := fieldType.Kind() == reflect.Ptr
    				if !isPtr {
    					fieldType = reflect.PtrTo(fieldType)
    				}
    				elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				joins := reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.JoinTable.ModelType)), 0, 10)
    				objs := []reflect.Value{}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  10. 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)
Back to top