Chromium Code Reviews

Side by Side 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.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 package utils
6 6
7 int main(int argc, char** argv) { 7 func MaximumUint32(a, b uint32) uint32 {
8 std::vector<int> xs(10); 8 » if a > b {
9 » » return a
10 » }
11 » return b
9 } 12 }
OLDNEW
« 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