mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-27 08:18:55 +01:00
ggml : fix MIN / MAX macro re-definition
This commit is contained in:
parent
2cdfc4e025
commit
0cbef75422
12
ggml.c
12
ggml.c
@ -143,12 +143,6 @@ void ggml_print_backtrace(void) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#undef MIN
|
||||
#undef MAX
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
/*#define GGML_PERF*/
|
||||
#define GGML_DEBUG 0
|
||||
#define GGML_GELU_FP16
|
||||
@ -277,6 +271,12 @@ inline static void * ggml_aligned_malloc(size_t size) {
|
||||
// floating point type used to accumulate sums
|
||||
typedef double ggml_float;
|
||||
|
||||
#undef MIN
|
||||
#undef MAX
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
//
|
||||
// global data
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user