]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use __assume(0) for unreachable code path in msvc
authorMa Lin <malincns@163.com>
Sun, 26 Sep 2021 02:41:39 +0000 (10:41 +0800)
committerMa Lin <malincns@163.com>
Mon, 27 Sep 2021 11:23:57 +0000 (19:23 +0800)
commitae986fcdb861c44ee4267fc4b3dcf0a4cd2ee724
tree59dc790ed2913bc29c55fbfb14d991dd42cfc738
parente5ba858270929080f03be821c53c93b8a05a42e0
Use __assume(0) for unreachable code path in msvc

msvc will optimize away the condition check.
lib/common/bitstream.h
lib/common/entropy_common.c
lib/common/zstd_internal.h
lib/compress/zstd_compress_internal.h
lib/compress/zstd_lazy.c
lib/dictBuilder/zdict.c