2 * ====================================================
3 * Copyright (C) 1998, 2002, 2008 by Red Hat Inc. All rights reserved.
5 * Permission to use, copy, modify, and distribute this
6 * software is freely granted, provided that this notice
8 * ====================================================
14 SOTYPE_FUNCTION(memchr)
28 #ifdef __OPTIMIZE_SIZE__
37 #else /* !__OPTIMIZE_SIZE__ */
38 /* Do byte-wise checks until string is aligned. */
63 /* Create a mask, then check a word at a time. */
78 leal -16843009(edx),ebx
81 testl $-2139062144,ebx
92 /* Final byte-wise checks. */
103 #endif /* !__OPTIMIZE_SIZE__ */