Double precision value computation errors on MediaTek processors

后端 未结 4 1803
时光取名叫无心
时光取名叫无心 2021-01-03 22:44

I\'ve found that one of my application posted on the market produces weird results on some phones. Upon investigation it turns out there is an issue with one function which

4条回答
  •  孤独总比滥情好
    2021-01-03 23:21

    This was a JIT bug that was active in the JellyBean source from late 2012 through early 2013. In short, if two or more double-precision constants that were different in the high 32 bits, but identical in the low 32 bits were used in the same basic block the JIT would think they were the same, and inappropriately optimize one of them away.

    I introduced the defect in: https://android-review.googlesource.com/#/c/47280/

    and fixed it in: https://android-review.googlesource.com/#/c/57602/

    The defect should not appear in any recent Android builds.

提交回复
热议问题