Home
last modified time | relevance | path

Searched refs:getRandom (Results 1 – 25 of 50) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp200 uint32_t getRandom() { in getRandom() function
207 return PT->at(getRandom() % PT->size()); in getRandomVal()
212 if (getRandom() & 1) in getRandomConstant()
216 if (getRandom() & 1) in getRandomConstant()
225 unsigned index = getRandom(); in getRandomValue()
234 if (getRandom() & 1) in getRandomValue()
238 if (getRandom() & 1) in getRandomValue()
258 unsigned index = getRandom(); in getRandomPointerValue()
269 unsigned index = getRandom(); in getRandomVectorValue()
280 return (getRandom() & 1 ? pickVectorType() : pickScalarType()); in pickType()
[all …]
/external/clang/test/Analysis/
Dnullability_nullonly.mm6 int getRandom(); function
19 if (getRandom()) {
45 if (getRandom())
58 if (getRandom())
82 switch (getRandom()) {
87 if (getRandom())
Dnullability.mm20 int getRandom(); function
41 switch (getRandom()) {
65 if (getRandom()) {
72 if (getRandom()) {
90 switch(getRandom()) {
117 switch (getRandom()) {
256 if (getRandom())
269 if (getRandom())
336 switch (getRandom()) {
341 if (getRandom())
[all …]
/external/deqp/framework/randomshaders/
DrsgExpression.cpp167 de::Random& rnd = state.getRandom(); in computeRandomValueRangeForInfElements()
340 return &state.getRandom().chooseWeighted<const ExpressionSpec&>(specs, specs+numSpecs, weights); in chooseExpression()
380 …const float value = deFloatClamp(minVal + step*(float)state.getRandom().getInt(0, numSteps), minV… in FloatLiteral()
447 int value = state.getRandom().getInt(minVal, maxVal); in IntLiteral()
495 bool value = state.getRandom().getInt(minVal, maxVal) == 1; in BoolLiteral()
739 …VariableType::Type inType = state.getRandom().choose<VariableType::Type>(&inTypes[0], &inTypes[0] … in ConstructorOp()
849 …er().hasEntry<IsWritableEntry>() || ((maxScalars > 0) && getWeightedBool(state.getRandom(), 0.1f)); in AssignOp()
861 …const ValueEntry* entry = state.getRandom().choose<const ValueEntry*>(state.getVariableManager().g… in AssignOp()
874 (first == end || getWeightedBool(state.getRandom(), 0.5f)); in AssignOp()
897 …ConstValueRangeAccess selectedRange = state.getRandom().choose<const ValueEntry*>(first, end)->get… in AssignOp()
[all …]
DrsgBinaryOps.cpp378 …VariableType::Type baseType = state.getRandom().choose<VariableType::Type>(baseTypes.begin(), base… in BinaryVecOp()
379 int numElements = state.getRandom().getInt(1, availableLevels >= 3 ? 4 : 1); in BinaryVecOp()
413 ComputeValueRange()(state.getRandom(), dst.getMin().asFloat(), dst.getMax().asFloat(), in BinaryVecOp()
417 ComputeValueRange()(state.getRandom(), dst.getMin().asInt(), dst.getMax().asInt(), in BinaryVecOp()
423 ComputeValueRange()(state.getRandom(), dst.getMin().asBool(), dst.getMax().asBool(), in BinaryVecOp()
664 …VariableType::Type inBaseType = state.getRandom().choose<VariableType::Type>(&inBaseTypes[0], &in… in RelationalOp()
678 ComputeValueRange()(state.getRandom(), dstMin, dstMax, in RelationalOp()
682 ComputeValueRange()(state.getRandom(), dstMin, dstMax, in RelationalOp()
959 …VariableType::Type inBaseType = state.getRandom().choose<VariableType::Type>(&inBaseTypes[0], &in… in EqualityComparisonOp()
961 int numElements = state.getRandom().getInt(1, availableLevels >= 3 ? 4 : 1); in EqualityComparisonOp()
[all …]
DrsgStatement.cpp76 float p = state.getRandom().getFloat(0.0f, sum); in chooseStatement()
147 …m_numChildrenToCreate = state.getRandom().getInt(0, state.getShaderParameters().maxStatementsPerBl… in init()
265 variable = state.getRandom().choose<Variable*>(candidates.begin(), candidates.end()); in DeclarationStatement()
397 …if (!m_falseStatement && !m_trueStatement && (isElseBlockRequired(state) || state.getRandom().getB… in createNextChild()
DrsgUtils.cpp166 state.getRandom().choose(baseTypes, baseTypes + DE_LENGTH_OF_ARRAY(baseTypes), &baseType, 1); in computeRandomType()
176 …return VariableType(baseType, state.getRandom().getInt(minVecLength, de::min(maxScalars, maxVecLen… in computeRandomType()
188 de::Random& rnd = state.getRandom(); in computeRandomValueRange()
DrsgGeneratorState.hpp59 de::Random& getRandom (void) { return m_random; } in getRandom() function in rsg::GeneratorState
/external/deqp/modules/glshared/
DglsVertexArrayTests.cpp220 inline T getRandom (deRandom& rnd, T min, T max);
223 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max) in getRandom() function
232 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max) in getRandom() function
241 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max) in getRandom() function
250 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max) in getRandom() function
259 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max) in getRandom() function
268 inline GLValue::Fixed getRandom (deRandom& rnd, GLValue::Fixed min, GLValue::Fixed max) in getRandom() function
277 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom() function
289 inline GLValue::Int getRandom (deRandom& rnd, GLValue::Int min, GLValue::Int max) in getRandom() function
298 inline GLValue::Uint getRandom (deRandom& rnd, GLValue::Uint min, GLValue::Uint max) in getRandom() function
[all …]
/external/freetype/src/tools/ftrandom/
Dftrandom.c426 getRandom( int low, in getRandom() function
469 fseek( newf, getRandom( 0, (int)( item->len - 1 ) ), SEEK_SET ); in copyfont()
472 putc( getRandom( 0, 0xFF ), newf ); in copyfont()
474 putc( getRandom( 0x20, 0x7E ), newf ); in copyfont()
477 int hex = getRandom( 0, 15 ); in copyfont()
518 int i = getRandom( 0, (int)( fcnt - 1 ) ); in do_test()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiFrameProtectorTest.java21 import static io.grpc.alts.internal.ByteBufTestUtils.getRandom;
281 ByteBuf plain = getRandom(payloadBytes, ref); in parseFrame_oneFrameNoFragment()
319 ByteBuf plain = getRandom(payloadBytes, ref); in parseFrame_twoFramesNoFragment()
367 ByteBuf plain = getRandom(payloadBytes, ref); in parseFrame_twoFramesNoFragment_Leftover()
435 ByteBuf plain = getRandom(payloadBytes, ref); in parseFrame_twoFramesFragmentSecond()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java163 BigInteger p = BigIntegers.createRandomPrime(bitlength, 1, param.getRandom()); in chooseRandomPrime()
198 …return !Primes.hasAnySmallFactors(x) && Primes.isMRProbablePrime(x, param.getRandom(), iterations); in isProbablePrime()
DDESedeKeyGenerator.java23 this.random = param.getRandom(); in init()
DDHBasicKeyPairGenerator.java35 BigInteger x = helper.calculatePrivate(dhp, param.getRandom()); in generateKeyPair()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java165 BigInteger p = BigIntegers.createRandomPrime(bitlength, 1, param.getRandom()); in chooseRandomPrime()
200 …return !Primes.hasAnySmallFactors(x) && Primes.isMRProbablePrime(x, param.getRandom(), iterations); in isProbablePrime()
DDESedeKeyGenerator.java27 this.random = param.getRandom(); in init()
DDHBasicKeyPairGenerator.java37 BigInteger x = helper.calculatePrivate(dhp, param.getRandom()); in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DKeyGenerationParameters.java34 public SecureRandom getRandom() in getRandom() method in KeyGenerationParameters
DCipherKeyGenerator.java21 this.random = param.getRandom(); in init()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
DKeyGenerationParameters.java36 public SecureRandom getRandom() in getRandom() method in KeyGenerationParameters
DCipherKeyGenerator.java23 this.random = param.getRandom(); in init()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DParametersWithRandom.java28 public SecureRandom getRandom() in getRandom() method in ParametersWithRandom
DDSAParameterGenerationParameters.java71 public SecureRandom getRandom() in getRandom() method in DSAParameterGenerationParameters
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DParametersWithRandom.java32 public SecureRandom getRandom() in getRandom() method in ParametersWithRandom
DDSAParameterGenerationParameters.java75 public SecureRandom getRandom() in getRandom() method in DSAParameterGenerationParameters

12