-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(DataTomeAnalysis): 🐛 fix qsort callback function
- Loading branch information
1 parent
a285fbf
commit eb71f55
Showing
3 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
|
||
#include <DataTomeAnalysis.h> | ||
#include <DataTomeMvAvg.h> | ||
#include <DataTomeUtils.h> | ||
|
||
#endif // DATA_TOME_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*************************************************************** | ||
DataTomeUtils.h | ||
Created by Alexandre Hiroyuki Yamauchi, August 05, 2024. | ||
***************************************************************/ | ||
|
||
#ifndef DATA_TOME_UTILS_H | ||
#define DATA_TOME_UTILS_H | ||
|
||
template <typename TypeOfArray> | ||
int sort_ascend(const void *cmp1, const void *cmp2) { | ||
TypeOfArray b = *((TypeOfArray *)cmp2); | ||
TypeOfArray a = *((TypeOfArray *)cmp1); | ||
|
||
return (int)a - b; | ||
} | ||
|
||
#endif // DATA_TOME_UTILS_H |