os/ossrv/stdcpp/src/aligned_buffer.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200 (2012-06-15)
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
# ifndef ALIGNED_BUFFER_H
sl@0
     2
#  define ALIGNED_BUFFER_H
sl@0
     3
sl@0
     4
_STLP_BEGIN_NAMESPACE
sl@0
     5
// this is for fake initialization
sl@0
     6
template<class T>
sl@0
     7
union _Stl_aligned_buffer {
sl@0
     8
  char buf[sizeof(T)];
sl@0
     9
  struct { double a; double b; } padding;
sl@0
    10
};
sl@0
    11
_STLP_END_NAMESPACE
sl@0
    12
sl@0
    13
# endif