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