This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/mempty.c

35 lines
536 B
C
Raw Permalink Normal View History

#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
.
.
.
*/
}