Moved the haversine code to a subdirectory
This commit is contained in:
parent
1a050d28e2
commit
3523e12a5d
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
python/__pycache__/**/*
|
||||
cpp/haverscan
|
||||
cpp/haverstrtok
|
||||
data_10000000_flex.json
|
||||
haversine/python/__pycache__/**/*
|
||||
haversine/cpp/haverscan
|
||||
haversine/cpp/haverstrtok
|
||||
haversine/data_10000000_flex.json
|
||||
|
20
Makefile
20
Makefile
@ -1,14 +1,14 @@
|
||||
mk_fscanf:
|
||||
clang++ -g cpp/fscanf.cpp cpp/haversine.cpp -o cpp/haverscan
|
||||
mk_haversine_fscanf:
|
||||
clang++ -g haversine/cpp/fscanf.cpp haversine/cpp/haversine.cpp -o haversine/cpp/haverscan
|
||||
|
||||
run_fscanf:
|
||||
./cpp/haverscan
|
||||
run_haversine_fscanf:
|
||||
cd ./haversine/cpp && ./haverscan
|
||||
|
||||
mk_strtok:
|
||||
clang++ -g cpp/strtok.cpp cpp/haversine.cpp -o cpp/haverstrtok
|
||||
mk_haversine_strtok:
|
||||
clang++ -g haversine/cpp/strtok.cpp haversine/cpp/haversine.cpp -o haversine/cpp/haverstrtok
|
||||
|
||||
run_strtok:
|
||||
./cpp/haverstrtok
|
||||
run_haversine_strtok:
|
||||
cd ./haversine/cpp && ./haverstrtok
|
||||
|
||||
run_python_json:
|
||||
python ./python/haversine_json.py
|
||||
run_haversine_python_json:
|
||||
python ./haversine/python/haversine_json.py
|
||||
|
@ -24,13 +24,9 @@ struct Item {
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
#if DEBUG
|
||||
FILE *fp = fopen("/home/abdelrahman/Sources/dev/"
|
||||
"performance_aware_programming/test_data.json",
|
||||
"rb");
|
||||
FILE *fp = fopen("../test_data.json", "rb");
|
||||
#else
|
||||
FILE *fp = fopen("/home/abdelrahman/Sources/dev/"
|
||||
"performance_aware_programming/data_10000000_flex.json",
|
||||
"rb");
|
||||
FILE *fp = fopen("../data_10000000_flex.json", "rb");
|
||||
#endif
|
||||
|
||||
Item *items = (Item *)malloc(ITEM_COUNT * sizeof(Item));
|
@ -24,13 +24,9 @@ struct Item {
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
#if DEBUG
|
||||
FILE *fp = fopen("/home/abdelrahman/Sources/dev/"
|
||||
"performance_aware_programming/test_data.json",
|
||||
"rb");
|
||||
FILE *fp = fopen("../test_data.json", "rb");
|
||||
#else
|
||||
FILE *fp = fopen("/home/abdelrahman/Sources/dev/"
|
||||
"performance_aware_programming/data_10000000_flex.json",
|
||||
"rb");
|
||||
FILE *fp = fopen("../data_10000000_flex.json", "rb");
|
||||
#endif
|
||||
|
||||
Item *items = (Item *)malloc(ITEM_COUNT * sizeof(Item));
|
Loading…
Reference in New Issue
Block a user