Skip to content
Snippets Groups Projects
Commit 96144e13 authored by Paolo Carlini's avatar Paolo Carlini Committed by Paolo Carlini
Browse files

type_traits (aligned_storage): Use __aligned__ instead of aligned.

2005-01-23  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (aligned_storage): Use __aligned__ instead
	of aligned.

From-SVN: r94107
parent 0554d39a
No related branches found
No related tags found
No related merge requests found
2005-01-23 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (aligned_storage): Use __aligned__ instead
of aligned.
2005-01-23 Paolo Carlini <pcarlini@suse.de> 2005-01-23 Paolo Carlini <pcarlini@suse.de>
Andreas Jaeger <aj@suse.de> Andreas Jaeger <aj@suse.de>
......
...@@ -662,7 +662,7 @@ namespace tr1 ...@@ -662,7 +662,7 @@ namespace tr1
// //
// template<std::size_t _Len, std::size_t _Align> // template<std::size_t _Len, std::size_t _Align>
// struct aligned_storage // struct aligned_storage
// { typedef char type[_Len] __attribute__((aligned(_Align))); } // { typedef char type[_Len] __attribute__((__aligned__(_Align))); }
// //
// Temporary workaround, useful for Align up to 32: // Temporary workaround, useful for Align up to 32:
template<std::size_t, std::size_t> template<std::size_t, std::size_t>
...@@ -674,7 +674,7 @@ namespace tr1 ...@@ -674,7 +674,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(1))); char __align __attribute__((__aligned__(1)));
}; };
}; };
...@@ -684,7 +684,7 @@ namespace tr1 ...@@ -684,7 +684,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(2))); char __align __attribute__((__aligned__(2)));
}; };
}; };
...@@ -694,7 +694,7 @@ namespace tr1 ...@@ -694,7 +694,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(4))); char __align __attribute__((__aligned__(4)));
}; };
}; };
...@@ -704,7 +704,7 @@ namespace tr1 ...@@ -704,7 +704,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(8))); char __align __attribute__((__aligned__(8)));
}; };
}; };
...@@ -714,7 +714,7 @@ namespace tr1 ...@@ -714,7 +714,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(16))); char __align __attribute__((__aligned__(16)));
}; };
}; };
...@@ -724,7 +724,7 @@ namespace tr1 ...@@ -724,7 +724,7 @@ namespace tr1
union type union type
{ {
unsigned char __data[_Len]; unsigned char __data[_Len];
char __align __attribute__((aligned(32))); char __align __attribute__((__aligned__(32)));
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment