Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for ABS (0.06 sec)

  1. src/math/big/ratmarsh.go

    func (x *Rat) GobEncode() ([]byte, error) {
    	if x == nil {
    		return nil, nil
    	}
    	buf := make([]byte, 1+4+(len(x.a.abs)+len(x.b.abs))*_S) // extra bytes for version and sign bit (1), and numerator length (4)
    	i := x.b.abs.bytes(buf)
    	j := x.a.abs.bytes(buf[:i])
    	n := i - j
    	if int(uint32(n)) != n {
    		// this should never happen
    		return nil, errors.New("Rat.GobEncode: numerator too large")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/post_quantize.mlir

      // CHECK: %[[Q1:.*]] = stablehlo.uniform_quantize %[[ARG0]]
      // CHECK: %[[Q2:.*]] = stablehlo.uniform_quantize %[[Q1]]
      // CHECK: %[[ABS:.*]] = stablehlo.abs %[[Q2]]
      // CHECK: %[[DQ:.*]] = stablehlo.uniform_dequantize %[[ABS]]
      // CHECK: %[[ADD:.*]] = stablehlo.add %[[ARG0]], %[[DQ]]
      // CHECK: return %[[ADD]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/time/time.go

    	// +3     +2      +1        0        -1     -2       -3
    	// the offset to Thursday
    	abs := t.abs()
    	d := Thursday - absWeekday(abs)
    	// handle Sunday
    	if d == 4 {
    		d = -3
    	}
    	// find the Thursday of the calendar week
    	abs += uint64(d) * secondsPerDay
    	year, _, _, yday := absDate(abs, false)
    	return year, yday/7 + 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  4. src/math/big/float.go

    		case x.exp > allBits:
    			z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
    			z.b.abs = z.b.abs[:0] // == 1 (see Rat)
    			// z already in normal form
    		default:
    			z.a.abs = z.a.abs.set(x.mant)
    			z.b.abs = z.b.abs[:0] // == 1 (see Rat)
    			// z already in normal form
    		case x.exp < allBits:
    			z.a.abs = z.a.abs.set(x.mant)
    			t := z.b.abs.setUint64(1)
    			z.b.abs = t.shl(t, uint(allBits-x.exp))
    			z.norm()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  5. pkg/file/file.go

    	PrivateFileMode = 0o600
    )
    
    // DirEquals check if two directories are referring to the same directory
    func DirEquals(a, b string) (bool, error) {
    	aa, err := filepath.Abs(a)
    	if err != nil {
    		return false, err
    	}
    	bb, err := filepath.Abs(b)
    	if err != nil {
    		return false, err
    	}
    	return aa == bb, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/pos.go

    		return +1
    	}
    
    	return 0
    }
    
    func (pos Pos) String() string {
    	rel := position_{pos.RelFilename(), pos.RelLine(), pos.RelCol()}
    	abs := position_{pos.Base().Pos().RelFilename(), pos.Line(), pos.Col()}
    	s := rel.String()
    	if rel != abs {
    		s += "[" + abs.String() + "]"
    	}
    	return s
    }
    
    // TODO(gri) cleanup: find better name, avoid conflict with position in error_test.go
    type position_ struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/gcimporter.go

    	}
    
    	var noext string
    	switch {
    	default:
    		// "x" -> "$GOPATH/pkg/$GOOS_$GOARCH/x.ext", "x"
    		// Don't require the source files to be present.
    		if abs, err := filepath.Abs(srcDir); err == nil { // see issue 14282
    			srcDir = abs
    		}
    		var bp *build.Package
    		bp, err = build.Import(path, srcDir, build.FindOnly|build.AllowBinary)
    		if bp.PkgObj == "" {
    			if bp.Goroot && bp.Dir != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/path/filepath/path_windows.go

    	// Remove quotes.
    	for i, s := range list {
    		list[i] = strings.ReplaceAll(s, `"`, ``)
    	}
    
    	return list
    }
    
    func abs(path string) (string, error) {
    	if path == "" {
    		// syscall.FullPath returns an error on empty path, because it's not a valid path.
    		// To implement Abs behavior of returning working directory on empty string input,
    		// special-case empty path by changing it to "." path. See golang.org/issue/24441.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/path/filepath/path_plan9.go

    	return strings.HasPrefix(p, prefix)
    }
    
    func splitList(path string) []string {
    	if path == "" {
    		return []string{}
    	}
    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_unix.go too.
    	for i, e := range elem {
    		if e != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 926 bytes
    - Viewed (0)
  10. src/path/filepath/path_unix.go

    	return strings.HasPrefix(p, prefix)
    }
    
    func splitList(path string) []string {
    	if path == "" {
    		return []string{}
    	}
    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_plan9.go too.
    	for i, e := range elem {
    		if e != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 970 bytes
    - Viewed (0)
Back to top