Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 646360
Collapse All | Expand All

(-)pixman-0.34.0/test/utils-prng.c.bak (+12 lines)
Lines 199-210 Link Here
199
        }
199
        }
200
        else
200
        else
201
        {
201
        {
202
203
#ifndef __has_builtin
204
#define __has_builtin(x) 0
205
#endif
206
202
#ifdef HAVE_GCC_VECTOR_EXTENSIONS
207
#ifdef HAVE_GCC_VECTOR_EXTENSIONS
208
# if !defined(__clang__) || __has_builtin(__builtin_shuffle)
203
            const uint8x16 bswap_shufflemask =
209
            const uint8x16 bswap_shufflemask =
204
            {
210
            {
205
                3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12
211
                3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12
206
            };
212
            };
207
            randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);
213
            randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);
214
# elif __has_builtin(__builtin_shufflevector)
215
            randdata.vb = __builtin_shufflevector(randdata.vb, randdata.vb, 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12);
216
# else
217
#  error "GCC_VECTOR_EXTENSION is defined, but neither __builtin_shuffle nor __builtin_shufflevector is supported!"
218
# endif
219
208
            store_rand_128_data (buf, &randdata, aligned);
220
            store_rand_128_data (buf, &randdata, aligned);
209
            buf += 16;
221
            buf += 16;
210
#else
222
#else

Return to bug 646360