< prev index next >
src/os_cpu/aix_ppc/vm/atomic_aix_ppc.hpp
Print this page
rev 13526 : 8186855: Multiple platforms broken after 8186476: Generalize Atomic::add with templates
@@ -104,12 +104,12 @@
};
template<>
template<typename I, typename D>
inline D Atomic::PlatformAdd<4>::add_and_fetch(I add_value, D volatile* dest) const {
- STATIC_CAST(4 == sizeof(I));
- STATIC_CAST(4 == sizeof(D));
+ STATIC_ASSERT(4 == sizeof(I));
+ STATIC_ASSERT(4 == sizeof(D));
D result;
__asm__ __volatile__ (
strasm_lwsync
@@ -127,12 +127,12 @@
template<>
template<typename I, typename D>
inline D Atomic::PlatformAdd<8>::add_and_fetch(I add_value, D volatile* dest) const {
- STATIC_CAST(8 == sizeof(I));
- STATIC_CAST(8 == sizeof(D));
+ STATIC_ASSERT(8 == sizeof(I));
+ STATIC_ASSERT(8 == sizeof(D));
D result;
__asm__ __volatile__ (
strasm_lwsync
< prev index next >