[FFmpeg-devel] [PATCH] avutil: runtime cpu detection for mips

Clément Bœsch u at pkh.me
Wed Sep 30 23:32:52 CEST 2015

On Wed, Sep 30, 2015 at 02:23:43PM +0000, Shivraj Patil wrote:
>  <shivraj.patil <at> imgtec.com> writes:
> > +    FILE *f = fopen("/proc/cpuinfo", "r");
> Is this what every other software for mips does?
> How does the kernel (or whatever sets cpuinfo) know?
> Shivraj:- We have used generic cpuinfo as it is unrestricted to access from user space compared to the kernel setting hwcaps (via low level mips control regs accessible) in kernel space for now. 

I might be asking something stupid, but afaik /proc is linux exclusive;
does this mean it's going to disable all optimisations on every other


Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150930/9bd6ed9a/attachment.sig>

More information about the ffmpeg-devel mailing list