From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Proposal: block-based vector allocator Date: Mon, 21 May 2012 15:02:02 +0200 Message-ID: References: <4EDDA68B.5050601@yandex.ru> <4FB4AFA4.7020601@yandex.ru> <4FBA32D9.5090704@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337605338 25385 80.91.229.3 (21 May 2012 13:02:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 May 2012 13:02:18 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 15:02:17 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SWSFc-0000dh-H6 for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 15:02:16 +0200 Original-Received: from localhost ([::1]:48691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSFc-0000wp-2f for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 09:02:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSFU-0000vX-4N for emacs-devel@gnu.org; Mon, 21 May 2012 09:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWSFS-0006PJ-8O for emacs-devel@gnu.org; Mon, 21 May 2012 09:02:07 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:58456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSFS-0006P4-1p for emacs-devel@gnu.org; Mon, 21 May 2012 09:02:06 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Vx0WJ19HFz4Kh1h; Mon, 21 May 2012 15:02:03 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-114-7.dynamic.mnet-online.de [88.217.114.7]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Vx0WH437Bz4KKH6; Mon, 21 May 2012 15:02:03 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id D845FCA2A4; Mon, 21 May 2012 15:02:02 +0200 (CEST) X-Yow: Yow! I want to mail a bronzed artichoke to Nicaragua! In-Reply-To: <4FBA32D9.5090704@yandex.ru> (Dmitry Antipov's message of "Mon, 21 May 2012 16:19:37 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150574 Archived-At: Dmitry Antipov writes: > --- src/alloc.c 2012-04-23 05:44:49 +0000 > +++ src/alloc.c 2012-05-21 12:10:23 +0000 > @@ -25,6 +25,12 @@ > > #include > > +#if defined HAVE_ROUNDUP > +#include > +#else > +#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) > +#endif > + It doesn't make much sense to try to find such a trivial but non-std macro in a system header. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."