MCPcopy Index your code
hub / github.com/gpujs/gpu.js / testBitwiseNotSinglePrecision

Function testBitwiseNotSinglePrecision

test/features/bitwise-operators.js:252–265  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

250});
251
252function testBitwiseNotSinglePrecision(mode) {
253 const gpu = new GPU({ mode });
254 const kernel = gpu.createKernel(function(v1) {
255 return ~v1;
256 })
257 .setOutput([1])
258 .setPrecision('single');
259
260 for (let i = 0; i < 10; i++) {
261 assert.equal(kernel(i)[0], ~i);
262 }
263
264 gpu.destroy();
265}
266
267(GPU.isSinglePrecisionSupported ? test : skip)('bitwise NOT single precision auto', () => {
268 testBitwiseNotSinglePrecision();

Callers 1

Calls 5

createKernelMethod · 0.95
destroyMethod · 0.95
kernelFunction · 0.85
setPrecisionMethod · 0.45
setOutputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…