Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
alignment.cc
Go to the documentation of this file.
1 #include "common/logging.h"
2 #include <iostream>
3 
4 using namespace std;
5 
6 int main(int argc, char** argv) {
7  uint64_t aligned __attribute__ ((aligned (64)));
8  char padding;
9  uint64_t unaligned;
10  cout << &aligned << " -- " << (reinterpret_cast<uint64_t>(&aligned) % 8) << endl;
11  cout << &padding << " -- " << (reinterpret_cast<uint64_t>(&padding) % 8) << endl;
12  cout << &unaligned << " -- " << (reinterpret_cast<uint64_t>(&unaligned) % 8) << endl;
13 }
impala::GrowingTest __attribute__
int main(int argc, char **argv)
Definition: alignment.cc:6
uint8_t padding[64-sizeof(int)]