X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=util.h;h=fd61d9b4b61b3a4a831afbb1182060db21d0a231;hb=7cfcc285d943c7c9f33ad949922e370ede98ed50;hp=9606336fdc4c99e75895c071c495f4b5948ff169;hpb=96c7a3bf4c04a52d04f2b2cb8070d662ca337a7d;p=android-x86%2Fexternal-minigbm.git diff --git a/util.h b/util.h index 9606336..fd61d9b 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 The Chromium OS Authors. All rights reserved. + * Copyright 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -8,9 +8,9 @@ #define UTIL_H #define MAX(A, B) ((A) > (B) ? (A) : (B)) -#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*(A))) +#define ARRAY_SIZE(A) (sizeof(A) / sizeof(*(A))) #define PUBLIC __attribute__((visibility("default"))) -#define ALIGN(A, B) (((A) + (B) - 1) / (B) * (B)) -#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) +#define ALIGN(A, B) (((A) + (B)-1) / (B) * (B)) +#define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) #endif