Skip to content

Commit b61f15a

Browse files
aratajewigcbot
authored andcommitted
Fix incorrect result for fp16 fract function for small negative inputs
According to OpenCL C spec of `fract` function: "Returns fmin(x - floor(x), C), where C is the constant 0x1.fffffep-1f for float aguments, 0x1.fffffffffffffp-1 for double arguments, and 0x1.ffcp-1h for half arguments. floor(x) is returned in iptr." Therefore `0x1.ffcp-1h` should be used for `half` version of `fract`.
1 parent e269a93 commit b61f15a

File tree

1 file changed

+24
-24
lines changed
  • IGC/BiFModule/Implementation/Math

1 file changed

+24
-24
lines changed

0 commit comments

Comments
 (0)