Calculates the length of the hypotenuse of a right triangle whose two sides have lengths x
and y
without undue overflow or underflow.
- Returns:
- Returns the length of the hypotenuse
. If the correct value would overflow, returns
. If the correct value would underflow, returns 0.
- Note:
- For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.