diff options
author | Collin Funk <collin.funk1@gmail.com> | 2025-08-05 10:07:18 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-08-05 10:07:18 +0200 |
commit | 1eec8431a5454c23faf004f4d5141367b1ef536e (patch) | |
tree | ce4e1a87469a27e32b72825f834e8856143c0e7c | |
parent | 5d23dfb289174d73b8907b86d2bef7a3ca889840 (diff) | |
download | glibc-1eec8431a5454c23faf004f4d5141367b1ef536e.zip glibc-1eec8431a5454c23faf004f4d5141367b1ef536e.tar.gz glibc-1eec8431a5454c23faf004f4d5141367b1ef536e.tar.bz2 |
iconv: use bswap_32 instead of __builtin_bswap32
This file uses a mix of both functions, prefer the non-builtin version.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
-rw-r--r-- | iconv/gconv_simple.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index 1e29eb1..0ebdcce 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -90,7 +90,7 @@ internal_ucs4_loop (struct __gconv_step *step, for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4, outptr += 4) { uint32_t val = get32 (inptr); - put32 (outptr, __builtin_bswap32 (val)); + put32 (outptr, bswap_32 (val)); } *inptrp = inptr; @@ -196,7 +196,7 @@ ucs4_internal_loop (struct __gconv_step *step, { uint32_t inval = get32 (inptr); #if __BYTE_ORDER == __LITTLE_ENDIAN - inval = __builtin_bswap32 (inval); + inval = bswap_32 (inval); #endif if (__glibc_unlikely (inval > 0x7fffffff)) @@ -337,7 +337,7 @@ internal_ucs4le_loop (struct __gconv_step *step, for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4, outptr += 4) { uint32_t val = get32 (inptr); - put32 (outptr, __builtin_bswap32 (val)); + put32 (outptr, bswap_32 (val)); } *inptrp = inptr; @@ -442,7 +442,7 @@ ucs4le_internal_loop (struct __gconv_step *step, { uint32_t inval = get32 (inptr); #if __BYTE_ORDER == __BIG_ENDIAN - inval = __builtin_bswap32 (inval); + inval = bswap_32 (inval); #endif if (__glibc_unlikely (inval > 0x7fffffff)) |