Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 239472 | Differences between
and this patch

Collapse All | Expand All

(-)a/zzip/fetch.c (-1 / +1 lines)
Lines 17-23 Link Here
17
#include <zzip/fetch.h>
17
#include <zzip/fetch.h>
18
18
19
#if defined ZZIP_WORDS_BIGENDIAN && \
19
#if defined ZZIP_WORDS_BIGENDIAN && \
20
   defined bswap_16 && defined bswap_32 && defined bswap_64
20
   defined bswap_16 && defined bswap_32 && defined bswap_64 && !defined(__sparc__)
21
# define __ZZIP_GET16(__p)                        bswap_16(*(uint16_t*)(__p))
21
# define __ZZIP_GET16(__p)                        bswap_16(*(uint16_t*)(__p))
22
# define __ZZIP_GET32(__p)                        bswap_32(*(uint32_t*)(__p))
22
# define __ZZIP_GET32(__p)                        bswap_32(*(uint32_t*)(__p))
23
# define __ZZIP_SET16(__p,__x) (*(uint16_t*)(__p) = bswap_16((uint16_t)(__x)))
23
# define __ZZIP_SET16(__p,__x) (*(uint16_t*)(__p) = bswap_16((uint16_t)(__x)))
(-)a/zzip/fetch.h (-1 / +1 lines)
Lines 24-30 extern uint64_t __zzip_get64(zzip_byte_t * s) __zzip_attribute__((const)); Link Here
24
extern void     __zzip_set64(zzip_byte_t * s, uint64_t v);
24
extern void     __zzip_set64(zzip_byte_t * s, uint64_t v);
25
25
26
#ifdef ZZIP_WORDS_BIGENDIAN
26
#ifdef ZZIP_WORDS_BIGENDIAN
27
# if defined bswap_16 && defined bswap_32 && defined bswap_64 /* i.e. linux */
27
# if defined bswap_16 && defined bswap_32 && defined bswap_64 && !defined(__sparc__) /* i.e. linux */
28
# define ZZIP_GET16(__p)                        bswap_16(*(uint16_t*)(__p))
28
# define ZZIP_GET16(__p)                        bswap_16(*(uint16_t*)(__p))
29
# define ZZIP_GET32(__p)                        bswap_32(*(uint32_t*)(__p))
29
# define ZZIP_GET32(__p)                        bswap_32(*(uint32_t*)(__p))
30
# define ZZIP_GET64(__p)                        bswap_64(*(uint64_t*)(__p))
30
# define ZZIP_GET64(__p)                        bswap_64(*(uint64_t*)(__p))

Return to bug 239472