mask mousewheel segv bug, mask opengl sw fallback read to ram, fix tiff config withou...
[goodguy/cinelerra.git] / cinelerra-5.1 / libzmpeg3 / video / mmxtest.C
1 #include "../libzmpeg3.h"
2
3 int mpeg3_mmx_test()
4 {
5   int result = 0;
6 #ifdef HAVE_MMX
7   FILE *proc;
8   char string[zmpeg3_t::STRLEN];
9
10   if(!(proc = fopen(zmpeg3_t::PROC_CPUINFO, "r"))) {
11     perrs("%s",zmpeg3_t::PROC_CPUINFO);
12     return 0;
13   }
14   
15   while( !feof(proc) && fgets(string, sizeof(string), proc) ) {
16     /* Get the flags line */
17     if(!strncasecmp(string, "flags", 5)) {
18       result = !strstr(string, "mmx") ? 0 : 1;
19       break;
20     }
21   }
22   fclose(proc);
23 #endif
24   return result;
25 }
26