[libre-riscv-dev] [Bug 127] Transcendentals needed (SIN/COS/ATAN2/EXP/LOG/POW etc.)

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Wed Aug 7 00:09:24 BST 2019


http://bugs.libre-riscv.org/show_bug.cgi?id=127

--- Comment #10 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #9)

> I would name it Zfhyp or Zfhyper since they're usually called hyperbolic
> functions, not trigonometric hyperbolic functions.
> 
> Other than that, looks good to me.

done.  what about hypot? 
https://www.khronos.org/registry/spir-v/specs/unified1/OpenCL.ExtendedInstructionSet.100.html

"Result Type, x and y must be floating-point or vector(2,3,4,8,16) of
floating-point values."

do they mean x must be a vector and y must be a vector, and the result is:
map(hypot, zip(x, y))

or do they mean... no it's definitely not sqrt(x^2+y^2+z^2+w^2) is it.

hypot would be another separate funct5, have to be careful not to add too
many of those.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list