Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 945 for abs8 (0.04 sec)

  1. src/image/png/writer.go

    	for i := 0; i < n; i++ {
    		cdat2[i] = cdat0[i] - pdat[i]
    		sum += abs8(cdat2[i])
    	}
    	best := sum
    	filter := ftUp
    
    	// The Paeth filter.
    	sum = 0
    	for i := 0; i < bpp; i++ {
    		cdat4[i] = cdat0[i] - pdat[i]
    		sum += abs8(cdat4[i])
    	}
    	for i := bpp; i < n; i++ {
    		cdat4[i] = cdat0[i] - paeth(cdat0[i-bpp], pdat[i], pdat[i-bpp])
    		sum += abs8(cdat4[i])
    		if sum >= best {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/math/abs.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // Abs returns the absolute value of x.
    //
    // Special cases are:
    //
    //	Abs(±Inf) = +Inf
    //	Abs(NaN) = NaN
    func Abs(x float64) float64 {
    	return Float64frombits(Float64bits(x) &^ (1 << 63))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 366 bytes
    - Viewed (0)
  3. src/math/cmplx/abs.go

    // complex numbers. Special case handling conforms to the C99 standard
    // Annex G IEC 60559-compatible complex arithmetic.
    package cmplx
    
    import "math"
    
    // Abs returns the absolute value (also called the modulus) of x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 523 bytes
    - Viewed (0)
  4. src/cmd/internal/obj/mips/anames.go

    // Code generated by stringer -i a.out.go -o anames.go -p mips; DO NOT EDIT.
    
    package mips
    
    import "cmd/internal/obj"
    
    var Anames = []string{
    	obj.A_ARCHSPECIFIC: "ABSD",
    	"ABSF",
    	"ABSW",
    	"ADD",
    	"ADDD",
    	"ADDF",
    	"ADDU",
    	"ADDW",
    	"AND",
    	"BEQ",
    	"BFPF",
    	"BFPT",
    	"BGEZ",
    	"BGEZAL",
    	"BGTZ",
    	"BLEZ",
    	"BLTZ",
    	"BLTZAL",
    	"BNE",
    	"BREAK",
    	"CLO",
    	"CLZ",
    	"CMOVF",
    	"CMOVN",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. test/typeparam/mdempsky/13.go

    func (MyMer) String() string {
    	return "aa"
    }
    
    // Parameterized interface
    type Abs[T any] interface {
    	Abs() T
    }
    
    func G[T Abs[U], U any](t T) {
    	T.Abs(t)
    	t.Abs()
    }
    
    type MyInt int
    func (m MyInt) Abs() MyInt {
    	if m < 0 {
    		return -m
    	}
    	return m
    }
    
    type Abs2 interface {
    	Abs() MyInt
    }
    
    
    func main() {
    	mm := MyMer(3)
    	ms := struct{ Mer }{Mer: mm }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 14 17:55:47 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/DoubleUtils.java

      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
          return x.signum() * POSITIVE_INFINITY;
        }
    
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/arm/anames.go

    	"MULSF",
    	"MULSD",
    	"NMULSF",
    	"NMULSD",
    	"FMULAF",
    	"FMULAD",
    	"FNMULAF",
    	"FNMULAD",
    	"FMULSF",
    	"FMULSD",
    	"FNMULSF",
    	"FNMULSD",
    	"DIVF",
    	"DIVD",
    	"SQRTF",
    	"SQRTD",
    	"ABSF",
    	"ABSD",
    	"NEGF",
    	"NEGD",
    	"SRL",
    	"SRA",
    	"SLL",
    	"MULU",
    	"DIVU",
    	"MUL",
    	"MMUL",
    	"DIV",
    	"MOD",
    	"MODU",
    	"DIVHW",
    	"DIVUHW",
    	"MOVB",
    	"MOVBS",
    	"MOVBU",
    	"MOVH",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 16 15:58:33 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  8. test/codegen/math.go

    }
    
    // Check that it's using integer registers
    func abs(x, y float64) {
    	// amd64:"BTRQ\t[$]63"
    	// arm64:"FABSD\t"
    	// s390x:"LPDFR\t",-"MOVD\t"     (no integer load/store)
    	// ppc64x:"FABS\t"
    	// riscv64:"FABSD\t"
    	// wasm:"F64Abs"
    	// arm/6:"ABSD\t"
    	// mips64/hardfloat:"ABSD\t"
    	// mips/hardfloat:"ABSD\t"
    	sink64[0] = math.Abs(x)
    
    	// amd64:"BTRQ\t[$]63","PXOR"    (TODO: this should be BTSQ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradient_checker.cc

      }
    }
    
    // Runs model as is if output is a scalar,
    // else sums the output tensor before returning.
    Status RunAndMaybeSum(AbstractContext* ctx, Model forward,
                          absl::Span<AbstractTensorHandle* const> inputs,
                          absl::Span<AbstractTensorHandle*> outputs,
                          bool use_function) {
      AbstractTensorHandle* model_outputs[1];
    
      // Run the model.
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/loong64/anames.go

    // Code generated by stringer -i a.out.go -o anames.go -p loong64; DO NOT EDIT.
    
    package loong64
    
    import "cmd/internal/obj"
    
    var Anames = []string{
    	obj.A_ARCHSPECIFIC: "ABSD",
    	"ABSF",
    	"ADD",
    	"ADDD",
    	"ADDF",
    	"ADDU",
    	"ADDW",
    	"AND",
    	"BEQ",
    	"BGEZ",
    	"BLEZ",
    	"BGTZ",
    	"BLTZ",
    	"BFPF",
    	"BFPT",
    	"BNE",
    	"BREAK",
    	"CLO",
    	"CLZ",
    	"CMPEQD",
    	"CMPEQF",
    	"CMPGED",
    	"CMPGEF",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top