Simpler Ternary Statements
This commit is contained in:
parent
f9fef255a1
commit
299f34909a
@ -582,9 +582,9 @@ LZ4_FORCE_INLINE int LZ4_compress_generic(
|
|||||||
|
|
||||||
const LZ4_stream_t_internal* dictCtx = (const LZ4_stream_t_internal*) cctx->dictCtx;
|
const LZ4_stream_t_internal* dictCtx = (const LZ4_stream_t_internal*) cctx->dictCtx;
|
||||||
const BYTE* const dictionary =
|
const BYTE* const dictionary =
|
||||||
(dictDirective == usingExtDictCtx ? dictCtx : cctx)->dictionary;
|
dictDirective == usingExtDictCtx ? dictCtx->dictionary : cctx->dictionary;
|
||||||
const U32 dictSize =
|
const U32 dictSize =
|
||||||
(dictDirective == usingExtDictCtx ? dictCtx : cctx)->dictSize;
|
dictDirective == usingExtDictCtx ? dictCtx->dictSize : cctx->dictSize;
|
||||||
|
|
||||||
const BYTE* const lowRefLimit = (const BYTE*) source - dictSize;
|
const BYTE* const lowRefLimit = (const BYTE*) source - dictSize;
|
||||||
const BYTE* const dictEnd = dictionary + dictSize;
|
const BYTE* const dictEnd = dictionary + dictSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user