pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: First attempt to build qt5-qt-webengine on arm64
On Sun, Oct 30, 2022 at 12:46:33PM +0100, Martin Husemann wrote:
> On Sun, Oct 30, 2022 at 08:06:22AM +0000, adr wrote:
> > I don't see anything like getauxval() in netbsd. CRC32 is tested in
> > cpuinfo(8), but PMULL is not. Could someone point me to a common approach
> > to do this in pkgsrc, or should I roll my own, a la libcrypto?
> >
> > Any advice?
>
> Look at identifycpu() in usr.sbin/cpuctl/arch/aarch64.c, it gets
> all the info via sysctl.
(But be aware that doing all this is dangerous if your thread is not bound
to a concrete cpu or you loop over all of them and find the minimum available
for the feature you are looking at)
Martin
Home |
Main Index |
Thread Index |
Old Index