1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <sys.h>
6
7 #include <string.h>
8
9 // Lookup for number of bits in half byte.
10 const ui8 NumberOnes[] = {
11 //0 1 2 3 4 5 6 7 8 9 A B C D E F
12 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4,
13 };
14
15 // Compares two null-terminated file names.
16 // Returns: TRUE if s1 = s2, else FALSE
FNameEqu(const char * s1,const char * s2)17 int FNameEqu(const char* s1, const char* s2) {
18 return (strcmp(s1, s2) == 0) ? TRUE : FALSE;
19 }
20