Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for havefunc (0.17 sec)

  1. src/cmd/internal/obj/pcln.go

    	// tabulate which pc and func data we have.
    	havepc := make([]uint32, (npcdata+31)/32)
    	havefunc := make([]uint32, (nfuncdata+31)/32)
    	for p := fn.Text; p != nil; p = p.Link {
    		if p.As == AFUNCDATA {
    			if (havefunc[p.From.Offset/32]>>uint64(p.From.Offset%32))&1 != 0 {
    				ctxt.Diag("multiple definitions for FUNCDATA $%d", p.From.Offset)
    			}
    			havefunc[p.From.Offset/32] |= 1 << uint64(p.From.Offset%32)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  2. src/reflect/makefunc.go

    // in terms of Values; in contrast, MakeFunc allows the caller to implement
    // a typed function in terms of Values.
    //
    // The Examples section of the documentation includes an illustration
    // of how to use MakeFunc to build a swap function for different types.
    func MakeFunc(typ Type, fn func(args []Value) (results []Value)) Value {
    	if typ.Kind() != Func {
    		panic("reflect: call of MakeFunc with non-Func type")
    	}
    
    	t := typ.common()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/crypto/tls/auth_test.go

    	}
    
    	sigType, hashFunc, err = legacyTypeAndHashFromPublicKey(testECDSAPrivateKey.Public())
    	if err != nil {
    		t.Errorf("ECDSA: unexpected error: %v", err)
    	}
    	if expectedSigType := signatureECDSA; expectedSigType != sigType {
    		t.Errorf("ECDSA: expected signature type %#x, got %#x", expectedSigType, sigType)
    	}
    	if expectedHashFunc := crypto.SHA1; expectedHashFunc != hashFunc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 08 21:48:41 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go

    	"hash/fnv"
    	"time"
    )
    
    // split cache lookups across N striped caches
    type stripedCache struct {
    	stripeCount uint32
    	hashFunc    func(string) uint32
    	caches      []cache
    }
    
    type hashFunc func(string) uint32
    type newCacheFunc func() cache
    
    func newStripedCache(stripeCount int, hash hashFunc, newCacheFunc newCacheFunc) cache {
    	caches := []cache{}
    	for i := 0; i < stripeCount; i++ {
    		caches = append(caches, newCacheFunc())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  5. src/reflect/asm_mips64x.s

    //go:build mips64 || mips64le
    
    #include "textflag.h"
    #include "funcdata.h"
    
    #define	REGCTXT	R22
    
    // makeFuncStub is the code half of the function returned by MakeFunc.
    // See the comment on the declaration of makeFuncStub in makefunc.go
    // for more details.
    // No arg size here, runtime pulls arg map out of the func value.
    TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$40
    	NO_LOCAL_POINTERS
    	MOVV	REGCTXT, 8(R29)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

          /*inputs=*/{filename_input_type}, /*results=*/{});
      auto save_func = builder.create<func::FuncOp>(
          NameLoc::get(builder.getStringAttr(kTfQuantSaveFuncName)),
          /*sym_name=*/kTfQuantSaveFuncName, func_type);
      save_func.addEntryBlock();
      save_func.setPrivate();
    
      return save_func;
    }
    
    // Creates a save function that contains the `TF::SaveV2Op` for the variables in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. src/reflect/asm_mipsx.s

    //go:build mips || mipsle
    
    #include "textflag.h"
    #include "funcdata.h"
    
    #define	REGCTXT	R22
    
    // makeFuncStub is the code half of the function returned by MakeFunc.
    // See the comment on the declaration of makeFuncStub in makefunc.go
    // for more details.
    // No arg size here, runtime pulls arg map out of the func value.
    TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$20
    	NO_LOCAL_POINTERS
    	MOVW	REGCTXT, 4(R29)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  8. src/reflect/asm_wasm.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    #include "funcdata.h"
    
    // makeFuncStub is the code half of the function returned by MakeFunc.
    // See the comment on the declaration of makeFuncStub in makefunc.go
    // for more details.
    // No arg size here; runtime pulls arg map out of the func value.
    TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$40
    	NO_LOCAL_POINTERS
    
    	MOVD CTXT, 0(SP)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 02 16:53:18 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  9. src/reflect/asm_arm.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    #include "funcdata.h"
    
    // makeFuncStub is jumped to by the code generated by MakeFunc.
    // See the comment on the declaration of makeFuncStub in makefunc.go
    // for more details.
    // No argsize here, gc generates argsize info at call site.
    TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$20
    	NO_LOCAL_POINTERS
    	MOVW	R7, 4(R13)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 02 16:53:18 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  10. pilot/pkg/status/resourcelock_test.go

    	x := make(chan struct{})
    	y := make(chan struct{})
    	mgr := NewManager(nil)
    	fakefunc := func(status *v1alpha1.IstioStatus, context any) *v1alpha1.IstioStatus {
    		x <- struct{}{}
    		atomic.AddInt32(&runCount, 1)
    		y <- struct{}{}
    		return nil
    	}
    	c1 := mgr.CreateIstioStatusController(fakefunc)
    	c2 := mgr.CreateIstioStatusController(fakefunc)
    	workers := NewWorkerPool(func(_ *config.Config, _ any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top