blob: 2a0f30fefb03da6670f0779bfe0ae0e4bd8017f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
$NetBSD: patch-ag,v 1.1 2004/06/26 18:00:21 grant Exp $
--- video/mmxtest.c.orig Tue Jul 31 19:37:07 2001
+++ video/mmxtest.c Tue Jul 31 19:41:16 2001
@@ -5,39 +5,9 @@
int mpeg3_mmx_test()
{
- int result = 0;
- FILE *proc;
- char string[MPEG3_STRLEN];
-
#ifdef HAVE_MMX
- if(!(proc = fopen(MPEG3_PROC_CPUINFO, "r")))
- {
- fprintf(stderr, "mpeg3_mmx_test: failed to open /proc/cpuinfo\n");
- return 0;
- }
-
- while(!feof(proc))
- {
- fgets(string, MPEG3_STRLEN, proc);
-/* Got the flags line */
- if(!strncasecmp(string, "flags", 5))
- {
- char *needle;
- needle = strstr(string, "mmx");
- if(!needle)
- {
- fclose(proc);
- return 0;
- }
- if(!strncasecmp(needle, "mmx", 3))
- {
- fclose(proc);
- return 1;
- }
- }
- }
- fclose(proc);
+ return (1);
#endif
return 0;
|