Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 195 for Malloc (0.08 sec)

  1. src/cmd/compile/internal/ssa/_gen/allocators.go

    // e.g. []*Value and []*Block, or even []int32 and []bool.
    
    import (
    	"bytes"
    	"fmt"
    	"go/format"
    	"io"
    	"log"
    	"os"
    )
    
    type allocator struct {
    	name     string // name for alloc/free functions
    	typ      string // the type they return/accept
    	mak      string // code to make a new object (takes power-of-2 size as fmt arg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/objcpp/main.mm

    #import "greeter.h"
    
    int main (int argc, const char * argv[])
    {
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    
        Greeter *greeter = [Greeter new];
        [greeter sayHello];
        [greeter release];
    
        [pool drain];
    
        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 249 bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/resource_allocation.go

    	allocatable := make([]int64, len(r.resources))
    	for i := range r.resources {
    		alloc, req := r.calculateResourceAllocatableRequest(logger, nodeInfo, v1.ResourceName(r.resources[i].Name), podRequests[i])
    		// Only fill the extended resource entry when it's non-zero.
    		if alloc == 0 {
    			continue
    		}
    		allocatable[i] = alloc
    		requested[i] = req
    	}
    
    	score := r.scorer(requested, allocatable)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 14:53:43 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/issue53888_test.go

    			t.Errorf("got %f allocs, want 0", n)
    		}
    		type S []byte
    
    		s := make(S, n)
    		g := func() {
    			s = append(s[:0], make(S, n)...)
    		}
    		if n := testing.AllocsPerRun(10, g); n > 0 {
    			t.Errorf("got %f allocs, want 0", n)
    		}
    		h := func() {
    			s = append(s[:0], make([]byte, n)...)
    		}
    		if n := testing.AllocsPerRun(10, h); n > 0 {
    			t.Errorf("got %f allocs, want 0", n)
    		}
    		i := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 12:18:20 UTC 2022
    - 1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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. 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)
  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