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

Unified Diff: src/trusted/cpu_features/cpu_features.h

Issue 11864002: Move CPU features into its own static library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Address bsy's comments by not building x86 target when host isn't x86. This is how things are curre… Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/cpu_features/build.scons ('k') | src/trusted/cpu_features/cpu_features.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/cpu_features/cpu_features.h
diff --git a/src/trusted/cpu_features/cpu_features.h b/src/trusted/cpu_features/cpu_features.h
new file mode 100644
index 0000000000000000000000000000000000000000..88b26e63ce3a93b5a5cf4fd9e43a59628de591db
--- /dev/null
+++ b/src/trusted/cpu_features/cpu_features.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_CPU_FEATURES_H_
+#define NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_CPU_FEATURES_H_
+
+#include "native_client/src/include/nacl_base.h"
+
+
+EXTERN_C_BEGIN
+
+/*
+ * Forward-declared (but never defined) generic CPU features.
+ * Each architecture needs to cast from this generic type.
+ */
+struct NaClCPUFeaturesAbstract;
+typedef struct NaClCPUFeaturesAbstract NaClCPUFeatures;
+
+EXTERN_C_END
+
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_CPU_FEATURES_H_ */
« no previous file with comments | « src/trusted/cpu_features/build.scons ('k') | src/trusted/cpu_features/cpu_features.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698