summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-02 14:59:32 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-09 16:09:19 +0300
commit2156107afcd1954fd36ab1e55cf73390548e6d07 (patch)
treebdb7a6dc36147308ae8a9145bb0fc8e931edce87 /src/blob.c
parentf9f8594069fbf8757d350669d0c3a9187bbba4ae (diff)
downloadapk-tools-2156107afcd1954fd36ab1e55cf73390548e6d07.tar.gz
apk-tools-2156107afcd1954fd36ab1e55cf73390548e6d07.tar.bz2
apk-tools-2156107afcd1954fd36ab1e55cf73390548e6d07.tar.xz
apk-tools-2156107afcd1954fd36ab1e55cf73390548e6d07.zip
minor performance improvements on build and code
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 3a20439..aa7ca83 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -192,7 +192,7 @@ apk_blob_t apk_blob_pushed(apk_blob_t buffer, apk_blob_t left)
return APK_BLOB_PTR_LEN(buffer.ptr, left.ptr - buffer.ptr);
}
-static inline uint32_t rotl32(uint32_t x, int8_t r)
+static inline __attribute__((always_inline)) uint32_t rotl32(uint32_t x, int8_t r)
{
return (x << r) | (x >> (32 - r));
}