/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/func-tests/ldexp-float16-zero.ispc
19 строк
672 B
Trung Lê
Add Linux ppc64le (PowerPC64) architecture support using generic targets (#3735)
24 фев 2026, 00:55
Не верифицирован
24 фев 2026, 00:55
b72df90
Код
Авторство
О чём код?
#include "test_static.isph" // rule: skip on arch=ppc64le task void f_f(uniform float RET[], uniform float aFOO[]) { RET[programIndex] = 0.0f; float16 testVal = ldexp(aFOO[0]-1, -2); RET[programIndex] += (testVal == 0.0f16) ? 0 : 1; testVal = ldexp(0.0f16, -2); RET[programIndex] += (testVal == 0.0f16) ? 0 : 1; testVal = ldexp(-0.0f16, -2); RET[programIndex] += (testVal == -0.0f16) ? 0 : 1; testVal = ldexp(0.0f16, 2); RET[programIndex] += (testVal == 0.0f16) ? 0 : 1; testVal = ldexp(-0.0f16, 2); RET[programIndex] += (testVal == -0.0f16) ? 0 : 1; } task void result(uniform float RET[]) { RET[programIndex] = 0; }