]> git.djapps.eu Git - pkg/ggml/sources/ggml/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>
Tue, 4 Mar 2025 19:24:42 +0000 (21:24 +0200)
commite041be1cd876494132ec66a81489b8ed093c07f9
treef99d7136b965c51998e7decab0a52a61ef208b13
parenta0a3dd6b989ca1a3b839760241da41654a2501c6
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>
include/ggml.h
src/ggml-backend-reg.cpp
src/ggml-backend.cpp
src/ggml-cpu/ggml-cpu-quants.c
src/ggml-cpu/ggml-cpu.c
src/ggml-quants.c
src/ggml.c