Message ID | 1380300997-28099-3-git-send-email-julien.grall@linaro.org |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <patchwork-forward+bncBCI3N6FH3YJRB5PRS2JAKGQEQTAUFMA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 69E5425E77 for <linaro@patches.linaro.org>; Fri, 27 Sep 2013 16:57:25 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id c41sf2634219yho.0 for <linaro@patches.linaro.org>; Fri, 27 Sep 2013 09:57:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=M7ueX+VEbrQGt6IAcSff4Yv9kvERLlr959abkwHubmM=; b=ASDTParxqI73A9pQ6nCNJamRMrIRZiIC4LqN8Aojx4fGgbnMSROE6LKLDbN/HP415x 0HS+L/G0dDCB1jOZ3LgiQTjqPda+g/n3xWqVrznJ70YCSvn38FQ43MXznWV0f6YXE4Q/ cuNklD13pYu7Dz6tZgQ/OBn5AJq2iZ5cFffhoXCiiOEIN82azWsms74OJDZPeVSeyZex xetGMfAojESzMk1/syZ8uJHziSM5BsOKgZwK40wLju+F3aCcwdYu58vtq+McLkeDJTqZ 3ElfdZm/NjjmDrpfhclzI7HOyrryFcytusOLQJFm26tNl2zMyBKROC2xKedhVltuJ6OD 8/8g== X-Gm-Message-State: ALoCoQkZWZH+frULxp4AtBCmaHrLCyDfWm8uzmdPU7+mIZofDDfMbDfnv9uV3HHe2J1VlnxpBKlE X-Received: by 10.236.17.161 with SMTP id j21mr383334yhj.55.1380301045239; Fri, 27 Sep 2013 09:57:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.83 with SMTP id s19ls1370013qeu.7.gmail; Fri, 27 Sep 2013 09:57:25 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr7362307vcl.20.1380301045050; Fri, 27 Sep 2013 09:57:25 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id fe2si2063813vcb.16.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:57:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id e12so2093678vbg.1 for <patchwork-forward@linaro.org>; Fri, 27 Sep 2013 09:56:55 -0700 (PDT) X-Received: by 10.58.229.41 with SMTP id sn9mr7205756vec.11.1380301014932; Fri, 27 Sep 2013 09:56:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp439651vcz; Fri, 27 Sep 2013 09:56:54 -0700 (PDT) X-Received: by 10.181.12.75 with SMTP id eo11mr3473945wid.24.1380301013914; Fri, 27 Sep 2013 09:56:53 -0700 (PDT) Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by mx.google.com with ESMTPS id pp9si3228272wjc.150.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:56:53 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.180 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.180; Received: by mail-we0-f180.google.com with SMTP id u57so2926134wes.39 for <patches@linaro.org>; Fri, 27 Sep 2013 09:56:53 -0700 (PDT) X-Received: by 10.180.185.10 with SMTP id ey10mr3434534wic.29.1380301013492; Fri, 27 Sep 2013 09:56:53 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id q5sm15639406wiz.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:56:52 -0700 (PDT) From: Julien Grall <julien.grall@linaro.org> To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, tim@xen.org, Julien Grall <julien.grall@linaro.org>, Keir Fraser <keir@xen.org>, Jan Beulich <jbeulich@suse.com> Subject: [PATCH v3 2/5] xen: Add macro ROUNDUP Date: Fri, 27 Sep 2013 17:56:34 +0100 Message-Id: <1380300997-28099-3-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1380300997-28099-1-git-send-email-julien.grall@linaro.org> References: <1380300997-28099-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 4768b0e..5b258fd 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -63,6 +63,8 @@ do { \ #define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m))) #define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m)) +#define ROUNDUP(x, a) (((x) + (a) - 1) & ~((a) - 1)) + #define reserve_bootmem(_p,_l) ((void)0) struct domain;
Signed-off-by: Julien Grall <julien.grall@linaro.org> CC: Keir Fraser <keir@xen.org> CC: Jan Beulich <jbeulich@suse.com> --- Changes in v3: - Move the macro in include/xen/lib.h - Rename in ROUNDUP to avoid collision with assembly ALIGN macro --- xen/include/xen/lib.h | 2 ++ 1 file changed, 2 insertions(+)