1 /* go-strcmp.c -- the go string comparison function.
3 Copyright 2009 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
10 __go_strcmp(struct __go_string s1, struct __go_string s2)
14 i = __builtin_memcmp(s1.__data, s2.__data,
15 (s1.__length < s2.__length
21 if (s1.__length < s2.__length)
23 else if (s1.__length > s2.__length)