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(String s1
, String s2
)
14 i
= __builtin_memcmp(s1
.str
, s2
.str
,
15 (s1
.len
< s2
.len
? s1
.len
: s2
.len
));
21 else if (s1
.len
> s2
.len
)