OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google, Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 // FIXME: Workaround for skbug.com/4037 |
| 9 // Some of our test machines have an older version of clang that does not |
| 10 // have |
| 11 // __builtin_bswap16 |
| 12 // |
| 13 // But libwebp expects the builtin. We can change that by using this config.h |
| 14 // file, which replaces the checks in endian_inl.h to decide whether we have |
| 15 // particular builtins. |
| 16 |
| 17 #ifdef __builtin_bswap64(x) |
| 18 #define HAVE_BUILTIN_BSWAP64 |
| 19 #endif |
| 20 |
| 21 #ifdef __builtin_bswap32(x) |
| 22 #define HAVE_BUILTIN_BSWAP32 |
| 23 #endif |
| 24 |
| 25 #ifdef __builtin_bswap16(x) |
| 26 #define HAVE_BUILTIN_BSWAP16 |
| 27 #endif |
OLD | NEW |