Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 336 for II (0.2 sec)

  1. test/copy.go

    func u8(i int) uint8 {
    	i = 'a' + i%26
    	return uint8(i)
    }
    
    func u16(ii int) uint16 {
    	var i = uint16(ii)
    	i = 'a' + i%26
    	i |= i << 8
    	return i
    }
    
    func u32(ii int) uint32 {
    	var i = uint32(ii)
    	i = 'a' + i%26
    	i |= i << 8
    	i |= i << 16
    	return i
    }
    
    func u64(ii int) uint64 {
    	var i = uint64(ii)
    	i = 'a' + i%26
    	i |= i << 8
    	i |= i << 16
    	i |= i << 32
    	return i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 6.6K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/builtins1.go

    	const pp = unsafe.Alignof(p)
    	assert(pp == 8)
    	const ll = unsafe.Alignof(l)
    	assert(ll == 8)
    	const ff = unsafe.Alignof(f)
    	assert(ff == 8)
    	const ii = unsafe.Alignof(i)
    	assert(ii == 8)
    	const cc = unsafe.Alignof(c)
    	assert(cc == 8)
    	const mm = unsafe.Alignof(m)
    	assert(mm == 8)
    	const _ = unsafe /* ERROR "not constant" */ .Alignof(t)
    }
    
    // unsafe.Offsetof
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 21:16:29 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/linalg_grad_test.cc

    TEST_F(LinalgGradTest, Einsum_Trace) {
      TensorShape x_shape({3, 3});
      Output x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      // Note: In Python this could just be "ii" becuase tf.einsum normalizes the
      // equation, but c++ doesn't do that.
      auto z = Einsum(scope_, {x}, "ii->");
      TensorShape z_shape({});
      RunTest({x}, {x_shape}, {z}, {z_shape});
    }
    
    TEST_F(LinalgGradTest, Einsum_TraceBroadcast) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  4. internal/config/identity/openid/jwks_test.go

    	} else if len(jk.Keys) != 2 {
    		t.Fatalf("Expected 2 keys, got %d", len(jk.Keys))
    	}
    
    	keys := make([]crypto.PublicKey, len(jk.Keys))
    	for ii, jks := range jk.Keys {
    		var err error
    		keys[ii], err = jks.DecodePublicKey()
    		if err != nil {
    			t.Fatalf("Failed to decode key %d: %v", ii, err)
    		}
    	}
    
    	//nolint:gocritic
    	if key0, ok := keys[0].(*ecdsa.PublicKey); !ok {
    		t.Fatalf("Expected ECDSA key[0], got %T", keys[0])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  5. operator/pkg/object/objects.go

    	isDefault := func(item any) bool {
    		var ii intstr.IntOrString
    		switch item := item.(type) {
    		case int:
    			ii = intstr.FromInt32(int32(item))
    		case int64:
    			ii = intstr.FromInt32(int32(item))
    		case string:
    			ii = intstr.FromString(item)
    		default:
    			ii = intstr.FromInt32(0)
    		}
    		intVal, err := intstr.GetScaledValueFromIntOrPercent(&ii, 100, false)
    		if err != nil || intVal == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  6. src/runtime/atomic_ppc64x.s

    //go:build ppc64 || ppc64le
    
    #include "textflag.h"
    
    TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
    	// LWSYNC is the "export" barrier recommended by Power ISA
    	// v2.07 book II, appendix B.2.2.2.
    	// LWSYNC is a load/load, load/store, and store/store barrier.
    	LWSYNC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 437 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    }
    
    type Conc struct {
    	X int
    }
    
    func (c *Conc) Count() int {
    	return c.X
    }
    
    func DoCall(c *Conc) {
    	c2 := Callee(c)
    	println(c2.Count())
    }
    
    func Callee(ii Ctr) Ctr {
    	q := ii.Count()
    	return &Conc{X: q}
    }
    -- main/main.go --
    package main
    
    import (
    	"M/a"
    	"M/b"
    )
    
    func MFunc() string {
    	return "42"
    }
    
    func M2Func() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. test/escape2.go

    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b *Bar) LeaksABit() *int { // ERROR "leaking param: b to result ~r0 level=1$"
    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b Bar) StillNoLeak() int { // ERROR "b does not escape$"
    	v := 0
    	b.ii = &v
    	return b.i
    }
    
    func goLeak(b *Bar) { // ERROR "leaking param: b$"
    	go b.NoLeak()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/UniAddress.java

                            UniAddress[] addrs = new UniAddress[iaddrs.length];
                            for (int ii = 0; ii < iaddrs.length; ii++) {
                                addrs[ii] = new UniAddress(iaddrs[ii]);
                            }
                            return addrs; // Success
                        default:
                            throw new UnknownHostException( hostname );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 16.2K bytes
    - Viewed (0)
  10. test/fixedbugs/bug326.go

    }
    
    func f1() (_ int, err error) {
    	return 1, nil
    }
    
    func g1() (x int, _ error) {
    	return 1, nil
    }
    
    func h1() (_ int, _ error) {
    	return 1, nil
    }
    
    func ii() (int, error) {
    	return 1, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 24 20:57:46 UTC 2021
    - 592 bytes
    - Viewed (0)
Back to top