From owner-freebsd-standards@FreeBSD.ORG Wed Aug 31 08:14:35 2005 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A181716A41F; Wed, 31 Aug 2005 08:14:35 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD9CC43D46; Wed, 31 Aug 2005 08:14:34 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.4.9]) by relay-er5.mbrd.ru with esmtp (Exim 4.x) id 1EANjn-0001SE-TD; Wed, 31 Aug 2005 12:14:28 +0400 Message-ID: <431566E3.5040606@FreeBSD.org> Date: Wed, 31 Aug 2005 12:14:27 +0400 From: Sergey Matveychuk User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <4314193B.80208@FreeBSD.org> <20050830170235.GB4337@dan.emsphone.com> In-Reply-To: <20050830170235.GB4337@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, standards@freebsd.org Subject: Re: standards/85090: [patch] add memalign() and posix_memalign() functions X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 08:14:35 -0000 Dan Nelson wrote: > In the last episode (Aug 30), Sergey Matveychuk said: > >>Could I hear some comments, need we a memalign() function or not? > > > Our malloc already aligns pretty well. Blocks < 16 bytes are aligned > to 16 bytes. Blocks from 16 to pagesize are aligned to powers of two > (rounded up), and blocks greater than pagesize are aligned to pagesize. > Yes, I know. But if programmer needs some special align? There is posix_memalign() in standard (as extension). Need we posix_memalign() then? -- Sem.