Chris Lattner | a84538e | 2007-07-21 04:54:14 +0000 | [diff] [blame] | 1 | #define __extension__ |
| 2 | |
| 3 | #define __stpcpy(dest, src) (__extension__ (__builtin_constant_p (src) ? (__string2_1bptr_p (src) && strlen (src) + 1 <= 8 ? __stpcpy_small (dest, __stpcpy_args (src), strlen (src) + 1) : ((char *) __mempcpy (dest, src, strlen (src) + 1) - 1)) : __stpcpy (dest, src))) |
| 4 | #define stpcpy(dest, src) __stpcpy (dest, src) |
| 5 | #define __stpcpy_args(src) __extension__ __STRING2_SMALL_GET16 (src, 0), __extension__ __STRING2_SMALL_GET16 (src, 4), __extension__ __STRING2_SMALL_GET32 (src, 0), __extension__ __STRING2_SMALL_GET32 (src, 4) |
| 6 | |
| 7 | #define __mempcpy(dest, src, n) (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) && __string2_1bptr_p (src) && n <= 8 ? __mempcpy_small (dest, __mempcpy_args (src), n) : __mempcpy (dest, src, n))) |
| 8 | #define mempcpy(dest, src, n) __mempcpy (dest, src, n) |
| 9 | #define __mempcpy_args(src) ((char *) (src))[0], ((char *) (src))[2], ((char *) (src))[4], ((char *) (src))[6], __extension__ __STRING2_SMALL_GET16 (src, 0), __extension__ __STRING2_SMALL_GET16 (src, 4), __extension__ __STRING2_SMALL_GET32 (src, 0), __extension__ __STRING2_SMALL_GET32 (src, 4) |
| 10 | |
| 11 | #define __STRING2_SMALL_GET16(src, idx) (((__const unsigned char *) (__const char *) (src))[idx + 1] << 8 | ((__const unsigned char *) (__const char *) (src))[idx]) |
| 12 | |
| 13 | #define __STRING2_SMALL_GET32(src, idx) (((((__const unsigned char *) (__const char *) (src))[idx + 3] << 8 | ((__const unsigned char *) (__const char *) (src))[idx + 2]) << 8 | ((__const unsigned char *) (__const char *) (src))[idx + 1]) << 8 | ((__const unsigned char *) (__const char *) (src))[idx]) |
| 14 | |
| 15 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 16 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 17 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 18 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 19 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 20 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 21 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 22 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 23 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 24 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 25 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 26 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 27 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 28 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 29 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 30 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 31 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 32 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 33 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 34 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 35 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 36 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 37 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 38 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 39 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 40 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 41 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 42 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 43 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 44 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 45 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 46 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |
| 47 | stpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e) |