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:
parent
7006391936
commit
31e078506a
|
@ -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__
|
||||||
|
|
Loading…
Reference in a new issue