[Libreoffice] rtl_alloc_cache microopt question (& patch)

Sebastian Spaeth Sebastian at SSpaeth.de
Fri Nov 26 04:47:42 PST 2010


On Fri, 26 Nov 2010 13:42:29 +0100, Sebastian Spaeth wrote:
> -    if (n >= SAL_MAX_SIZE - (RTL_MEMALIGN + RTL_MEMALIGN - 1))
> +    if (n > SAL_MAX_SIZE - 2 * RTL_MEMALIGN

DOH, as all those CAP-Macros are constants anyway, the compiler would
probably evaluate that to a const value on compile time anyway.

I still find the new version easier to read.

Sorry for the noise
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101126/561e4f30/attachment.pgp>


More information about the LibreOffice mailing list