projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove more redundant files and clone files-2.6.23 for 2.6.24 - fixes rdc build errors
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
files
/
fs
/
yaffs2
/
yaffs_qsort.c
diff --git
a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_qsort.c
b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_qsort.c
index
0429838
..
474be9c
100644
(file)
--- a/
target/linux/generic-2.6/files/fs/yaffs2/yaffs_qsort.c
+++ b/
target/linux/generic-2.6/files/fs/yaffs2/yaffs_qsort.c
@@
-50,7
+50,7
@@
static __inline void
swapfunc(char *a, char *b, int n, int swaptype)
{
static __inline void
swapfunc(char *a, char *b, int n, int swaptype)
{
- if (swaptype <= 1)
+ if (swaptype <= 1)
swapcode(long, a, b, n)
else
swapcode(char, a, b, n)
swapcode(long, a, b, n)
else
swapcode(char, a, b, n)
@@
-137,7
+137,7
@@
loop: SWAPINIT(a, es);
}
if (swap_cnt == 0) { /* Switch to insertion sort */
for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es)
}
if (swap_cnt == 0) { /* Switch to insertion sort */
for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es)
- for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0;
+ for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0;
pl -= es)
swap(pl, pl - es);
return;
pl -= es)
swap(pl, pl - es);
return;
@@
-150,7
+150,7
@@
loop: SWAPINIT(a, es);
vecswap(pb, pn - r, r);
if ((r = pb - pa) > es)
yaffs_qsort(a, r / es, es, cmp);
vecswap(pb, pn - r, r);
if ((r = pb - pa) > es)
yaffs_qsort(a, r / es, es, cmp);
- if ((r = pd - pc) > es) {
+ if ((r = pd - pc) > es) {
/* Iterate rather than recurse to save stack space */
a = pn - r;
n = r / es;
/* Iterate rather than recurse to save stack space */
a = pn - r;
n = r / es;
This page took
0.023909 seconds
and
4
git commands to generate.