Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tgfmt (0.08 sec)

  1. src/math/bits/make_examples.go

    			case "RotateLeft", "Reverse", "ReverseBytes":
    				fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", %d)\n", size, e.in)
    				if e.name == "RotateLeft" {
    					fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d, 2))\n", size, f, e.in)
    					fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d, -2))\n", size, f, e.in)
    				} else {
    					fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d))\n", size, f, e.in)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. src/cmd/link/linkbig_test.go

    	// the main part of the program can be run.
    	fmt.Fprintf(&w, "\tif os.Getenv(\"LINKTESTARG\") != \"\" {\n")
    	for i := 0; i < FN; i++ {
    		fmt.Fprintf(&w, "\t\tbigfn%d()\n", i)
    	}
    	fmt.Fprintf(&w, "\t}\n")
    	fmt.Fprintf(&w, "\tfmt.Printf(\"PASS\\n\")\n")
    	fmt.Fprintf(&w, "}")
    	err := os.WriteFile(tmpdir+"/bigfn.go", w.Bytes(), 0666)
    	if err != nil {
    		t.Fatalf("can't write output: %v\n", err)
    	}
    
    	// Build and run with internal linking.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top