Hey everyone,

as you guys have noticed I'm very bad with ASM/SSE/... code.
So I'm here and asking you how to reformulate the following code into 
Crypto++'s style, so that'll run everywhere (-> Windows, Linux, ...)
(Note: This code is taken from here 
<https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide>,
 
code example 3)

13int rdrand32_step (uint32_t *rand)
14{
15    unsigned char ok;
16 
17    asm volatile ("rdrand %0; setc %1"
18        : "=r" (*rand), "=qm" (ok));
19 
20    return (int) ok;
21}

Thank you.

BR

JPM


-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to