[libclc] [libclc] Implement __clc_rsqrt with __ocml_rsqrt_* functions (PR #152436)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 6 22:07:56 PDT 2025


https://github.com/arsenm commented:

ocml rsqrt should be deleted, this is implementable by

```
float rsqrt(float x) {
    #pragma clang fp contract(fast)
    return 1.0f / __builtin_elementwise_sqrt(x);
}
```

https://github.com/llvm/llvm-project/pull/152436


More information about the cfe-commits mailing list