classilla / tenfourfox

Mozilla for Power Macintosh.
http://www.tenfourfox.com/
Other
273 stars 41 forks source link

Convert gcm-x86 to AltiVec #589

Closed classilla closed 4 years ago

classilla commented 4 years ago

In particular vec_xl and vec_xst need to be turned back into vec_ld and vec_st(e), assuming that alignment can be maintained (or fixed).

classilla commented 4 years ago

It assumes 64-bit quantities in vectors, which ppc32 does not support. I guess we could convert gcm-x86.c which uses SSE2.

classilla commented 4 years ago

We would need to convert the PCLMULQDQ instructions to something else, though.

classilla commented 4 years ago

Actually, even that has 64-bit all over it. There doesn't seem to be an easy 32-bit way to do it.