Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for callFunction (0.16 sec)

  1. tensorflow/cc/experimental/libtf/tests/perf_test.cc

      return TaggedValue(args.tuple()[0].i64() + args.tuple()[1].i64());
    }
    
    int64_t AddRaw(int64_t a, int64_t b) { return a + b; }
    
    }  // namespace
    
    // Add numbers in a loop by calling a callable.
    void CallFunctions(::testing::benchmark::State& state) {
      Integer sum(0);
      Callable callable((impl::TaggedValue(impl::Func(AddTagged))));
      *callable.Call<Integer>(sum, Integer(30));
      size_t i = 0;
      for (auto dummy : state) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 15 16:58:38 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. src/runtime/sys_aix_ppc64.s

    //
    
    #include "go_asm.h"
    #include "go_tls.h"
    #include "textflag.h"
    #include "asm_ppc64x.h"
    
    // This function calls a C function with the function descriptor in R12
    TEXT callCfunction<>(SB),	NOSPLIT|NOFRAME,$0
    	MOVD	0(R12), R12
    	MOVD	R2, 40(R1)
    	MOVD	0(R12), R0
    	MOVD	8(R12), R2
    	MOVD	R0, CTR
    	BR	(CTR)
    
    
    // asmsyscall6 calls a library function with a function descriptor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:29:00 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top