Definition at line 187 of file noise.cpp.
187 {
188
189
190
191 switch(hash & 0xF) {
192 case 0:
return avg7(
x,
y);
193 case 1:
return avg7(-
x,
y);
194 case 2:
return avg7(
x, -
y);
195 case 3:
return avg7(-
x, -
y);
196 case 4:
return avg7(
x,
z);
197 case 5:
return avg7(-
x,
z);
198 case 6:
return avg7(
x, -
z);
199 case 7:
return avg7(-
x, -
z);
200 case 8:
return avg7(
y,
z);
201 case 9:
return avg7(-
y,
z);
202 case 10:
return avg7(
y, -
z);
203 case 11:
return avg7(-
y, -
z);
204
205 case 12:
return avg7(
x,
y);
206 case 13:
return avg7(-
x,
y);
207 case 14:
return avg7(
x, -
y);
208 case 15:
return avg7(-
x, -
y);
209 }
210 return 0;
211}
LIB8STATIC_ALWAYS_INLINE int8_t avg7(int8_t i, int8_t j)
Calculate an integer average of two signed 7-bit integers (int8_t).
References avg7(), x, y, and z.
Referenced by inoise8_raw(), inoise8_raw(), and inoise8_raw().