1d722e3fbSopenharmony_ci/*
2d722e3fbSopenharmony_ci * Copyright 2008 Tungsten Graphics
3d722e3fbSopenharmony_ci *   Jakob Bornecrantz <jakob@tungstengraphics.com>
4d722e3fbSopenharmony_ci * Copyright 2008 Intel Corporation
5d722e3fbSopenharmony_ci *   Jesse Barnes <jesse.barnes@intel.com>
6d722e3fbSopenharmony_ci *
7d722e3fbSopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
8d722e3fbSopenharmony_ci * copy of this software and associated documentation files (the "Software"),
9d722e3fbSopenharmony_ci * to deal in the Software without restriction, including without limitation
10d722e3fbSopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11d722e3fbSopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the
12d722e3fbSopenharmony_ci * Software is furnished to do so, subject to the following conditions:
13d722e3fbSopenharmony_ci *
14d722e3fbSopenharmony_ci * The above copyright notice and this permission notice shall be included in
15d722e3fbSopenharmony_ci * all copies or substantial portions of the Software.
16d722e3fbSopenharmony_ci *
17d722e3fbSopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18d722e3fbSopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19d722e3fbSopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20d722e3fbSopenharmony_ci * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21d722e3fbSopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22d722e3fbSopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23d722e3fbSopenharmony_ci * IN THE SOFTWARE.
24d722e3fbSopenharmony_ci */
25d722e3fbSopenharmony_ci
26d722e3fbSopenharmony_ci#ifndef UTIL_COMMON_H
27d722e3fbSopenharmony_ci#define UTIL_COMMON_H
28d722e3fbSopenharmony_ci
29d722e3fbSopenharmony_ci#ifndef ARRAY_SIZE
30d722e3fbSopenharmony_ci#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
31d722e3fbSopenharmony_ci#endif
32d722e3fbSopenharmony_ci
33d722e3fbSopenharmony_ci#endif /* UTIL_COMMON_H */
34