[Pixman] [PATCH] test: Add a new benchmarker targeting affine operations
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Tue Apr 14 12:16:01 PDT 2015
On Tue, Apr 14, 2015 at 07:20:50PM +0100, Ben Avison wrote:
> On Tue, 14 Apr 2015 11:28:51 +0100, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> >you asked about reading the cache sizes; I have no idea about that.
> >
> >>+#define PAGE_SIZE (4 * 1024)
> >
> >Hm, sysconf(3) has PAGESIZE query, but I don't know if it is
> >appropriate here. I also tend to forget that Windows might be relevant
> >for Pixman.
>
> I see the front page of http://www.pixman.org/ says "many platforms,
> including Linux, BSD Derivatives, MacOS X, and Windows" so I expect it
> would be a requirement, yes.
How about using GetSystemInfo on windows and sysconf on the other
platforms?
--
Len Sorensen
More information about the Pixman
mailing list