Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 388 for is_zero (0.26 sec)

  1. src/cmd/compile/internal/ir/const.go

    		return NewCompLitExpr(pos, OCOMPLIT, typ, nil)
    	}
    
    	base.FatalfAt(pos, "unexpected type: %v", typ)
    	panic("unreachable")
    }
    
    var (
    	intZero     = constant.MakeInt64(0)
    	floatZero   = constant.ToFloat(intZero)
    	complexZero = constant.ToComplex(intZero)
    )
    
    // NewOne returns an OLITERAL representing 1 with the given type.
    func NewOne(pos src.XPos, typ *types.Type) Node {
    	var val constant.Value
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p256.go

    func (e *P256Element) Equal(t *P256Element) int {
    	eBytes := e.Bytes()
    	tBytes := t.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, tBytes)
    }
    
    // IsZero returns 1 if e == 0, and zero otherwise.
    func (e *P256Element) IsZero() int {
    	zero := make([]byte, p256ElementLen)
    	eBytes := e.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, zero)
    }
    
    // Set sets e = t, and returns e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/fiat/p224.go

    func (e *P224Element) Equal(t *P224Element) int {
    	eBytes := e.Bytes()
    	tBytes := t.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, tBytes)
    }
    
    // IsZero returns 1 if e == 0, and zero otherwise.
    func (e *P224Element) IsZero() int {
    	zero := make([]byte, p224ElementLen)
    	eBytes := e.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, zero)
    }
    
    // Set sets e = t, and returns e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. cmd/metrics-v3-cluster-usage.go

    	dataUsageInfo, err := c.dataUsageInfo.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return nil
    	}
    
    	// data usage has not captured any data yet.
    	if dataUsageInfo.LastUpdate.IsZero() {
    		return nil
    	}
    
    	var (
    		clusterSize               uint64
    		clusterBuckets            uint64
    		clusterObjectsCount       uint64
    		clusterVersionsCount      uint64
    		clusterDeleteMarkersCount uint64
    	)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    				var hasBucket, isBucketMarkedDeleted bool
    
    				bi, ok := sris[dIdx].Buckets[s.Bucket]
    				if ok {
    					isBucketMarkedDeleted = !bi.DeletedAt.IsZero() && (bi.CreatedAt.IsZero() || bi.DeletedAt.After(bi.CreatedAt))
    					hasBucket = !bi.CreatedAt.IsZero()
    				}
    				quotaCfgSet := hasBucket && quotaCfgs[i] != nil && *quotaCfgs[i] != madmin.BucketQuota{}
    				ss := madmin.SRBucketStatsSummary{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  6. schema/utils.go

    	for _, rel := range rels {
    		reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1)
    
    		appendToResults := func(value reflect.Value) {
    			if _, isZero := rel.Field.ValueOf(ctx, value); !isZero {
    				result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value))
    				switch result.Kind() {
    				case reflect.Struct:
    					reflectResults = reflect.Append(reflectResults, result.Addr())
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

          auto value = *attr.value_begin<APFloat>();
          return value.isNegative() && value.isInfinity();
        } else if (element_type.isInteger(1)) {
          auto value = *attr.value_begin<APInt>();
          return value.isZero();
        } else {
          auto value = *attr.value_begin<APInt>();
          return element_type.isUnsignedInteger() ? value.isMinValue()
                                                  : value.isMinSignedValue();
        }
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p384.go

    func (e *P384Element) Equal(t *P384Element) int {
    	eBytes := e.Bytes()
    	tBytes := t.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, tBytes)
    }
    
    // IsZero returns 1 if e == 0, and zero otherwise.
    func (e *P384Element) IsZero() int {
    	zero := make([]byte, p384ElementLen)
    	eBytes := e.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, zero)
    }
    
    // Set sets e = t, and returns e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/fiat/p521.go

    func (e *P521Element) Equal(t *P521Element) int {
    	eBytes := e.Bytes()
    	tBytes := t.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, tBytes)
    }
    
    // IsZero returns 1 if e == 0, and zero otherwise.
    func (e *P521Element) IsZero() int {
    	zero := make([]byte, p521ElementLen)
    	eBytes := e.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, zero)
    }
    
    // Set sets e = t, and returns e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. src/math/log_amd64.s

    #define PosInf 0x7FF0000000000000
    
    // func Log(x float64) float64
    TEXT ·archLog(SB),NOSPLIT,$0
    	// test bits for special cases
    	MOVQ    x+0(FP), BX
    	MOVQ    $~(1<<63), AX // sign bit mask
    	ANDQ    BX, AX
    	JEQ     isZero
    	MOVQ    $0, AX
    	CMPQ    AX, BX
    	JGT     isNegative
    	MOVQ    $PosInf, AX
    	CMPQ    AX, BX
    	JLE     isInfOrNaN
    	// f1, ki := math.Frexp(x); k := float64(ki)
    	MOVQ    BX, X0
    	MOVQ    $0x000FFFFFFFFFFFFF, AX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 23 20:52:57 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top