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

Unified Diff: mojom/mojom_parser/utils/math_utils.go

Issue 1823563002: Mojom frontend: Implement computeFieldOffsets(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: mojom/mojom_parser/utils/math_utils.go
diff --git a/fusl/test/vector.cc b/mojom/mojom_parser/utils/math_utils.go
similarity index 65%
copy from fusl/test/vector.cc
copy to mojom/mojom_parser/utils/math_utils.go
index 77b04a305215b38c1acde7d693940283fbaefb0a..6ef74a4856942a9de57b10bcce3a342a33ed9334 100644
--- a/fusl/test/vector.cc
+++ b/mojom/mojom_parser/utils/math_utils.go
@@ -2,8 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <vector>
azani 2016/03/21 20:13:04 Why did this used to be C++?
rudominer 2016/03/21 22:35:12 I believe this must be an artifact of the code rev
+package utils
-int main(int argc, char** argv) {
- std::vector<int> xs(10);
+func MaximumUint32(a, b uint32) uint32 {
+ if a > b {
+ return a
+ }
+ return b
}

Powered by Google App Engine
This is Rietveld 408576698