1
0

Add sink that keeps results observable

This commit is contained in:
2026-07-26 11:45:36 +00:00
parent deb4aedec0
commit 6afd2e55cc

View File

@@ -0,0 +1,10 @@
package com.ankurm.vectorapi;
/** Keeps computed values observable so the JIT cannot delete the computation. */
public final class Sink {
public static volatile float sink;
public static void consume(float v) { sink = v; }
private Sink() {}
}