Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 397 for nalloc (0.1 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/msan2.go

    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    #include <string.h>
    #include <stdint.h>
    #include <stdlib.h>
    
    void f(int32_t *p, int n) {
      int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n);
      memcpy(p, q, n * sizeof(*p));
      free(q);
    }
    
    void g(int32_t *p, int n) {
      if (p[4] != 1) {
        abort();
      }
    }
    */
    import "C"
    
    import (
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 644 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

    constexpr float kRequantCost = 2.0;
    
    // TODO(renjieliu): Ideally this should consider different kinds of SOCs as
    // well.
    
    // Get total bytes transferred.
    int64_t GetTransferredTensorBytes(func::CallOp from_graph,
                                      func::CallOp to_graph) {
      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/swig/testdata/stdio/main.swig

    /* A trivial example of wrapping a C library using SWIG.  */
    
    %{
    #include <stdio.h>
    #include <stdlib.h>
    %}
    
    %typemap(gotype) const char * "string"
    %typemap(in) const char * %{
    	$1 = malloc($input.n + 1);
    	memcpy($1, $input.p, $input.n);
    	$1[$input.n] = '\0';
    %}
    %typemap(freearg) const char * %{
    	free($1);
    %}
    
    FILE *fopen(const char *name, const char *mode);
    int fclose(FILE *);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 563 bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/nistec_test.go

    				t.Fatal(err)
    			}
    			out = p.BytesCompressed()
    			if _, err := p.SetBytes(out); err != nil {
    				t.Fatal(err)
    			}
    		}); allocs > 0 {
    			t.Errorf("expected zero allocations, got %0.1f", allocs)
    		}
    	})
    	t.Run("P256", func(t *testing.T) {
    		if allocs := testing.AllocsPerRun(10, func() {
    			p := nistec.NewP256Point().SetGenerator()
    			scalar := make([]byte, 32)
    			rand.Read(scalar)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/msan2_cmsan.go

    package main
    
    /*
    #cgo LDFLAGS: -fsanitize=memory
    #cgo CPPFLAGS: -fsanitize=memory
    
    #include <string.h>
    #include <stdint.h>
    #include <stdlib.h>
    
    void f(int32_t *p, int n) {
      int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n);
      memcpy(p, q, n * sizeof(*p));
      free(q);
    }
    
    void g(int32_t *p, int n) {
      if (p[4] != 1) {
        abort();
      }
    }
    */
    import "C"
    
    import (
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 710 bytes
    - Viewed (0)
  6. src/internal/coverage/calloc/batchcounteralloc.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package calloc
    
    // This package contains a simple "batch" allocator for allocating
    // coverage counters (slices of uint32 basically), for working with
    // coverage data files. Collections of counter arrays tend to all be
    // live/dead over the same time period, so a good fit for batch
    // allocation.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 754 bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/testdata/allow-groups.yaml

    John Howard <******@****.***> 1709232034 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 345 bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java

            }
    
            public void alloc(Block block) {
                if (block.hasPos()) {
                    return;
                }
    
                int requiredSize = block.getSize();
    
                if (entries.isEmpty() || requiredSize <= largestInNextBlock) {
                    if (nextBlock.isNull()) {
                        return;
                    }
                    getNextBlock().alloc(block);
                    return;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/msan_fail.go

    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    #include <string.h>
    #include <stdint.h>
    #include <stdlib.h>
    
    void f(int32_t *p, int n) {
      int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n);
      memcpy(p, q, n * sizeof(*p));
      free(q);
    }
    
    void g(int32_t *p, int n) {
      if (p[4] != 1) {
        // We shouldn't get here; msan should stop us first.
        exit(0);
      }
    }
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 701 bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/testdata/allow-full.yaml

            length: 32
          - address: WqgKAA==
            length: 24
    - rules:
      - matches:
        - destinationPorts:
          - 91
          - 92
          notDestinationPorts:
          - 9001
          - 9002
    name: allow
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top