search for: numprim

Displaying 5 results from an estimated 5 matches for "numprim".

Did you mean: numprm
2016 Dec 10
2
Interest in integrating a linux perf JITEventListener?
Hi, Under linux a large portion of the profiling these days happens with perf, but there's no support for it from LLVM's JITs. For a while perf could associate address+size to symbols by writing a /tmp/perf-$pid.map file: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/tools/perf/Documentation/jit-interface.txt A year or so perf also gained the ability to actually
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
...t;stdint.h> #include <stdbool.h> bool stupid_isprime(uint64_t num) { if (num == 2) return true; if (num < 1 || num % 2 == 0) return false; for(uint64_t i = 3; i < num / 2; i+= 2) { if (num % i == 0) return false; } return true; } int main(int argc, char **argv) { int numprimes = 0; for (uint64_t num = argc; num < 100000; num++) { if (stupid_isprime(num)) numprimes++; } return numprimes; }
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...) > { > if (num == 2) > return true; > if (num < 1 || num % 2 == 0) > return false; > for(uint64_t i = 3; i < num / 2; i+= 2) { > if (num % i == 0) > return false; > } > return true; > } > > int main(int argc, char **argv) > { > int numprimes = 0; > > for (uint64_t num = argc; num < 100000; num++) > { > if (stupid_isprime(num)) > numprimes++; > } > > return numprimes; > } Greetings, Andres Freund
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be useful. For simplicity, why don't we start with support for the second style? This is the long term useful one and would be a good starting point for getting the code in tree. Can you give a pointer to the patch so that I can assess the rough complexity? If it's simple enough, I'd be happy to help get it reviewed
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
..._RSAESOAEP_SHA1_MGF1; - pubEndorsementKey->algorithmParms.sigScheme = TPM_SS_NONE; -- pubEndorsementKey->algorithmParms.parms.rsa.keyLength = key_length; -+ pubEndorsementKey->algorithmParms.parms.rsa.keyLength = key_length << 3; - pubEndorsementKey->algorithmParms.parms.rsa.numPrimes = 2; - pubEndorsementKey->algorithmParms.parms.rsa.exponentSize = 0; - pubEndorsementKey->algorithmParms.parms.rsa.exponent = NULL; -@@ -175,6 +175,7 @@ TPM_RESULT TPM_OwnerReadInternalPub(TPM_ - { - TPM_RESULT res; - TPM_KEY_DATA *srk = &tpmData.permanent.data.srk; -+ size_t k...