Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 155 for original (0.25 sec)

  1. src/math/cmplx/sin.go

    // license that can be found in the LICENSE file.
    
    package cmplx
    
    import "math"
    
    // The original C code, the long comment, and the constants
    // below are from http://netlib.sandia.gov/cephes/c9x-complex/clog.c.
    // The go code is a simplified version of the original C.
    //
    // Cephes Math Library Release 2.8:  June, 2000
    // Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/internal/objabi/path.go

    			p = append(p, '%', hex[c>>4], hex[c&0xF])
    		} else {
    			p = append(p, c)
    		}
    	}
    
    	return string(p)
    }
    
    // PrefixToPath is the inverse of PathToPrefix, replacing escape sequences with
    // the original character.
    func PrefixToPath(s string) (string, error) {
    	percent := strings.IndexByte(s, '%')
    	if percent == -1 {
    		return s, nil
    	}
    
    	p := make([]byte, 0, len(s))
    	for i := 0; i < len(s); {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/go/types/errors.go

    		// constant initialization expression, pos is the position of
    		// the original expression, and not of the currently declared
    		// constant identifier. Use the provided errpos instead.
    		// TODO(gri) We may also want to augment the error message and
    		// refer to the position (pos) in the original expression.
    		if check.errpos != nil && check.errpos.Pos().IsValid() {
    			assert(check.iota != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/hash/crc32/gen_const_ppc64le.go

    // <******@****.***> found at https://github.com/antonblanchard/crc32-vpmsum.
    // The original is dual licensed under GPL and Apache 2.  As the copyright holder
    // for the work, IBM has contributed this new work under the golang license.
    
    // This code was written in Go based on the original C implementation.
    
    // This is a tool needed to generate the appropriate constants needed for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/math/exp.go

    func Exp(x float64) float64 {
    	if haveArchExp {
    		return archExp(x)
    	}
    	return exp(x)
    }
    
    // The original C code, the long comment, and the constants
    // below are from FreeBSD's /usr/src/lib/msun/src/e_exp.c
    // and came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/dist/buildruntime.go

    //
    //	GOOS=linux GOARCH=ppc64 go build cmd/compile
    //
    // the resulting compiler will default to generating linux/ppc64 object files.
    // This is more useful than having it default to generating objects for the
    // original target (in this example, a Mac).
    func mkbuildcfg(file string) {
    	var buf strings.Builder
    	writeHeader(&buf)
    	fmt.Fprintf(&buf, "package buildcfg\n")
    	fmt.Fprintln(&buf)
    	fmt.Fprintf(&buf, "import \"runtime\"\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/net/tcpsock_unix_test.go

    				wg.Done()
    			}()
    			d := Dialer{Timeout: 50 * time.Millisecond}
    			c, err := d.Dial(ln.Addr().Network(), ln.Addr().String())
    			if err != nil {
    				if perr := parseDialError(err); perr != nil {
    					t.Errorf("#%d: %v (original error: %v)", i, perr, err)
    				}
    				return
    			}
    			var b [1]byte
    			if _, err := c.Write(b[:]); err != nil {
    				if perr := parseWriteError(err); perr != nil {
    					t.Errorf("#%d: %v", i, err)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/internal/bootstrap_test/overlaydir_test.go

    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always make copies of directories.
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If we can use a hard link, do that instead of copying bytes.
    		// Go builds don't like symlinks in some cases, such as go:embed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:35:05 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/go/printer/example_test.go

    	// file set fset.
    	funcAST, fset := parseFunc("example_test.go", "printSelf")
    
    	// Print the function body into buffer buf.
    	// The file set is provided to the printer so that it knows
    	// about the original source formatting and can add additional
    	// line breaks where they were present in the source.
    	var buf bytes.Buffer
    	printer.Fprint(&buf, fset, funcAST.Body)
    
    	// Remove braces {} enclosing the function body, unindent,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/par/work_test.go

    	v = cache.Do(2, func() int { n++; return n })
    	if v != 3 {
    		t.Fatalf("cache.Do(2) did not run f")
    	}
    	v = cache.Do(1, func() int { n++; return n })
    	if v != 2 {
    		t.Fatalf("cache.Do(1) did not returned saved value from original cache.Do(1)")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top