summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h')
-rw-r--r--chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h b/chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h
new file mode 100644
index 00000000000..4c6e1831f6d
--- /dev/null
+++ b/chromium/third_party/libvpx/source/libvpx/third_party/nestegg/halloc/src/align.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2004-2010 Alex Pankratov. All rights reserved.
+ *
+ * Hierarchical memory allocator, 1.2.1
+ * http://swapped.cc/halloc
+ */
+
+/*
+ * The program is distributed under terms of BSD license.
+ * You can obtain the copy of the license by visiting:
+ *
+ * http://www.opensource.org/licenses/bsd-license.php
+ */
+
+#ifndef _LIBP_ALIGN_H_
+#define _LIBP_ALIGN_H_
+
+/*
+ * a type with the most strict alignment requirements
+ */
+union max_align
+{
+ char c;
+ short s;
+ long l;
+ int i;
+ float f;
+ double d;
+ void * v;
+ void (*q)(void);
+};
+
+typedef union max_align max_align_t;
+
+#endif
+