Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for powx (0.04 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/const.go

    // Reducing mod poly corresponds to binary xor with poly every
    // time a 0x100 bit appears.
    const poly = 1<<8 | 1<<4 | 1<<3 | 1<<1 | 1<<0 // x⁸ + x⁴ + x³ + x + 1
    
    // Powers of x mod poly in GF(2).
    var powx = [16]byte{
    	0x01,
    	0x02,
    	0x04,
    	0x08,
    	0x10,
    	0x20,
    	0x40,
    	0x80,
    	0x1b,
    	0x36,
    	0x6c,
    	0xd8,
    	0xab,
    	0x4d,
    	0x9a,
    	0x2f,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 29.3K bytes
    - Viewed (0)
  3. src/math/pow_s390x.s

    //      Pow(±0, y) = ±0 for y an odd integer > 0
    //      Pow(±0, y) = +0 for finite y > 0 and not an odd integer
    //      Pow(-1, ±Inf) = 1
    //      Pow(x, +Inf) = +Inf for |x| > 1
    //      Pow(x, -Inf) = +0 for |x| > 1
    //      Pow(x, +Inf) = +0 for |x| < 1
    //      Pow(x, -Inf) = +Inf for |x| < 1
    //      Pow(+Inf, y) = +Inf for y > 0
    //      Pow(+Inf, y) = +0 for y < 0
    //      Pow(-Inf, y) = Pow(-0, -y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_negativeTwoToThe54MinusOne() {
        new RoundToDoubleTester(BigDecimal.valueOf((-1L << 54) - 1))
            .setExpectation(-Math.pow(2, 54), DOWN, CEILING, HALF_DOWN, HALF_UP, HALF_EVEN)
            .setExpectation(DoubleUtils.nextDown(-Math.pow(2, 54)), FLOOR, UP)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. 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)
  6. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

          if (d >= 1.0) {
            assertTrue(log2 >= 0);
            assertTrue(StrictMath.pow(2.0, log2) <= d);
            assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
          } else {
            assertTrue(log2 <= 0);
            assertTrue(StrictMath.pow(2.0, log2) >= d);
            assertTrue(StrictMath.pow(2.0, log2 - 1) < d);
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      @GwtIncompatible // 2147483646^2 expected=4
      public void testPow() {
        for (int i : ALL_INTEGER_CANDIDATES) {
          for (int pow : EXPONENTS) {
            assertEquals(i + "^" + pow, BigInteger.valueOf(i).pow(pow).intValue(), IntMath.pow(i, pow));
          }
        }
      }
    
      @AndroidIncompatible // slow
      public void testDivNonZero() {
        for (int p : NONZERO_INTEGER_CANDIDATES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/arith_test.go

    		}
    		if want, got := int8(i)%int8(pow2[2]) == 0, divisible_int8_2to2(int8(i)); got != want {
    			t.Errorf("divisible_int8_2to2(%d) = %v want %v", i, got, want)
    		}
    		if want, got := int8(i)%int8(pow2[3]) == 0, divisible_int8_2to3(int8(i)); got != want {
    			t.Errorf("divisible_int8_2to3(%d) = %v want %v", i, got, want)
    		}
    		if want, got := int8(i)%int8(pow2[4]) == 0, divisible_int8_2to4(int8(i)); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/BigIntegerMath.java

          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // Since sqrt(10) is irrational, log10(x) - floorLog can never be exactly 0.5
            BigInteger x2 = x.pow(2);
            BigInteger halfPowerSquared = floorPow.pow(2).multiply(BigInteger.TEN);
            return (x2.compareTo(halfPowerSquared) <= 0) ? floorLog : floorLog + 1;
          default:
            throw new AssertionError();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. 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)
Back to top