- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 185 for iota (0.38 sec)
-
src/crypto/internal/bigmod/_asm/nat_amd64_asm.go
for i := 0; i < bits/64; i++ { hi, lo := GP64(), GP64() Comment("Iteration " + strconv.Itoa(i)) MULXQ(x.Offset(i*8), lo, hi) ADCXQ(carry, lo) ADOXQ(z.Offset(i*8), lo) MOVQ(lo, z.Offset(i*8)) i++ Comment("Iteration " + strconv.Itoa(i)) MULXQ(x.Offset(i*8), lo, carry) ADCXQ(hi, lo) ADOXQ(z.Offset(i*8), lo) MOVQ(lo, z.Offset(i*8)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 22:37:58 UTC 2023 - 2.5K bytes - Viewed (0) -
src/os/user/lookup_stubs.go
} func currentUID() string { if id := os.Getuid(); id >= 0 { return strconv.Itoa(id) } // Note: Windows returns -1, but this file isn't used on // Windows anyway, so this empty return path shouldn't be // used. return "" } func currentGID() string { if id := os.Getgid(); id >= 0 { return strconv.Itoa(id) } return ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 16:09:09 UTC 2022 - 1.8K bytes - Viewed (0) -
src/strconv/doc.go
// of basic data types. // // # Numeric Conversions // // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string). // // i, err := strconv.Atoi("-42") // s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
test/typeparam/mapimp.dir/main.go
// license that can be found in the LICENSE file. package main import ( "./a" "fmt" "reflect" "strconv" ) func main() { got := a.Mapper([]int{1, 2, 3}, strconv.Itoa) want := []string{"1", "2", "3"} if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } fgot := a.Mapper([]float64{2.5, 2.3, 3.5}, func(f float64) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 661 bytes - Viewed (0) -
test/typeparam/stringable.go
for i, v := range s { if i > 0 { sb.WriteString(", ") } sb.WriteString(v.String()) } return sb.String() } type myint int func (a myint) String() string { return strconv.Itoa(int(a)) } func main() { v := StringableList[myint]{myint(1), myint(2)} if got, want := v.String(), "1, 2"; got != want { panic(fmt.Sprintf("got %s, want %s", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 833 bytes - Viewed (0) -
src/os/exec_plan9.go
if e != nil { return nil, &PathError{Op: "fork/exec", Path: name, Err: e} } return newPIDProcess(pid), nil } func (p *Process) writeProcFile(file string, data string) error { f, e := OpenFile("/proc/"+itoa.Itoa(p.Pid)+"/"+file, O_WRONLY, 0) if e != nil { return e } defer f.Close() _, e = f.Write([]byte(data)) return e } func (p *Process) signal(sig Signal) error { switch p.pidStatus() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0) -
src/strconv/itoa_test.go
t.Errorf("AppendUint(%q, %v, %v) = %q want %v", "abc", uint64(test.in), test.base, x, test.out) } } if test.base == 10 && int64(int(test.in)) == test.in { s := Itoa(int(test.in)) if s != test.out { t.Errorf("Itoa(%v) = %v want %v", test.in, s, test.out) } } } // Override when base is illegal defer func() { if r := recover(); r == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 15 21:09:39 UTC 2022 - 5.8K bytes - Viewed (0) -
src/net/interface_plan9.go
} func readInterface(i int) (*Interface, error) { ifc := &Interface{ Index: i + 1, // Offset the index by one to suit the contract Name: netdir + "/ipifc/" + itoa.Itoa(i), // Name is the full path to the interface path in plan9 } ifcstat := ifc.Name + "/status" ifcstatf, err := open(ifcstat) if err != nil { return nil, err } defer ifcstatf.close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 4.7K bytes - Viewed (0) -
src/math/big/intmarsh.go
return nil } // MarshalText implements the [encoding.TextMarshaler] interface. func (x *Int) MarshalText() (text []byte, err error) { if x == nil { return []byte("<nil>"), nil } return x.abs.itoa(x.neg, 10), nil } // UnmarshalText implements the [encoding.TextUnmarshaler] interface. func (z *Int) UnmarshalText(text []byte) error { if _, ok := z.setFromScanner(bytes.NewReader(text), 0); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/gover/local.go
if TestVersion != "" { toolVers = TestVersion } goVers = FromToolchain(toolVers) if goVers == "" { // Development branch. Use "Dev" version with just 1.N, no rc1 or .0 suffix. goVers = "1." + strconv.Itoa(goversion.Version) toolVers = "go" + goVers } return goVers, toolVers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 15:20:23 UTC 2023 - 1.1K bytes - Viewed (0)