4

I'm running Debian on an x86_64 Intel processor.

gcc (Debian 8.3.0) compiles the following program

#include <stdio.h>
#include <stdalign.h>
#include <stddef.h>

int main(){
  printf("%zd\n",alignof(max_align_t));
}

and outputs

16

What datatype requires a 16 byte alignment?

Willis Hershey
  • 1,520
  • 4
  • 22

1 Answers1

3

On x86_64, _Alignof(long double)==16.

R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711