blob: 9197022bb324d4fc7820b84479ecf03d4d17f741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<%
if streaming != 'SSS':
raise Exception('"update_sss_control_structure" function only makes sense for the SSS pattern')
%>
void update_sss_control_structure(${float_type}** f) {
% for i, c_i in enumerate(descriptor.c):
${float_type}* f_old_${i} = f[${i}];
% endfor
% for i, c_i in enumerate(descriptor.c):
f[${i}] = f_old_${descriptor.c.index(-c_i)};
% endfor
% for i, c_i in enumerate(descriptor.c):
f[${i}] += ${layout.neighbor_offset(-c_i)};
% endfor
}
|