diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-22 21:24:09 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-22 21:24:09 +0000 |
commit | 0b7dcd69c801a7439de5bfc53ae4005ec3846634 (patch) | |
tree | 42e62d3eec4ec49c7fd95ff01d5ca7d015c6fd45 /firmware/common/memcmp.c | |
parent | 3f5f3524d478743a4c2f470f0baf7b767ce8d1c2 (diff) | |
download | rockbox-0b7dcd69c801a7439de5bfc53ae4005ec3846634.tar.gz rockbox-0b7dcd69c801a7439de5bfc53ae4005ec3846634.zip |
Remove tabs in firmware path (taking into account the original spacing).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/memcmp.c')
-rw-r--r-- | firmware/common/memcmp.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/firmware/common/memcmp.c b/firmware/common/memcmp.c index 4a871fa601..1535fcf5b5 100644 --- a/firmware/common/memcmp.c +++ b/firmware/common/memcmp.c | |||
@@ -1,31 +1,31 @@ | |||
1 | /* | 1 | /* |
2 | FUNCTION | 2 | FUNCTION |
3 | <<memcmp>>---compare two memory areas | 3 | <<memcmp>>---compare two memory areas |
4 | 4 | ||
5 | INDEX | 5 | INDEX |
6 | memcmp | 6 | memcmp |
7 | 7 | ||
8 | ANSI_SYNOPSIS | 8 | ANSI_SYNOPSIS |
9 | #include <string.h> | 9 | #include <string.h> |
10 | int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>); | 10 | int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS | 12 | TRAD_SYNOPSIS |
13 | #include <string.h> | 13 | #include <string.h> |
14 | int memcmp(<[s1]>, <[s2]>, <[n]>) | 14 | int memcmp(<[s1]>, <[s2]>, <[n]>) |
15 | void *<[s1]>; | 15 | void *<[s1]>; |
16 | void *<[s2]>; | 16 | void *<[s2]>; |
17 | size_t <[n]>; | 17 | size_t <[n]>; |
18 | 18 | ||
19 | DESCRIPTION | 19 | DESCRIPTION |
20 | This function compares not more than <[n]> characters of the | 20 | This function compares not more than <[n]> characters of the |
21 | object pointed to by <[s1]> with the object pointed to by <[s2]>. | 21 | object pointed to by <[s1]> with the object pointed to by <[s2]>. |
22 | 22 | ||
23 | 23 | ||
24 | RETURNS | 24 | RETURNS |
25 | The function returns an integer greater than, equal to or | 25 | The function returns an integer greater than, equal to or |
26 | less than zero according to whether the object pointed to by | 26 | less than zero according to whether the object pointed to by |
27 | <[s1]> is greater than, equal to or less than the object | 27 | <[s1]> is greater than, equal to or less than the object |
28 | pointed to by <[s2]>. | 28 | pointed to by <[s2]>. |
29 | 29 | ||
30 | PORTABILITY | 30 | PORTABILITY |
31 | <<memcmp>> is ANSI C. | 31 | <<memcmp>> is ANSI C. |
@@ -33,7 +33,7 @@ PORTABILITY | |||
33 | <<memcmp>> requires no supporting OS subroutines. | 33 | <<memcmp>> requires no supporting OS subroutines. |
34 | 34 | ||
35 | QUICKREF | 35 | QUICKREF |
36 | memcmp ansi pure | 36 | memcmp ansi pure |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include <string.h> | 39 | #include <string.h> |
@@ -51,9 +51,9 @@ QUICKREF | |||
51 | 51 | ||
52 | int | 52 | int |
53 | _DEFUN (memcmp, (m1, m2, n), | 53 | _DEFUN (memcmp, (m1, m2, n), |
54 | _CONST _PTR m1 _AND | 54 | _CONST _PTR m1 _AND |
55 | _CONST _PTR m2 _AND | 55 | _CONST _PTR m2 _AND |
56 | size_t n) | 56 | size_t n) |
57 | { | 57 | { |
58 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) | 58 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) |
59 | unsigned char *s1 = (unsigned char *) m1; | 59 | unsigned char *s1 = (unsigned char *) m1; |
@@ -62,9 +62,9 @@ _DEFUN (memcmp, (m1, m2, n), | |||
62 | while (n--) | 62 | while (n--) |
63 | { | 63 | { |
64 | if (*s1 != *s2) | 64 | if (*s1 != *s2) |
65 | { | 65 | { |
66 | return *s1 - *s2; | 66 | return *s1 - *s2; |
67 | } | 67 | } |
68 | s1++; | 68 | s1++; |
69 | s2++; | 69 | s2++; |
70 | } | 70 | } |
@@ -87,7 +87,7 @@ _DEFUN (memcmp, (m1, m2, n), | |||
87 | while (n >= LBLOCKSIZE) | 87 | while (n >= LBLOCKSIZE) |
88 | { | 88 | { |
89 | if (*a1 != *a2) | 89 | if (*a1 != *a2) |
90 | break; | 90 | break; |
91 | a1++; | 91 | a1++; |
92 | a2++; | 92 | a2++; |
93 | n -= LBLOCKSIZE; | 93 | n -= LBLOCKSIZE; |
@@ -102,7 +102,7 @@ _DEFUN (memcmp, (m1, m2, n), | |||
102 | while (n--) | 102 | while (n--) |
103 | { | 103 | { |
104 | if (*s1 != *s2) | 104 | if (*s1 != *s2) |
105 | return *s1 - *s2; | 105 | return *s1 - *s2; |
106 | s1++; | 106 | s1++; |
107 | s2++; | 107 | s2++; |
108 | } | 108 | } |