0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

ircd::simt: Store divisor in mean state for now.

This commit is contained in:
Jason Volk 2022-06-19 18:51:50 -07:00
parent 7006391936
commit 31e078506a

View file

@ -15,10 +15,17 @@
/// XXX eventually /// XXX eventually
struct ircd_math_mean struct ircd_math_mean
{ {
float /// Summand spread. TODO XXX
last, ///< Last addend. float sum[4];
mean, ///< Computed mean.
sum[4]; ///< Summand spread. TODO XXX /// Divisor.
uint div;
/// Last addend.
float last;
/// Computed mean.
float mean;
}; };
#ifdef __OPENCL_VERSION__ #ifdef __OPENCL_VERSION__