Difference Between HUGE_VALF and INFINITY Constants
问题 In OpenCL, there are two floating point math constants that represent infinity. One of them is simply INFINITY . The other, HUGE_VALF , "evaluates to" infinity. What is the difference between these two? What does it mean to "evaluate to" infinity? 回答1: HUGE_VALF is a legacy name that allows for floating-point systems that did not support infinities. For example, the C standard specifies that HUGE_VALF be returned in certain overflow cases. When a C implementation did not support infinities,