diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-04-25 15:12:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 15:12:28 +0300 |
commit | 54770413c484660d021dd51b5dbacab7880b8827 (patch) | |
tree | 79ccb8884aa8f15aae6e5e68e64e96abd08712bc /ggml-impl.h | |
parent | aa750c1ede6232c91de890a14a7731d6daa2bc8e (diff) |
ggml : fix MIN / MAX macros (#6904)
ggml-ci
Diffstat (limited to 'ggml-impl.h')
-rw-r--r-- | ggml-impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ggml-impl.h b/ggml-impl.h index 2ffacc29..2087f7de 100644 --- a/ggml-impl.h +++ b/ggml-impl.h @@ -11,6 +11,12 @@ #include <string.h> // memcpy #include <math.h> // fabsf +#undef MIN +#undef MAX + +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + #ifdef __cplusplus extern "C" { #endif |