Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for powx (0.03 sec)

  1. src/crypto/aes/aes_test.go

    package aes
    
    import (
    	"testing"
    )
    
    // See const.go for overview of math here.
    
    // Test that powx is initialized correctly.
    // (Can adapt this code to generate it too.)
    func TestPowx(t *testing.T) {
    	p := 1
    	for i := 0; i < len(powx); i++ {
    		if powx[i] != byte(p) {
    			t.Errorf("powx[%d] = %#x, want %#x", i, powx[i], p)
    		}
    		p <<= 1
    		if p&0x100 != 0 {
    			p ^= poly
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/crypto/aes/block.go

    // Their rcon[i] is our powx[i-1] << 24.
    func expandKeyGo(key []byte, enc, dec []uint32) {
    	// Encryption key setup.
    	var i int
    	nk := len(key) / 4
    	for i = 0; i < nk; i++ {
    		enc[i] = byteorder.BeUint32(key[4*i:])
    	}
    	for ; i < len(enc); i++ {
    		t := enc[i-1]
    		if i%nk == 0 {
    			t = subw(rotw(t)) ^ (uint32(powx[i/nk-1]) << 24)
    		} else if nk > 6 && i%nk == 4 {
    			t = subw(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          BigInteger x2 = x.pow(2);
          // x^2 < 10^(2 * result + 1), or else we would have rounded up
          assertTrue(TEN.pow(2 * result + 1).compareTo(x2) > 0);
          // x^2 >= 10^(2 * result - 1), or else we would have rounded down
          assertTrue(result == 0 || TEN.pow(2 * result - 1).compareTo(x2) <= 0);
        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10HalfDown() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. cluster/gce/config-common.sh

    }
    
    # Calculate ip alias range based on max number of pods.
    # Let pow be the smallest integer which is bigger or equal to log2($1 * 2).
    # (32 - pow) will be returned.
    #
    # $1: The number of max pods limitation.
    function get-alias-range-size() {
      for pow in {0..31}; do
        if (( 1 << pow >= $1 * 2 )); then
          echo $((32 - pow))
          return 0
        fi
      done
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 20:06:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. pkg/volume/portworx/portworx.go

    	}
    	klog.Infof("Portworx Volume %s setup at %s", b.volumeID, dir)
    	return nil
    }
    
    func (pwx *portworxVolume) GetPath() string {
    	return getPath(pwx.podUID, pwx.volName, pwx.plugin.host)
    }
    
    type portworxVolumeUnmounter struct {
    	*portworxVolume
    }
    
    var _ volume.Unmounter = &portworxVolumeUnmounter{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/signatureSubstitution/AbstractAnalysisApiSignatureContractsTest.kt

    import org.jetbrains.kotlin.psi.KtFile
    import org.jetbrains.kotlin.psi.psiUtil.collectDescendantsOfType
    import org.jetbrains.kotlin.test.services.TestServices
    import org.jetbrains.kotlin.test.services.assertions
    import kotlin.math.pow
    
    abstract class AbstractAnalysisApiSignatureContractsTest : AbstractAnalysisApiBasedTest() {
        override fun doTestByMainFile(mainFile: KtFile, mainModule: KtTestModule, testServices: TestServices) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                        public void testPow() {
                            Powerize powerize = new Powerize();
                            Assert.assertEquals(1, powerize.pow(1, 1));
                            Assert.assertEquals(4, powerize.pow(2, 2));
                            Assert.assertEquals(1, powerize.pow(1, 2));
                        }
                    }
                """
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
        }
        BigInteger nextBigger =
            BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
        assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
        }
        BigInteger nextBigger =
            BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
        assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h

    inline float CalculateBinWidth(const float min_value, const float max_value,
                                   const int32_t num_bins) {
      const float raw_bin_width = (max_value - min_value) / num_bins;
      return std::pow(2, std::ceil(std::log2(raw_bin_width)));
    }
    
    // Calculates the lower bound of the histogram. The lower bound is in form of
    // `N * bin_width`.
    inline float CalculateLowerBound(const float min_value, const float bin_width) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top