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

Unified Diff: native_client_sdk/src/examples/demo/voronoi/voronoi.cc

Issue 22842011: [NaCl SDK] Remove invalid assert from nacl_io. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: native_client_sdk/src/examples/demo/voronoi/voronoi.cc
diff --git a/native_client_sdk/src/examples/demo/voronoi/voronoi.cc b/native_client_sdk/src/examples/demo/voronoi/voronoi.cc
index 99c2cbb69f2aa41112d084540633357092f451ac..48f311871ff8336fd67ba107683d0495086c87df 100644
--- a/native_client_sdk/src/examples/demo/voronoi/voronoi.cc
+++ b/native_client_sdk/src/examples/demo/voronoi/voronoi.cc
@@ -60,10 +60,13 @@ inline void rand_reset(unsigned int seed) {
g_rand_state = seed;
}
+#ifndef NDEBUG
// returns true if input is power of two.
+// only used in assertions.
inline bool is_pow2(int x) {
return (x & (x - 1)) == 0;
}
+#endif
inline double getseconds() {
const double usec_to_sec = 0.000001;
« no previous file with comments | « native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.c ('k') | native_client_sdk/src/libraries/nacl_io/kernel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698