Skip to content

Commit

Permalink
ssse3: apply BASE64_FORCE_INLINE macro
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 13, 2024
1 parent 97c8717 commit e368015
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/arch/ssse3/dec_loop.c
Expand Up @@ -65,7 +65,7 @@
// 1110 0x10 andlut 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
// 1111 0x10 andlut 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10

static inline int
static BASE64_FORCE_INLINE int
dec_loop_ssse3_inner (const uint8_t **s, uint8_t **o, size_t *rounds)
{
const __m128i lut_lo = _mm_setr_epi8(
Expand Down Expand Up @@ -116,7 +116,7 @@ dec_loop_ssse3_inner (const uint8_t **s, uint8_t **o, size_t *rounds)
return 1;
}

static inline void
static BASE64_FORCE_INLINE void
dec_loop_ssse3 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen)
{
if (*slen < 24) {
Expand Down
2 changes: 1 addition & 1 deletion lib/arch/ssse3/dec_reshuffle.c
@@ -1,4 +1,4 @@
static inline __m128i
static BASE64_FORCE_INLINE __m128i
dec_reshuffle (const __m128i in)
{
// in, bits, upper case are most significant bits, lower case are least significant bits
Expand Down
4 changes: 2 additions & 2 deletions lib/arch/ssse3/enc_loop.c
@@ -1,4 +1,4 @@
static inline void
static BASE64_FORCE_INLINE void
enc_loop_ssse3_inner (const uint8_t **s, uint8_t **o)
{
// Load input:
Expand All @@ -17,7 +17,7 @@ enc_loop_ssse3_inner (const uint8_t **s, uint8_t **o)
*o += 16;
}

static inline void
static BASE64_FORCE_INLINE void
enc_loop_ssse3 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen)
{
if (*slen < 16) {
Expand Down
2 changes: 1 addition & 1 deletion lib/arch/ssse3/enc_loop_asm.c
Expand Up @@ -122,7 +122,7 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverlength-strings"

static inline void
static BASE64_FORCE_INLINE void
enc_loop_ssse3 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen)
{
// For a clearer explanation of the algorithm used by this function,
Expand Down
2 changes: 1 addition & 1 deletion lib/arch/ssse3/enc_reshuffle.c
@@ -1,4 +1,4 @@
static inline __m128i
static BASE64_FORCE_INLINE __m128i
enc_reshuffle (__m128i in)
{
// Input, bytes MSB to LSB:
Expand Down
2 changes: 1 addition & 1 deletion lib/arch/ssse3/enc_translate.c
@@ -1,4 +1,4 @@
static inline __m128i
static BASE64_FORCE_INLINE __m128i
enc_translate (const __m128i in)
{
// A lookup table containing the absolute offsets for all ranges:
Expand Down

0 comments on commit e368015

Please sign in to comment.