Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,760 for sfprintf (0.19 sec)

  1. src/cmd/compile/internal/ssa/_gen/allocators.go

    		fmt.Fprintf(w, "s = *sp\n")
    		fmt.Fprintf(w, "*sp = nil\n")
    		fmt.Fprintf(w, "c.hdr%s = append(c.hdr%s, sp)\n", a.name, a.name)
    	}
    	fmt.Fprintf(w, "}\n")
    	if a.resize != "" {
    		fmt.Fprintf(w, "s = %s\n", fmt.Sprintf(a.resize, "s", "n"))
    	}
    	fmt.Fprintf(w, "return s\n")
    	fmt.Fprintf(w, "}\n")
    	fmt.Fprintf(w, "func (c *Cache) free%s(s %s) {\n", a.name, a.typ)
    	fmt.Fprintf(w, "%s\n", fmt.Sprintf(a.clear, "s"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/mkbuiltin.go

    					fmt.Fprintf(w, "{%q, varTag, %d},\n", name.Name, typ)
    				}
    			}
    		default:
    			log.Fatal("unhandled decl type", decl)
    		}
    	}
    	fmt.Fprintln(w, "}")
    
    	fmt.Fprintln(w)
    	fmt.Fprintf(w, "func %sTypes() []*types.Type {\n", name)
    	fmt.Fprintf(w, "var typs [%d]*types.Type\n", len(interner.typs))
    	for i, typ := range interner.typs {
    		fmt.Fprintf(w, "typs[%d] = %s\n", i, typ)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/addmod.go

    		if err != nil {
    			log.Printf("%s: %v", arg, err)
    			exitCode = 1
    			continue
    		}
    
    		a := new(txtar.Archive)
    		title := arg
    		if !strings.Contains(arg, "@") {
    			title += "@" + vers
    		}
    		a.Comment = []byte(fmt.Sprintf("module %s\n\n", title))
    		a.Files = []txtar.File{
    			{Name: ".mod", Data: mod},
    			{Name: ".info", Data: info},
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:41:54 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. src/cmd/trace/main.go

    		divisor = 1 << 10
    	case b < 1<<30:
    		suffix = "MiB"
    		divisor = 1 << 20
    	case b < 1<<40:
    		suffix = "GiB"
    		divisor = 1 << 30
    	}
    	if divisor == 1 {
    		return fmt.Sprintf("%d %s", b, suffix)
    	}
    	return fmt.Sprintf("%.1f %s", float64(b)/float64(divisor), suffix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/arm/armasm/gnu.go

    				X += ", rrx"
    			} else {
    				X += fmt.Sprintf(", %s #%d", strings.ToLower(arg.Shift.String()), arg.Count)
    			}
    		} else {
    			X = fmt.Sprintf("#%d", arg.Offset)
    		}
    
    		switch arg.Mode {
    		case AddrOffset:
    			if X == "#0" {
    				return fmt.Sprintf("[%s]", R)
    			}
    			return fmt.Sprintf("[%s, %s]", R, X)
    		case AddrPreIndex:
    			return fmt.Sprintf("[%s, %s]!", R, X)
    		case AddrPostIndex:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 17:21:52 UTC 2016
    - 3.5K bytes
    - Viewed (0)
  6. src/log/log.go

    }
    
    // Fatal is equivalent to l.Print() followed by a call to [os.Exit](1).
    func (l *Logger) Fatal(v ...any) {
    	l.Output(2, fmt.Sprint(v...))
    	os.Exit(1)
    }
    
    // Fatalf is equivalent to l.Printf() followed by a call to [os.Exit](1).
    func (l *Logger) Fatalf(format string, v ...any) {
    	l.Output(2, fmt.Sprintf(format, v...))
    	os.Exit(1)
    }
    
    // Fatalln is equivalent to l.Println() followed by a call to [os.Exit](1).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  7. src/cmd/doc/pkg.go

    		tparam := pkg.formatTypeParams(n.TypeParams, depth)
    		param := joinStrings(params)
    		if len(results) == 0 {
    			return fmt.Sprintf("func%s(%s)", tparam, param)
    		}
    		result := joinStrings(results)
    		if !needParens {
    			return fmt.Sprintf("func%s(%s) %s", tparam, param, result)
    		}
    		return fmt.Sprintf("func%s(%s) (%s)", tparam, param, result)
    
    	case *ast.StructType:
    		if n.Fields == nil || len(n.Fields.List) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  8. src/internal/fmtsort/sort_test.go

    	case "*int":
    		ptr := key.Interface().(*int)
    		for i := range ints {
    			if ptr == &ints[i] {
    				return fmt.Sprintf("PTR%d", i)
    			}
    		}
    		return "PTR???"
    	case "unsafe.Pointer":
    		ptr := key.Interface().(unsafe.Pointer)
    		for i := range ints {
    			if ptr == unsafe.Pointer(&ints[i]) {
    				return fmt.Sprintf("UNSAFEPTR%d", i)
    			}
    		}
    		return "UNSAFEPTR???"
    	case "chan int":
    		c := key.Interface().(chan int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/arm/armasm/plan9x.go

    	case Endian:
    
    	case Imm:
    		return fmt.Sprintf("$%d", uint32(a))
    
    	case Mem:
    
    	case PCRel:
    		addr := uint32(pc) + 8 + uint32(a)
    		if s, base := symname(uint64(addr)); s != "" && uint64(addr) == base {
    			return fmt.Sprintf("%s(SB)", s)
    		}
    		return fmt.Sprintf("%#x", addr)
    
    	case Reg:
    		if a < 16 {
    			return fmt.Sprintf("R%d", int(a))
    		}
    
    	case RegList:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. src/cmd/cover/cover.go

    	// Declare the coverage struct as a package-level variable.
    	fmt.Fprintf(w, "\nvar %s = struct {\n", *varVar)
    	fmt.Fprintf(w, "\tCount     [%d]uint32\n", len(f.blocks))
    	fmt.Fprintf(w, "\tPos       [3 * %d]uint32\n", len(f.blocks))
    	fmt.Fprintf(w, "\tNumStmt   [%d]uint16\n", len(f.blocks))
    	fmt.Fprintf(w, "} {\n")
    
    	// Initialize the position array field.
    	fmt.Fprintf(w, "\tPos: [3 * %d]uint32{\n", len(f.blocks))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top