diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-11-10 19:08:24 +0200 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-11-10 19:08:24 +0200 |
commit | 992b0aa1cfe185d5666b5627087a830ebb93df24 (patch) | |
tree | 52a5786807d13e349cc9d6257d66fd9d3c9e3366 /libgfortran/io/io.h | |
parent | 154b68db9bee50c8acb1c0440987f4ef176d2a65 (diff) | |
download | gcc-992b0aa1cfe185d5666b5627087a830ebb93df24.zip gcc-992b0aa1cfe185d5666b5627087a830ebb93df24.tar.gz gcc-992b0aa1cfe185d5666b5627087a830ebb93df24.tar.bz2 |
Let the compiler decide whether to inline.
2011-11-10 Janne Blomqvist <jb@gcc.gnu.org>
* intrinsics/cpu_time.c (__cpu_time_1): Don't force inlining.
* intrinsics/random.c (rnumber_4): Remove inline attribute.
(rnumber_8, rnumber_10, rnumber_16): Likewise.
* intrinsics/system_clock.c (gf_gettime_mono): Likewise.
* intrinsics/time_1.h (ATTRIBUTE_ALWAYS_INLINE): Remove macro.
(gf_cputime): Add inline attribute for MingW version.
* io/format.c (format_hash): Remove inline attribute.
* io/io.h (memset4): Inline function from transfer.c and write.c
moved here.
* io/transfer.c (min_off): Remove inline attribute.
(memset4): Move to io.h.
* io/write.c (memset4): Likewise.
(memcpy4): Remove inline attribute.
* io/write_float.def (calculate_exp): Likewise.
From-SVN: r181260
Diffstat (limited to 'libgfortran/io/io.h')
-rw-r--r-- | libgfortran/io/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h index 5270fd7..06364e1 100644 --- a/libgfortran/io/io.h +++ b/libgfortran/io/io.h @@ -801,5 +801,14 @@ dec_waiting_unlocked (gfc_unit *u) #endif } + +static inline void +memset4 (gfc_char4_t *p, gfc_char4_t c, int k) +{ + int j; + for (j = 0; j < k; j++) + *p++ = c; +} + #endif |