[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: block-based vector allocator
From: |
Andreas Schwab |
Subject: |
Re: Proposal: block-based vector allocator |
Date: |
Mon, 21 May 2012 15:02:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) |
Dmitry Antipov <address@hidden> 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 <signal.h>
>
> +#if defined HAVE_ROUNDUP
> +#include <sys/param.h>
> +#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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Proposal: block-based vector allocator, Dmitry Antipov, 2012/05/17
- Re: Proposal: block-based vector allocator, Stefan Monnier, 2012/05/18
- Re: Proposal: block-based vector allocator, Stefan Monnier, 2012/05/21
- Re: Proposal: block-based vector allocator, Dmitry Antipov, 2012/05/22
- Re: Proposal: block-based vector allocator, Dmitry Antipov, 2012/05/31
- Re: Proposal: block-based vector allocator, Paul Eggert, 2012/05/31
- Re: Proposal: block-based vector allocator, Stefan Monnier, 2012/05/31