Skip to content

Commit 09b4873

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: a2e7f2f: 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 e1738ea commit 09b4873

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)