Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2014 The Chromium OS Authors. All rights reserved. | ||||
3 | * Use of this source code is governed by a BSD-style license that can be | ||||
4 | * found in the LICENSE file. | ||||
5 | */ | ||||
6 | |||||
7 | #ifndef UTIL_H | ||||
8 | #define UTIL_H | ||||
9 | |||||
10 | #define MAX(A, B) ((A) > (B) ? (A) : (B)) | ||||
11 | #define ARRAY_SIZE(A) (sizeof(A)/sizeof(*(A))) | ||||
12 | |||||
13 | #endif |