Mercurial > hg > truffle
comparison src/share/vm/utilities/globalDefinitions_gcc.hpp @ 14216:cca85d826c8f
8029566: PPC: OrderAccess::load_acquire(julong) is broken
Summary: JFR needs this fix to run on PPC
Reviewed-by: sla, mikael
author | jprovino |
---|---|
date | Wed, 11 Dec 2013 13:51:28 -0500 |
parents | 203f64878aab |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
14215:567455579fe4 | 14216:cca85d826c8f |
---|---|
172 // Cast floats into same-size integers and vice-versa w/o changing bit-pattern | 172 // Cast floats into same-size integers and vice-versa w/o changing bit-pattern |
173 // %%%%%% These seem like standard C++ to me--how about factoring them out? - Ungar | 173 // %%%%%% These seem like standard C++ to me--how about factoring them out? - Ungar |
174 | 174 |
175 inline jint jint_cast (jfloat x) { return *(jint* )&x; } | 175 inline jint jint_cast (jfloat x) { return *(jint* )&x; } |
176 inline jlong jlong_cast (jdouble x) { return *(jlong* )&x; } | 176 inline jlong jlong_cast (jdouble x) { return *(jlong* )&x; } |
177 inline julong julong_cast (jdouble x) { return *(julong* )&x; } | |
177 | 178 |
178 inline jfloat jfloat_cast (jint x) { return *(jfloat* )&x; } | 179 inline jfloat jfloat_cast (jint x) { return *(jfloat* )&x; } |
179 inline jdouble jdouble_cast(jlong x) { return *(jdouble*)&x; } | 180 inline jdouble jdouble_cast(jlong x) { return *(jdouble*)&x; } |
180 | 181 |
181 //---------------------------------------------------------------------------------------------------- | 182 //---------------------------------------------------------------------------------------------------- |