Closed tianjunwork closed 3 years ago
Looks safe and appropriate to fix a divide by zero error.
Please use
Fixes #602
under the issue line to make sure it properly auto-closes the issue, unless it doesn't fully close the issue
Thanks Chris. I didn't add auto-close since the issue includes other topics still in discussion.
Signed-off-by: Jun Tian jun.tian@intel.com
Description
With command line in #602, behavior is different between gcc-10 and 8. gcc-10 gives
floating point exception
fordivide by zero
. gcc-8 simply returns 0. This PR fixes the exception when code is compiled with gcc-10.Issue
602
Author(s)
@tianjunwork
Performance impact
Merge method