Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/infogulch/mergesort-m

Multithreaded Merge Sort in C
https://github.com/infogulch/mergesort-m

Last synced: 13 days ago
JSON representation

Multithreaded Merge Sort in C

Awesome Lists containing this project

README

        

# Multithreaded Merge Sort in C
This is just a test case and only sorts integers atm. After it actually starts working I might follow the example of `qsort()` and change to use `void*`, `width`, and a caller-defined comparator function.

I attempted to do something resembling unit testing, and it halfway works, but it's not very clean and it certainly doesn't have enough tests.

All sorting tests are checked for correctness.

## Compiling
```
make
```

## Running tests
To run a test on 30 items (default):
```
./test
```

To test a larger number of items:
```
./test 10000
```

### Valgrind
To run the tests in valgrind:
```
make grind
```

To test a different number of items:
```
make grind ARGS=10000
```