Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: util/cpuid.c

Issue 2418763006: Add f16c (halffloat) cpuid (Closed)
Patch Set: bump version to r1627 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « unit_test/cpu_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if (has_x86) { 72 if (has_x86) {
73 int has_sse2 = TestCpuFlag(kCpuHasSSE2); 73 int has_sse2 = TestCpuFlag(kCpuHasSSE2);
74 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3); 74 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3);
75 int has_sse41 = TestCpuFlag(kCpuHasSSE41); 75 int has_sse41 = TestCpuFlag(kCpuHasSSE41);
76 int has_sse42 = TestCpuFlag(kCpuHasSSE42); 76 int has_sse42 = TestCpuFlag(kCpuHasSSE42);
77 int has_avx = TestCpuFlag(kCpuHasAVX); 77 int has_avx = TestCpuFlag(kCpuHasAVX);
78 int has_avx2 = TestCpuFlag(kCpuHasAVX2); 78 int has_avx2 = TestCpuFlag(kCpuHasAVX2);
79 int has_avx3 = TestCpuFlag(kCpuHasAVX3); 79 int has_avx3 = TestCpuFlag(kCpuHasAVX3);
80 int has_erms = TestCpuFlag(kCpuHasERMS); 80 int has_erms = TestCpuFlag(kCpuHasERMS);
81 int has_fma3 = TestCpuFlag(kCpuHasFMA3); 81 int has_fma3 = TestCpuFlag(kCpuHasFMA3);
82 int has_f16c = TestCpuFlag(kCpuHasF16C);
82 printf("Has SSE2 %x\n", has_sse2); 83 printf("Has SSE2 %x\n", has_sse2);
83 printf("Has SSSE3 %x\n", has_ssse3); 84 printf("Has SSSE3 %x\n", has_ssse3);
84 printf("Has SSE4.1 %x\n", has_sse41); 85 printf("Has SSE4.1 %x\n", has_sse41);
85 printf("Has SSE4.2 %x\n", has_sse42); 86 printf("Has SSE4.2 %x\n", has_sse42);
86 printf("Has AVX %x\n", has_avx); 87 printf("Has AVX %x\n", has_avx);
87 printf("Has AVX2 %x\n", has_avx2); 88 printf("Has AVX2 %x\n", has_avx2);
88 printf("Has AVX3 %x\n", has_avx3); 89 printf("Has AVX3 %x\n", has_avx3);
89 printf("Has ERMS %x\n", has_erms); 90 printf("Has ERMS %x\n", has_erms);
90 printf("Has FMA3 %x\n", has_fma3); 91 printf("Has FMA3 %x\n", has_fma3);
92 printf("Has F16C %x\n", has_f16c);
91 } 93 }
92 return 0; 94 return 0;
93 } 95 }
94 96
OLDNEW
« no previous file with comments | « unit_test/cpu_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698