Part Number: TMDSEVM6678
Tool/software: TI C/C++ Compiler
I have the below code from vlfeat here
But I have no idea how to translate to TMDSEVM6678 (compiler 8.2/3)
Please help ... (any clue is much appreciate it.)
Regards
#if defined(HAS_CPUID) & defined(VL_COMPILER_GNUC) VL_INLINE void _vl_cpuid (vl_int32* info, int function) { #if defined(VL_ARCH_IX86) && (defined(__PIC__) || defined(__pic__)) /* This version is compatible with -fPIC on x386 targets. This special * case is required becaus * on such platform -fPIC alocates ebx as global offset table pointer. * Note that =r below will be mapped to a register different from ebx, * so the code is sound. */ __asm__ __volatile__ ("pushl %%ebx \n" /* save %ebx */ "cpuid \n" "movl %%ebx, %1 \n" /* save what cpuid just put in %ebx */ "popl %%ebx \n" /* restore the old %ebx */ : "=a"(info[0]), "=r"(info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(function) : "cc") ; /* clobbered (cc=condition codes) */ #else /* no -fPIC or -fPIC with a 64-bit target */ __asm__ __volatile__ ("cpuid" : "=a"(info[0]), "=b"(info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(function) : "cc") ; #endif } #endif