riscv-non-isa / rvv-intrinsic-doc

https://jira.riscv.org/browse/RVG-153
BSD 3-Clause "New" or "Revised" License
293 stars 89 forks source link

question about intrinsic naming #231

Closed PPParticle closed 1 year ago

PPParticle commented 1 year ago

i don't understand the reason why all intrinsic apis are added "__riscv" prefix. Typing more letters seems more troublesome for programmers.

PPParticle commented 1 year ago

Also, i think previous naming rule is clear and easy to understand.

topperc commented 1 year ago

Primarily for the same reason C++ has namespaces. Adding the "__riscv" makes it less likely to collide with user variable names or names from other libraries a user might be using.