Developer Guide and Reference

Contents

Intrinsics that Generate Random Numbers of 16/32/64 Bit Wide Random Integers

To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>

RDRAND

There are three intrinsics returning a hardware-generated random value.
These intrinsics are mapped to a single
RDRAND
instruction. The exception is the intrinsic
_rdrand64_step()
, which is mapped to two 32-bit
RDRAND
instructions and several shift and conditional jump/move instructions on 32-bit platforms.

RDSEED

There are three intrinsics returning a hardware-generated random value.
These intrinsics are mapped to a code-sequence based on the
RDSEED
instruction. The result code depends on the context in which the intrinsics were used and on the target OS.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804