commit | d4fff483ddf3886389168c8aa014be613a0ae0fd | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed Feb 02 18:05:38 2022 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Thu Feb 03 15:21:03 2022 +0000 |
tree | e55467cb14f0b905864f35a1f7015294f761ff30 | |
parent | a83a5cf287f4e2aa915676c39f8ddd1d1669b9c5 [diff] |
Implement Metal polyfill for sign(genIType). This uses nested selects to compute `(x > 0) ? 1 : (x < 0) ? -1 : 0`. Change-Id: I1a87fc8506767bb0a9dd77ba2193b330e0a4d0a2 Bug: skia:12898, skia:11209 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/503486 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>