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

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: Another comment and more tests. 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
« no previous file with comments | « mojom/mojom_parser/serialization/serialization_test.go ('k') | mojom/mojom_parser/utils/sort_utils.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
+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
}
« no previous file with comments | « mojom/mojom_parser/serialization/serialization_test.go ('k') | mojom/mojom_parser/utils/sort_utils.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698