Based on ATmega169, this ALU can provide services like the old 74181 etc. You can do a lot of math operations with two 8bit numbers. It’s designed for ATmega, but source code is MIT licensed, therefore it should work on PICs etc.