]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml : portability fixes for VS 2017 (llama/12150)
authormgroeber9110 <redacted>
Tue, 4 Mar 2025 16:53:26 +0000 (17:53 +0100)
committerGeorgi Gerganov <redacted>
Sat, 8 Mar 2025 13:13:01 +0000 (15:13 +0200)
commit96a92ecc4cabb33debf488431f5b5678846d9dd7
tree3f6cdbe248c43e67aaa87306bb2bb5df1a1e45f2
parentedd1d8686a34eb30c3be340a0167d3b928dde60d
ggml : portability fixes for VS 2017 (llama/12150)

* Add include files for std::min/max and std::toupper/tolower

* win32: move _USE_MATH_DEFINES before includes to ensure M_PI is defined

* Use GGML_RESTRICT instead of "restrict" keyword everywhere, and use "__restrict" in MSVC plain C mode

* win32: only use __restrict in MSVC if C11/C17 support is not enabled

---------

Co-authored-by: Marcus Groeber <redacted>
ggml/include/ggml.h
ggml/src/ggml-backend-reg.cpp
ggml/src/ggml-backend.cpp
ggml/src/ggml-cpu/ggml-cpu-quants.c
ggml/src/ggml-cpu/ggml-cpu.c
ggml/src/ggml-quants.c
ggml/src/ggml.c