Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 514 Bytes
#ifndef even_odd_sort_open_mp_hpp
#define even_odd_sort_open_mp_hpp
#define CSCE_SORT_DEBUG false
#include <algorithm>
#include <cmath>
#include <math.h>
#include "sortable.hpp"
class even_odd_sort_open_mp : public sortable {
public:
even_odd_sort_open_mp(int _nthreads);
std::string name() const;
void sort_array(int array[], int n);
private:
void sort_thread(int array[], int start, int stop);
void merge_thread(int array[], int start, int mid, int stop);
};
#endif /* even_odd_sort_open_mp_hpp */