mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 04:26:08 +00:00

Fixes OCL CTS rsqrt and half_rsqrt (1 thread, scalaer) tests on AMD Turks. Reviewer: awatry Differential Revision: https://reviews.llvm.org/D74016
11 lines
242 B
Common Lisp
11 lines
242 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
#include "../../../generic/lib/clcmacro.h"
|
|
|
|
_CLC_OVERLOAD _CLC_DEF float native_rsqrt(float x)
|
|
{
|
|
return __builtin_r600_recipsqrt_ieeef(x);
|
|
}
|
|
|
|
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, native_rsqrt, float);
|