Lines Matching refs:s
27 extern char *strchr(const char *s, int c);
30 extern size_t strlen(const char *s);
207 static inline void *__memset_generic(void *s, char c, size_t count) in __memset_generic() argument
213 : "a" (c), "1" (s), "0" (count) in __memset_generic()
215 return s; in __memset_generic()
219 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) argument
227 void *__constant_c_memset(void *s, unsigned long c, size_t count) in __constant_c_memset() argument
239 : "a" (c), "q" (count), "0" (count/4), "1" ((long)s) in __constant_c_memset()
241 return s; in __constant_c_memset()
246 extern size_t strnlen(const char *s, size_t count);
257 void *__constant_c_and_count_memset(void *s, unsigned long pattern, in __constant_c_and_count_memset() argument
262 return s; in __constant_c_and_count_memset()
264 *(unsigned char *)s = pattern & 0xff; in __constant_c_and_count_memset()
265 return s; in __constant_c_and_count_memset()
267 *(unsigned short *)s = pattern & 0xffff; in __constant_c_and_count_memset()
268 return s; in __constant_c_and_count_memset()
270 *(unsigned short *)s = pattern & 0xffff; in __constant_c_and_count_memset()
271 *((unsigned char *)s + 2) = pattern & 0xff; in __constant_c_and_count_memset()
272 return s; in __constant_c_and_count_memset()
274 *(unsigned long *)s = pattern; in __constant_c_and_count_memset()
275 return s; in __constant_c_and_count_memset()
282 : "a" (eax), "0" (count/4), "1" ((long)s) \ in __constant_c_and_count_memset()
297 return s; in __constant_c_and_count_memset()
300 return s; in __constant_c_and_count_memset()
303 return s; in __constant_c_and_count_memset()
306 return s; in __constant_c_and_count_memset()
313 #define __constant_c_x_memset(s, c, count) \ argument
315 ? __constant_c_and_count_memset((s), (c), (count)) \
316 : __constant_c_memset((s), (c), (count)))
318 #define __memset(s, c, count) \ argument
320 ? __constant_count_memset((s), (c), (count)) \
321 : __memset_generic((s), (c), (count)))
325 #define memset(s, c, count) __builtin_memset(s, c, count) argument
327 #define memset(s, c, count) \ argument
329 ? __constant_c_x_memset((s), (0x01010101UL * (unsigned char)(c)), \
331 : __memset((s), (c), (count)))