Home
last modified time | relevance | path

Searched refs:Seed (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dchecksum_test.cpp15 static scudo::u16 computeSoftwareChecksum(scudo::u32 Seed, scudo::uptr *Array, in computeSoftwareChecksum() argument
17 scudo::u16 Checksum = static_cast<scudo::u16>(Seed & 0xffff); in computeSoftwareChecksum()
23 static scudo::u16 computeHardwareChecksum(scudo::u32 Seed, scudo::uptr *Array, in computeHardwareChecksum() argument
25 scudo::u32 Crc = Seed; in computeHardwareChecksum()
39 const scudo::u32 Seed = 0x41424343U; in verifyChecksumFunctionBitFlip() local
40 const scudo::u16 Reference = F(Seed, Array, ArraySize); in verifyChecksumFunctionBitFlip()
45 if (F(Seed, Array, ArraySize) == Reference) in verifyChecksumFunctionBitFlip()
/llvm-project-15.0.7/llvm/lib/Support/
H A Dxxhash.cpp72 uint64_t Seed = 0; in xxHash64() local
79 uint64_t V1 = Seed + PRIME64_1 + PRIME64_2; in xxHash64()
80 uint64_t V2 = Seed + PRIME64_2; in xxHash64()
81 uint64_t V3 = Seed + 0; in xxHash64()
82 uint64_t V4 = Seed - PRIME64_1; in xxHash64()
102 H64 = Seed + PRIME64_5; in xxHash64()
H A DRandomNumberGenerator.cpp40 static ManagedStatic<cl::opt<uint64_t>, CreateSeed> Seed; variable
41 void llvm::initRandomSeedOptions() { *Seed; } in initRandomSeedOptions()
44 LLVM_DEBUG(if (*Seed == 0) dbgs() in RandomNumberGenerator()
54 Data[0] = *Seed; in RandomNumberGenerator()
55 Data[1] = *Seed >> 32; in RandomNumberGenerator()
/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A DMsanCustomMutator.cpp22 unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
23 if (Seed == 7) in LLVMFuzzerCustomMutator()
37 uint8_t *Out, size_t MaxOutSize, unsigned int Seed) { in LLVMFuzzerCustomCrossOver() argument
38 if (Seed == 7) in LLVMFuzzerCustomCrossOver()
H A DReloadTest.cpp13 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
14 std::srand(Seed); in LLVMFuzzerCustomMutator()
H A Dfuzzer-seed.test3 CHECK_SEED_MINUS_ONE: Seed: 4294967295
H A DCustomMutatorTest.cpp33 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
H A DCustomMutatorWithLongSequencesTest.cpp34 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
H A DCustomCrossOverAndMutateTest.cpp29 unsigned int Seed) { in LLVMFuzzerCustomCrossOver() argument
H A DCompressedTest.cpp39 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
/llvm-project-15.0.7/llvm/unittests/FuzzMutate/
H A DRandomIRBuilderTest.cpp27 static constexpr int Seed = 5; variable
61 RandomIRBuilder IB(Seed, {}); in TEST()
103 RandomIRBuilder IB(Seed, Types); in TEST()
147 RandomIRBuilder IB(Seed, {}); in TEST()
182 RandomIRBuilder IB(Seed, Types); in TEST()
223 RandomIRBuilder IB(Seed, Types); in TEST()
253 RandomIRBuilder IB(Seed, Types); in TEST()
283 RandomIRBuilder IB(Seed, Types); in TEST()
H A DStrategiesTest.cpp24 static constexpr int Seed = 5; variable
84 Mutator.mutateModule(*M, Seed, Source.size(), Source.size() + 100); in IterateOnSource()
99 Mutator->mutateModule(*M, Seed, 1, 1); in TEST()
168 Mutator->mutateModule(*M, Seed + i, Source.size(), Source.size() + 100); in checkModifyNoUnsignedAndNoSignedWrap()
211 Mutator->mutateModule(*M, Seed + i, Source.size(), Source.size() + 100); in TEST()
236 Mutator->mutateModule(*M, Seed + i, Source.size(), Source.size() + 100); in TEST()
/llvm-project-15.0.7/libc/test/src/string/
H A Dmemmove_test.cpp84 static uint64_t Seed = 123456789; in GetRandomChar() local
85 Seed = (A * Seed + C) % M; in GetRandomChar()
86 return Seed; in GetRandomChar()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dchunk.h23 inline u16 computeChecksum(u32 Seed, uptr Value, uptr *Array, uptr ArraySize) { in computeChecksum() argument
29 u32 Crc = static_cast<u32>(CRC32_INTRINSIC(Seed, Value)); in computeChecksum()
35 u32 Crc = computeHardwareCRC32(Seed, Value); in computeChecksum()
40 u16 Checksum = computeBSDChecksum(static_cast<u16>(Seed), Value); in computeChecksum()
H A Dprimary64.h68 u32 Seed; in init() local
70 if (!getRandom(reinterpret_cast<void *>(&Seed), sizeof(Seed))) in init()
71 Seed = static_cast<u32>(Time ^ (PrimaryBase >> 12)); in init()
79 ? ((getRandomModN(&Seed, 16) + 1) * PageSize) in init()
81 Region->RandState = getRandomU32(&Seed); in init()
H A Dstack_depot.h19 static const u32 Seed = 0x9747b28c; variable
24 explicit MurMur2HashBuilder(u32 Init = 0) { H = Seed ^ Init; }
H A Dprimary32.h72 u32 Seed; in init() local
74 if (!getRandom(reinterpret_cast<void *>(&Seed), sizeof(Seed))) in init()
75 Seed = static_cast<u32>( in init()
79 Sci->RandState = getRandomU32(&Seed); in init()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerInterface.h55 unsigned int Seed);
64 size_t MaxOutSize, unsigned int Seed);
H A DFuzzerExtFunctions.def19 (uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed),
24 uint8_t *Out, size_t MaxOutSize, unsigned int Seed),
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DCallGraph.h23 inline int64_t hashCombine(const int64_t Seed, const int64_t Val) { in hashCombine() argument
25 return Seed ^ (Hasher(Val) + 0x9e3779b9 + (Seed << 6) + (Seed >> 2)); in hashCombine()
/llvm-project-15.0.7/llvm/include/llvm/FuzzMutate/
H A DRandomIRBuilder.h36 RandomIRBuilder(int Seed, ArrayRef<Type *> AllowedTypes) in RandomIRBuilder()
37 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/llvm-project-15.0.7/clang/lib/AST/
H A DRandstruct.cpp205 std::string Seed = in randomizeStructureLayout() local
207 std::seed_seq SeedSeq(Seed.begin(), Seed.end()); in randomizeStructureLayout()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DReorderAlgorithm.cpp52 template <class T> inline void hashCombine(size_t &Seed, const T &Val) { in hashCombine() argument
54 Seed ^= Hasher(Val) + 0x9e3779b9 + (Seed << 6) + (Seed >> 2); in hashCombine()
60 size_t Seed = Hasher(Val.first); in operator ()() local
61 hashCombine(Seed, Val.second); in operator ()()
62 return Seed; in operator ()()
/llvm-project-15.0.7/llvm/tools/llvm-isel-fuzzer/
H A Dllvm-isel-fuzzer.cpp67 uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
76 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()
/llvm-project-15.0.7/llvm/tools/llvm-opt-fuzzer/
H A Dllvm-opt-fuzzer.cpp60 uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
72 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()

12