Rev 1264 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1264 | Rev 1702 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /** @addtogroup generic |
|
- | 30 | * @{ |
|
- | 31 | */ |
|
- | 32 | ||
29 | /** |
33 | /** |
30 | * @file sort.c |
34 | * @file |
31 | * @brief Sorting functions. |
35 | * @brief Sorting functions. |
32 | * |
36 | * |
33 | * This files contains functions implementing several sorting |
37 | * This files contains functions implementing several sorting |
34 | * algorithms (e.g. quick sort and bubble sort). |
38 | * algorithms (e.g. quick sort and bubble sort). |
35 | */ |
39 | */ |
Line 192... | Line 196... | ||
192 | 196 | ||
193 | int __u32_cmp(void * a, void * b) |
197 | int __u32_cmp(void * a, void * b) |
194 | { |
198 | { |
195 | return (* (__u32 *) a > * (__u32 *)b) ? 1 : (*(__u32 *)a < * (__u32 *)b) ? -1 : 0; |
199 | return (* (__u32 *) a > * (__u32 *)b) ? 1 : (*(__u32 *)a < * (__u32 *)b) ? -1 : 0; |
196 | } |
200 | } |
- | 201 | ||
- | 202 | /** @} |
|
- | 203 | */ |
|
- | 204 |