2 * strncpy.S -- strncmp function. On at least some MIPS chips, you get better
3 * code by hand unrolling the loops, and by using store words to zero the
4 * remainder of the buffer than the default newlib C version.
5 *
6 * Copyright (c) 2001 Red Hat, Inc.
7 *
8 * The authors hereby grant permission to use, copy, modify, distribute,
9 * and license this software and its documentation for any purpose, provided
10 * that existing copyright notices are retained in all copies and that this
11 * notice is included verbatim in any distributions. No written agreement,
12 * license, or royalty fee is required for any of the authorized uses.
13 * Modifications to this software may be copyrighted by their authors
14 * and need not follow the licensing terms described here, provided that
15 * the new terms are clearly indicated on the first page of each file where
16 * they apply. */
17
18#define SYSCLIB_DISABLE_BUILTINS /* strncpy's own definition below can't be redirected to __builtin_strncpy - clang errors on redefining a builtin name, gcc doesn't */