The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at __nop.

Microsoft Specific**

Generates platform-specific machine code that performs no operation.


void __nop();  


Intrinsic Architecture
__nop x86, x64

Header file <intrin.h>

END Microsoft Specific


The __nop function is equivalent to the NOP machine instruction. For more information, search for the document, "Intel Architecture Software Developer's Manual, Volume 2: Instruction Set Reference," at the Intel Corporation site.

See Also

Compiler Intrinsics