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)
48 #ifdef __OPTIMIZE_SIZE__
57 #else /* !__OPTIMIZE_SIZE__ */
58 /* Do byte-wise checks until string is aligned. */
83 /* Create a mask, then check a word at a time. */
98 leal -16843009(edx),ebx
101 testl $-2139062144,ebx
112 /* Final byte-wise checks. */
123 #endif /* !__OPTIMIZE_SIZE__ */