diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-22 16:59:35 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-22 16:59:35 +0000 |
commit | 2e1db35bbac06108f2d79bb629801300980f7f23 (patch) | |
tree | de4fa67c3ddcc743a1c599152a98331b819c93df /gcc/java/javaop.h | |
parent | 9061b5fb4128bb81bc7cca692ff1426ddbd7eaa3 (diff) | |
download | gcc-2e1db35bbac06108f2d79bb629801300980f7f23.tar.gz |
* javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally.
(WORDS_TO_LONG): Likewise.
(WORDS_TO_DOUBLE): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/javaop.h')
-rw-r--r-- | gcc/java/javaop.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/java/javaop.h b/gcc/java/javaop.h index 5f72e6a7f09..cce0a61ea49 100644 --- a/gcc/java/javaop.h +++ b/gcc/java/javaop.h @@ -102,20 +102,14 @@ union Word { | (BCODE[PC-2] << 8) | (BCODE[PC-1])))) #endif -#ifdef __GNUC__ -__inline -#endif -static jfloat +static inline jfloat WORD_TO_FLOAT(jword w) { union Word wu; wu.i = w; return wu.f; } -#ifdef __GNUC__ -__inline -#endif -static jlong +static inline jlong WORDS_TO_LONG(jword hi, jword lo) { return ((jlong) hi << 32) | ((jlong)lo & (((jlong)1 << 32) -1)); @@ -127,10 +121,7 @@ union DWord { jword w[2]; }; -#ifdef __GNUC__ -__inline -#endif -static jdouble +static inline jdouble WORDS_TO_DOUBLE(jword hi, jword lo) { union DWord wu; wu.l = WORDS_TO_LONG(hi, lo); |