summaryrefslogtreecommitdiffstats
path: root/server/glz_encoder.c
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2013-10-31 16:21:22 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-08-20 17:10:49 +0100
commit87c4def08764087e47113c8a64cf0f23573f1487 (patch)
treeb9118a830d1bdb1fa5126704fd8aa6e7a4493a95 /server/glz_encoder.c
parent5acc0176380b74546259690f5562a9404f1dec4f (diff)
downloadspice-87c4def08764087e47113c8a64cf0f23573f1487.tar.gz
spice-87c4def08764087e47113c8a64cf0f23573f1487.tar.xz
spice-87c4def08764087e47113c8a64cf0f23573f1487.zip
Remove use of INLINE
It's #define'd to 'inline', and only used in the GLZ encoder.
Diffstat (limited to 'server/glz_encoder.c')
-rw-r--r--server/glz_encoder.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/glz_encoder.c b/server/glz_encoder.c
index 5e1a694e..d9d6be11 100644
--- a/server/glz_encoder.c
+++ b/server/glz_encoder.c
@@ -50,7 +50,7 @@ typedef struct Encoder {
/**************************************************************************
* Handling writing the encoded image to the output buffer
***************************************************************************/
-static INLINE int more_io_bytes(Encoder *encoder)
+static inline int more_io_bytes(Encoder *encoder)
{
uint8_t *io_ptr;
int num_io_bytes = encoder->usr->more_space(encoder->usr, &io_ptr);
@@ -60,7 +60,7 @@ static INLINE int more_io_bytes(Encoder *encoder)
return num_io_bytes;
}
-static INLINE void encode(Encoder *encoder, uint8_t byte)
+static inline void encode(Encoder *encoder, uint8_t byte)
{
if (encoder->io.now == encoder->io.end) {
if (more_io_bytes(encoder) <= 0) {
@@ -73,7 +73,7 @@ static INLINE void encode(Encoder *encoder, uint8_t byte)
*(encoder->io.now++) = byte;
}
-static INLINE void encode_32(Encoder *encoder, unsigned int word)
+static inline void encode_32(Encoder *encoder, unsigned int word)
{
encode(encoder, (uint8_t)(word >> 24));
encode(encoder, (uint8_t)(word >> 16) & 0x0000ff);
@@ -81,26 +81,26 @@ static INLINE void encode_32(Encoder *encoder, unsigned int word)
encode(encoder, (uint8_t)(word & 0x0000ff));
}
-static INLINE void encode_64(Encoder *encoder, uint64_t word)
+static inline void encode_64(Encoder *encoder, uint64_t word)
{
encode_32(encoder, (uint32_t)(word >> 32));
encode_32(encoder, (uint32_t)(word & 0xffffff));
}
-static INLINE void encode_copy_count(Encoder *encoder, uint8_t copy_count)
+static inline void encode_copy_count(Encoder *encoder, uint8_t copy_count)
{
encode(encoder, copy_count);
encoder->io.last_copy = encoder->io.now - 1; // io_now cannot be the first byte of the buffer
}
-static INLINE void update_copy_count(Encoder *encoder, uint8_t copy_count)
+static inline void update_copy_count(Encoder *encoder, uint8_t copy_count)
{
GLZ_ASSERT(encoder->usr, encoder->io.last_copy);
*(encoder->io.last_copy) = copy_count;
}
// decrease the io ptr by 1
-static INLINE void compress_output_prev(Encoder *encoder)
+static inline void compress_output_prev(Encoder *encoder)
{
// io_now cannot be the first byte of the buffer
encoder->io.now--;