Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most SIMD and FP instructions are not microcoded in a modern mainstream CPU, FWIW.


@klelatti As far as I know, nobody has SIMD trig functions at the instruction level. FP trig functions are definitely micro-coded, and are (as-far-as-I-know) found only on CISC processors.

(HN seems to have a limit on how deeply you can nest replies. I can't reply to @klelatti's post direct :-/ )


Interesting. I sort of expected that for basic FP / SIMD but not for the full range - eg trig functions. Is that wrong?


There really aren't complex math functions in most SIMD ISAs(1), these functions are implemented in software instead. Even for scalar operations, no one(2) uses the x87 trig functions either, as software implementations are both faster and more accurate and have been for a couple decades.

(1) various HPC folks have proposed and used extensions that do _part_ of a complex math operation in SIMD at various times, and on GPUs this sort of thing is very common.

(2) except for math libraries that haven't been updated for a couple decades.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: