Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for new224 (0.19 sec)

  1. src/crypto/sha256/sha256_test.go

    	}
    }
    
    func TestSize(t *testing.T) {
    	c := New()
    	if got := c.Size(); got != Size {
    		t.Errorf("Size = %d; want %d", got, Size)
    	}
    	c = New224()
    	if got := c.Size(); got != Size224 {
    		t.Errorf("New224.Size = %d; want %d", got, Size224)
    	}
    }
    
    func TestBlockSize(t *testing.T) {
    	c := New()
    	if got := c.BlockSize(); got != BlockSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  2. src/crypto/ecdsa/ecdsa_test.go

    			default:
    				pub.Curve = nil
    			}
    
    			switch hash {
    			case "SHA-1":
    				h = sha1.New()
    			case "SHA-224":
    				h = sha256.New224()
    			case "SHA-256":
    				h = sha256.New()
    			case "SHA-384":
    				h = sha512.New384()
    			case "SHA-512":
    				h = sha512.New()
    			default:
    				h = nil
    			}
    
    			continue
    		}
    
    		if h == nil || pub.Curve == nil {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/runtime/gc_test.go

    	// further move the stack.
    	new2 := uintptr(unsafe.Pointer(new))
    
    	t.Logf("old stack pointer %x, new stack pointer %x", old, new2)
    	if new2 == old {
    		// Check that we didn't screw up the test's escape analysis.
    		if cls := runtime.GCTestPointerClass(unsafe.Pointer(new)); cls != "stack" {
    			t.Fatalf("test bug: new (%#x) should be a stack pointer, not %s", new2, cls)
    		}
    		// This was a real failure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad_test.cc

        EXPECT_LT(max_error, 1e-3f);
      }
    
      float RV(const std::vector<float>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 CRV(const std::vector<complex64>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 conjugate(const complex64& val) {
        return complex64(val.real(), -val.imag());
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  5. api/go1.9.txt

    pkg encoding/json, func Valid([]uint8) bool
    pkg go/ast, type TypeSpec struct, Assign token.Pos
    pkg go/types, func SizesFor(string, string) Sizes
    pkg go/types, method (*TypeName) IsAlias() bool
    pkg hash/fnv, func New128() hash.Hash
    pkg hash/fnv, func New128a() hash.Hash
    pkg html/template, const ErrPredefinedEscaper = 11
    pkg html/template, const ErrPredefinedEscaper ErrorCode
    pkg image/png, type Encoder struct, BufferPool EncoderBufferPool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  6. tests/hooks_test.go

    	}
    
    	// Code changed, but not selected, price should not change
    	DB.Model(&product).Select("Name", "Price").Updates(map[string]interface{}{"Name": "Product New2", "code": "L1213"})
    
    	if product.Name != "Product New2" || product.Price != 170 || product.Code != "L1212" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  7. pkg/kubelet/container/helpers.go

    // the running container with its desired spec.
    // Note: remember to update hashValues in container_hash_test.go as well.
    func HashContainer(container *v1.Container) uint64 {
    	hash := fnv.New32a()
    	containerJSON, _ := json.Marshal(pickFieldsToHash(container))
    	hashutil.DeepHashObject(hash, containerJSON)
    	return uint64(hash.Sum32())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/nn_grad_test.cc

          tensor_flat(i) = cur;
          cur += 5e-2;
        }
        // Fischer-Yates shuffle the array
        for (size_t i = tensor->NumElements() - 1; i >= 1; i--) {
          // j <- random integer 0 <= j <= i
          size_t j = random::New64() % (i + 1);
          // swap values at i, j
          T tmp = tensor_flat(i);
          tensor_flat(i) = tensor_flat(j);
          tensor_flat(j) = tmp;
        }
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 20:45:22 UTC 2022
    - 15K bytes
    - Viewed (0)
  9. pkg/controller/tainteviction/taint_eviction.go

    type nodeUpdateItem struct {
    	nodeName string
    }
    
    type podUpdateItem struct {
    	podName      string
    	podNamespace string
    	nodeName     string
    }
    
    func hash(val string, max int) int {
    	hasher := fnv.New32a()
    	io.WriteString(hasher, val)
    	return int(hasher.Sum32() % uint32(max))
    }
    
    // GetPodsByNodeNameFunc returns the list of pods assigned to the specified node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. pkg/controller/history/controller_history.go

    // of probe is added written to the hash as well. The returned hash will be a safe encoded string to avoid bad words.
    func HashControllerRevision(revision *apps.ControllerRevision, probe *int32) string {
    	hf := fnv.New32()
    	if len(revision.Data.Raw) > 0 {
    		hf.Write(revision.Data.Raw)
    	}
    	if revision.Data.Object != nil {
    		hashutil.DeepHashObject(hf, revision.Data.Object)
    	}
    	if probe != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
Back to top