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

Side by Side Diff: test/win/compiler-flags/enable-enhanced-instruction-set.cc

Issue 195283002: Add support for VCCLCompilerTool EnableEnhancedInstructionSet setting. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: no formats Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <stdio.h>
6
7 static const char* GetArchOption() {
8 #if _M_IX86_FP == 0
9 return "IA32";
10 #elif _M_IX86_FP == 1
11 return "SSE";
12 #elif _M_IX86_FP == 2
13 # if !defined(__AVX__)
14 return "SSE2";
15 # else
16 return "AVX";
17 # endif
18 #else
19 return "UNSUPPORTED OPTION";
20 #endif
21 }
22
23 int main() {
24 printf("/arch:%s\n", GetArchOption());
25 return 0;
26 }
OLDNEW
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/compiler-flags/enable-enhanced-instruction-set.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698