Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.16.1/tests/transcendentals-exp-varying.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

12 lines
424 B
Plaintext

// rule: skip on cpu=TGLLP
bool ok(double x, double ref) { return (abs(x - ref) < 1d-7) || abs((x-ref)/ref) < 1d-6; }
export void f_du(uniform float RET[], uniform double aFOO[], uniform double b) {
varying double ref = exp((float)aFOO[programIndex]);
varying double res = exp(aFOO[programIndex]);
RET[programIndex] = ok(res, ref) ? 0. : 1.;
}
export void result(uniform float RET[]) {
RET[programIndex] = 0.0;
}