Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for udivisible8 (0.27 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

      && m == int32(1<<8+umagic8(c).m) && s == 8+umagic8(c).s
      && x.Op != OpConst8 && udivisibleOK8(c)
     => (Leq8U
    			(RotateLeft8 <typ.UInt8>
    				(Mul8 <typ.UInt8>
    					(Const8 <typ.UInt8> [int8(udivisible8(c).m)])
    					x)
    				(Const8 <typ.UInt8> [int8(8-udivisible8(c).k)])
    				)
    			(Const8 <typ.UInt8> [int8(udivisible8(c).max)])
    		)
    
    (Eq16 x (Mul16 (Const16 [c])
      (Trunc64to16
        (Rsh64Ux64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// cond: v.Block.Func.pass.name != "opt" && mul.Uses == 1 && m == int32(1<<8+umagic8(c).m) && s == 8+umagic8(c).s && x.Op != OpConst8 && udivisibleOK8(c)
    	// result: (Leq8U (RotateLeft8 <typ.UInt8> (Mul8 <typ.UInt8> (Const8 <typ.UInt8> [int8(udivisible8(c).m)]) x) (Const8 <typ.UInt8> [int8(8-udivisible8(c).k)]) ) (Const8 <typ.UInt8> [int8(udivisible8(c).max)]) )
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  3. test/codegen/arithmetic.go

    	// arm64:`SMULH`,-`DIV`
    	// arm:`MOVW`,`MUL`,-`.*udiv`
    	b := n2 % 17 // signed
    
    	return a, b
    }
    
    // Check that divisibility checks x%c==0 are converted to MULs and rotates
    func DivisibleU(n uint) (bool, bool) {
    	// amd64:"MOVQ\t[$]-6148914691236517205","IMULQ","ROLQ\t[$]63",-"DIVQ"
    	// 386:"IMUL3L\t[$]-1431655765","ROLL\t[$]31",-"DIVQ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/helper/helpers.go

    	pageSize := strings.TrimPrefix(string(name), v1.ResourceHugePagesPrefix)
    	return resource.ParseQuantity(pageSize)
    }
    
    // HugePageUnitSizeFromByteSize returns hugepage size has the format.
    // `size` must be guaranteed to divisible into the largest units that can be expressed.
    // <size><unit-prefix>B (1024 = "1KB", 1048576 = "1MB", etc).
    func HugePageUnitSizeFromByteSize(size int64) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

            return mlir::emitError(
                location,
                llvm::formatv(
                    "incorrect input sharding configuration received. "
                    "{0}-th dimension of the input must be evenly divisible by {1}",
                    split_dimension, num_split));
          }
    
          shape[split_dimension] = shape[split_dimension] / num_split;
          output_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses.go

    			}
    		}
    		return ss
    	}
    
    	setCounts := possibleSetCounts(commonSize)
    	if len(setCounts) == 0 {
    		msg := fmt.Sprintf("Incorrect number of endpoints provided %s, number of drives %d is not divisible by any supported erasure set sizes %d", args, commonSize, setSizes)
    		return nil, config.ErrInvalidNumberOfErasureEndpoints(nil).Msg(msg)
    	}
    
    	var setSize uint64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. src/crypto/rsa/pss_test.go

    		}
    	}
    }
    
    func TestPSS513(t *testing.T) {
    	// See Issue 42741, and separately, RFC 8017: "Note that the octet length of
    	// EM will be one less than k if modBits - 1 is divisible by 8 and equal to
    	// k otherwise, where k is the length in octets of the RSA modulus n."
    	key, err := GenerateKey(rand.Reader, 513)
    	if err != nil {
    		t.Fatal(err)
    	}
    	digest := sha256.Sum256([]byte("message"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. cmd/endpoint-ellipses_test.go

    			12,
    			true,
    		},
    		// Incorrect custom set drive count.
    		{
    			[]string{"http://host{0...5}/data{1...28}"},
    			[]uint64{168},
    			nil,
    			10,
    			false,
    		},
    		// Failure not divisible number of disks.
    		{
    			[]string{"http://host{1...11}/data{1...11}"},
    			[]uint64{121},
    			[][]uint64{{11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11}},
    			11,
    			true,
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. src/crypto/rsa/pss.go

    		s, err := boring.DecryptRSANoPadding(bkey, em)
    		if err != nil {
    			return nil, err
    		}
    		return s, nil
    	}
    
    	// RFC 8017: "Note that the octet length of EM will be one less than k if
    	// modBits - 1 is divisible by 8 and equal to k otherwise, where k is the
    	// length in octets of the RSA modulus n." 🙄
    	//
    	// This is extremely annoying, as all other encrypt and decrypt inputs are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/runtime/syscall_windows.go

    	args := [...]uintptr{a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18}
    	return syscall_SyscallN(fn, args[:nargs]...)
    }
    
    // maxArgs should be divisible by 2, as Windows stack
    // must be kept 16-byte aligned on syscall entry.
    //
    // Although it only permits maximum 42 parameters, it
    // is arguably large enough.
    const maxArgs = 42
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top