Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 254 for ABS (0.02 sec)

  1. src/internal/types/testdata/fixedbugs/issue50782.go

    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64
    }
    
    // numericAbs matches numeric types with an Abs method.
    type numericAbs[T Numeric] interface {
    	~struct{ Value T }
    	Abs() T
    }
    
    // AbsDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func absDifference[T numericAbs[T /* ERROR "T does not satisfy Numeric" */]](a, b T) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/strings/reader.go

    	r.prevRune = -1
    	var abs int64
    	switch whence {
    	case io.SeekStart:
    		abs = offset
    	case io.SeekCurrent:
    		abs = r.i + offset
    	case io.SeekEnd:
    		abs = int64(len(r.s)) + offset
    	default:
    		return 0, errors.New("strings.Reader.Seek: invalid whence")
    	}
    	if abs < 0 {
    		return 0, errors.New("strings.Reader.Seek: negative position")
    	}
    	r.i = abs
    	return abs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. 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)
  4. src/runtime/vdso_freebsd.go

    	if timekeepSharedPage == nil || timekeepSharedPage.ver != _VDSO_TK_VER_CURR {
    		return zeroBintime
    	}
    	abs := false
    	switch clockID {
    	case _CLOCK_MONOTONIC:
    		/* ok */
    	case _CLOCK_REALTIME:
    		abs = true
    	default:
    		return zeroBintime
    	}
    	return binuptime(abs)
    }
    
    func fallback_nanotime() int64
    func fallback_walltime() (sec int64, nsec int32)
    
    //go:nosplit
    func nanotime1() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

        19: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS sum.cpp
        20: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS multiply.cpp
        21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
        22: 00000000004021e0     0 OBJECT  LOCAL  DEFAULT   19 __FRAME_END__
        23: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS
        24: 0000000000402014     0 NOTYPE  LOCAL  DEFAULT   18 __GNU_EH_FRAME_HDR
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/lookup2.go

    	_ = x.ForM // ERROR "x.ForM undefined (type *big.Float has no field or method ForM)"
    
    	_ = x.abs  // ERROR "x.abs undefined (type *big.Float has no field or method abs, but does have method Abs)"
    	_ = x.abS  // ERROR "x.abS undefined (type *big.Float has no field or method abS)"
    	_ = x.form // ERROR "x.form undefined (cannot refer to unexported field form)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/math/big/prime.go

    	if n < 0 {
    		panic("negative n for ProbablyPrime")
    	}
    	if x.neg || len(x.abs) == 0 {
    		return false
    	}
    
    	// primeBitMask records the primes < 64.
    	const primeBitMask uint64 = 1<<2 | 1<<3 | 1<<5 | 1<<7 |
    		1<<11 | 1<<13 | 1<<17 | 1<<19 | 1<<23 | 1<<29 | 1<<31 |
    		1<<37 | 1<<41 | 1<<43 | 1<<47 | 1<<53 | 1<<59 | 1<<61
    
    	w := x.abs[0]
    	if len(x.abs) == 1 && w < 64 {
    		return primeBitMask&(1<<w) != 0
    	}
    
    	if w&1 == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/testFixtures/groovy/org/gradle/internal/snapshot/TestSnapshotFixture.groovy

                FilenameUtils.separatorsToSystem(absolutePath),
                FilenameUtils.getName(absolutePath),
                TestHashCodes.hashCodeFrom(hashCode ?: pseudoRandom.nextLong()),
                file(abs(pseudoRandom.nextLong()), abs(pseudoRandom.nextLong()), accessType))
        }
    
        FileSystemLocationSnapshot missing(String absolutePath, FileMetadata.AccessType accessType = DIRECT) {
            new MissingFileSnapshot(
                absolutePath,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/math/big/intconv.go

    	// determine sign
    	neg, err := scanSign(r)
    	if err != nil {
    		return nil, 0, err
    	}
    
    	// determine mantissa
    	z.abs, base, _, err = z.abs.scan(r, base, false)
    	if err != nil {
    		return nil, base, err
    	}
    	z.neg = len(z.abs) > 0 && neg // 0 has no sign
    
    	return z, base, nil
    }
    
    func scanSign(r io.ByteScanner) (neg bool, err error) {
    	var ch byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/BaselineVersion.groovy

                def diff = currentVersionMean - thisVersionMean
                def desc = diff > Duration.millis(0) ? "slower" : "faster"
                sb.append("Difference: ${diff.abs().format()} $desc (${toMillis(diff.abs())}), ${PrettyCalculator.percentChange(currentVersionMean, thisVersionMean)}%\n")
                sb.append(current.speedStats)
                sb.append(results.speedStats)
                sb.append("\n")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top