mempty.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 35 行
C
35 行
#include <stdio.h>
#include <mmintrin.h>
long featureflags( void );
#pragma aux featureflags = \
".586" \
"mov eax,1" \
"cpuid" \
"mov eax,edx" \
modify [eax ebx ecx edx]
#define MM_EXTENSION 0x00800000
void main( void )
{
if( featureflags() & MM_EXTENSION ) {
/*
sequence of code that uses Multimedia functions
.
.
.
*/
_m_empty();
}
/*
sequence of code that uses floating-point
.
.
.
*/
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?