• 10/30/2018
  • Public Content
Contents

Use Array Notation with int32 Indices: A[i][j]

Prefer the array notation with indices of the signed
int32
type over other memory access formats. Avoid explicit pointer arithmetic like (A+1) as it results in expensive unsigned
int64
calculations and prevents various compiler optimizations. To gain performance, access any array through its unchanged base pointer using array notation, for example, A[1].

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.