Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Type

Alignment

char

1 byte aligned

short

2 byte aligned

int

4 byte aligned

float

4 byte aligned

double

8 byte on Windows, 4 byte on Linux

Compliant Solution

-Make specific functions (avoid use of void*)-Always use strictest alignment type for arbitrary pointers.

Code Block
bgColor#ccccff
int *loop_ptr;
int * int_ptr;

int *loopFunction(int *v_pointer)
{    return v_pointer; }
int_ptr = loopFunction(loop_ptr);

...