9 lines
302 B
C
9 lines
302 B
C
// i8 global-array indexed access — sister benchmark to globalArrSum
|
|
// that exercises the LDA8absX combine path.
|
|
unsigned char globalArr8[100];
|
|
|
|
unsigned short globalArr8Sum(unsigned short n) {
|
|
unsigned short s = 0;
|
|
for (unsigned short i = 0; i < n; i++) s += globalArr8[i];
|
|
return s;
|
|
}
|