A few years ago, when I wrote the GPU miner for Protoshares/Momentum, I also released a CPU version (which has since had its butt kicked by @yvg1900's, naturally).
For others interested in CPU miner optimization, I wrote up a little post about one of the tricks I used to write it -- intel's fairly un-heralded parallelizing compiler, ISPC:
https://da-data.blogspot.com/2016/12/accelerating-cryptocurrency-mining-with.htmlThere's no reason it doesn't apply to other currencies where there's not a hand-optimized AVX2 implementation of the crypto.
Cheers!