1. A method performable by a processor including multiple accumulators that correspond to multiple dimensions, the method comprising: selecting at least one event out of multiple events, each event of the multiple events represents reaching an end of a zero-overhead loop out of multiple zero-overhead loops, each one of the multiple zero-overhead loops is associated with a different dimension of the multiple dimensions, thereby producing at least one selected event that is associated with at least one selected zero-overhead loop; generating at least one reset signal to at least one selected accumulator that is responsive to the at least one selected event; and responsive to said at least one reset signal, resetting the at least one selected accumulator to zero or an initial value while avoiding exiting the at least one selected zero-overhead loop.