Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,969 for ptrint (0.13 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    type printer struct {
    	bytes.Buffer           // output buffer
    	comment      []Comment // pending end-of-line comments
    	margin       int       // left margin (indent), a number of tabs
    }
    
    // printf prints to the buffer.
    func (p *printer) printf(format string, args ...interface{}) {
    	fmt.Fprintf(p, format, args...)
    }
    
    // indent returns the position on the current line, in bytes, 0-indexed.
    func (p *printer) indent() int {
    	b := p.Bytes()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/go/ast/print.go

    		}
    	}()
    
    	// print x
    	if x == nil {
    		p.printf("nil\n")
    		return
    	}
    	p.print(reflect.ValueOf(x))
    	p.printf("\n")
    
    	return
    }
    
    // Print prints x to standard output, skipping nil fields.
    // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter).
    func Print(fset *token.FileSet, x any) error {
    	return Fprint(os.Stdout, fset, x, NotNilFilter)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/print.go

    	fprintFunc(p, f)
    	return h.Sum(nil)
    }
    
    func (f *Func) String() string {
    	var buf strings.Builder
    	p := stringFuncPrinter{w: &buf, printDead: true}
    	fprintFunc(p, f)
    	return buf.String()
    }
    
    // rewriteHash returns a hash of f suitable for detecting rewrite cycles.
    func (f *Func) rewriteHash() string {
    	h := notsha256.New()
    	p := stringFuncPrinter{w: h, printDead: false}
    	fprintFunc(p, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  4. src/runtime/print.go

    // call print recursively. There is also the problem of a crash
    // happening during the print routines and needing to acquire
    // the print lock to print information about the crash.
    // For both these reasons, let a thread acquire the printlock 'recursively'.
    
    func printlock() {
    	mp := getg().m
    	mp.locks++ // do not reschedule between printlock++ and lock(&debuglock).
    	mp.printlock++
    	if mp.printlock == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. test/print.go

    // run
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test internal print routines that are generated
    // by the print builtin.  This test is not exhaustive,
    // we're just checking that the formatting is correct.
    
    package main
    
    func main() {
    	println((interface{})(nil)) // printeface
    	println((interface {        // printiface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/print.cc

    void PrintPass::runOnOperation() {
      llvm::sys::SmartScopedLock<true> instrumentationLock(mutex_);
      OpPrintingFlags flags =
          OpPrintingFlags().elideLargeElementsAttrs().enableDebugInfo(false);
      getOperation()->print(*os_, flags);
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreatePrintPass(raw_ostream* os) {
      return std::make_unique<PrintPass>(os);
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 23:15:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/print.mlir

    // RUN: tf-opt %s --tf-print | FileCheck %s
    
    module {
    // Smoke test. We don't expect any modifications of the MLIR.
    
    // CHECK-LABEL: foo
    // CHECK: return
    func.func @foo(%arg0: tensor<f32>, %arg1: tensor<f32>) -> tensor<f32> {
      return %arg0 : tensor<f32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 23:15:17 UTC 2023
    - 260 bytes
    - Viewed (0)
  8. src/go/doc/comment/print.go

    	DocLinkBaseURL string
    
    	// TextPrefix is a prefix to print at the start of every line
    	// when generating text output using the Text method.
    	TextPrefix string
    
    	// TextCodePrefix is the prefix to print at the start of each
    	// preformatted (code block) line when generating text output,
    	// instead of (not in addition to) TextPrefix.
    	// If TextCodePrefix is the empty string, it defaults to TextPrefix+"\t".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. test/ken/string.go

    // license that can be found in the LICENSE file.
    
    // Test string operations including printing.
    
    package main
    
    func main() {
    	var c string
    
    	a := `abc`
    	b := `xyz`
    
    	/* print a literal */
    	print(`abc`)
    
    	/* print a variable */
    	print(b, "-")
    
    	/* catenate literals */
    	print(`abc`+`xyz`, "-")
    
    	/* catenate variables */
    	print(a+b, "-")
    
    	/* compare literals */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1.8K bytes
    - Viewed (0)
  10. hack/print-workspace-status.sh

    # build stamping with git information.
    #
    # It is still useful for obtaining kube::version::get_version_vars without
    # sourcing Kubernetes build internals.
    #
    # Usage: `hack/print-workspace-status.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    
    source "${KUBE_ROOT}/hack/lib/version.sh"
    kube::version::get_version_vars
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 06 11:19:29 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top