projg2 / cpuid2cpuflags

Tool to generate CPU_FLAGS_* for your CPU
GNU General Public License v2.0
104 stars 20 forks source link

ppc: add initial implementation #13

Closed gyakovlev closed 5 years ago

gyakovlev commented 5 years ago

add initial ppc support implementation, directly based on arm code

works on ppc and ppc64(be) and ppc64le

A lot of help received from Shawn, credited in commit message.

Flags do not exist yet in gentoo, but we plan to add those.

notable consumers where support already exists but not enabled or automagically determined: libpng, libvpx, ffmpeg, x264, x265, firefox-70 and other media libs, all get major speedup if built properly on modern power CPUs.

mgorny commented 5 years ago

Also, it would be nice to see use.desc patch reviewed on the ml before we release this.

gyakovlev commented 5 years ago

thanks for quick review! will update a bit later, currently working on profiles change and will send soon.

gyakovlev commented 5 years ago

wrapped, single comma lands exactly on 80th, hope it's fine. patch sent to ml, and pull available here https://github.com/gentoo/gentoo/pull/12829

gyakovlev commented 5 years ago

rebased and squashed. does it look good now? I consider ML review of flags done, and would like to merge it, but we'll need this code released and at least ~ppc/~ppc64 keyworded.