6 #include <schroedinger/schrofilter.h>
7 #include <schroedinger/schro.h>
13 sort_u8 (uint8_t *d
, int n
)
20 /* OMG bubble sort! */
22 for(i
=start
;i
<end
-1;i
++){
30 for(i
=end
-2;i
>=start
;i
--){
44 main (int argc
, char *argv
[])
53 SCHRO_ERROR("%d:", i
);
58 SCHRO_ERROR(" %d", list
[j
]);
66 SCHRO_ERROR("* %d", list
[j
]);
69 SCHRO_ASSERT(sum1
== sum2
);
71 SCHRO_ASSERT(list
[j
] <= list
[j
+1]);