From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Proposal: block-based vector allocator Date: Mon, 21 May 2012 17:48:16 +0400 Message-ID: <4FBA47A0.4050103@yandex.ru> 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; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337607981 14503 80.91.229.3 (21 May 2012 13:46:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 May 2012 13:46:21 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 15:46:20 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 1SWSwD-0002jG-Mh for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 15:46:17 +0200 Original-Received: from localhost ([::1]:45349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSwC-0000DO-TY for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 09:46:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSw6-0000D5-Ev for emacs-devel@gnu.org; Mon, 21 May 2012 09:46:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWSw4-0000YN-MO for emacs-devel@gnu.org; Mon, 21 May 2012 09:46:10 -0400 Original-Received: from forward6.mail.yandex.net ([77.88.60.125]:57733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWSw4-0000Y7-Ag for emacs-devel@gnu.org; Mon, 21 May 2012 09:46:08 -0400 Original-Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward6.mail.yandex.net (Yandex) with ESMTP id 7A7F01121629; Mon, 21 May 2012 17:46:06 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1337607966; bh=lGcQANUoDFdL5Yf/XV0a91RVk5lQBktN75MJ1MfTD80=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dGvKuPkBWp1ZBsUEEdq+z57Nl8Z17jpM37EVTCgjyI295wGAbw+TlVy/zNtdpgZIz HivoDSlUmAzWxIEs+Y4GPTKpkjsRuQSkNXB1RqOnYPxEfmk224+FsSMDxTloDMqeaN MvZN5vgeAclHD0e3E0YRGPX1LgEl0ykpR31uh6J8= Original-Received: from smtp9.mail.yandex.net (localhost [127.0.0.1]) by smtp9.mail.yandex.net (Yandex) with ESMTP id 0E9FF15203CF; Mon, 21 May 2012 17:46:06 +0400 (MSK) Original-Received: from antipov.client.gelicon.ru (antipov.client.gelicon.ru [78.153.153.8]) by smtp9.mail.yandex.net (nwsmtp/Yandex) with ESMTP id k5WCxpQf-k5Wm79W0; Mon, 21 May 2012 17:46:05 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1337607966; bh=lGcQANUoDFdL5Yf/XV0a91RVk5lQBktN75MJ1MfTD80=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ou8TIOeBtKJV8FyChUpiU3QslaK/jXODyi5Il/gP0xebn3eA0rmrEOteQZP/vkXHz NsH5O5AMUyreWYMtPS0OuFdDCGd8RMtGpsSbz7G9cUVNl+5SI+qvdvZ9UUeKON3hSa cDPZGbOIAy//bxm9ZwjwEqHjWq7ALrsz9y7YxWJI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.60.125 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:150575 Archived-At: On 05/21/2012 05:02 PM, Andreas Schwab wrote: > It doesn't make much sense to try to find such a trivial but non-std > macro in a system header. Hm, glibc provides some not-so-trivial bits (assuming gcc): # define roundup(x, y) (__builtin_constant_p (y) && powerof2 (y) \ ? (((x) + (y) - 1) & ~((y) - 1)) \ : ((((x) + ((y) - 1)) / (y)) * (y))) It seems to be a very negligible optimization, but why not use it if available? Dmitry