Altera_Forum
Honored Contributor
11 years agoExcessive logic utilization from memmove
The following code is similar to a memmove() operation. This code results in a significant increase in logic utilization. The 'rep' member on the struct is defined as an unsigned char. Is there a technique that can be used to avoid the excessive logic utilization from this code? I'm seeing my logic utilization jump by 25% by simply including this function. This occurs regardless of the reqd_work_group_size() value.
void expand( struct number *h ){ int i; h->size++; for (i=h->size-1; i>0; i--) { h->rep[i] = h->rep[i-1]; } h->rep[0] = 0x00; }