Lines Matching full:bounds
388 ZSTD_bounds bounds = { 0, 0, 0 }; in ZSTD_cParam_getBounds() local
393 bounds.lowerBound = ZSTD_minCLevel(); in ZSTD_cParam_getBounds()
394 bounds.upperBound = ZSTD_maxCLevel(); in ZSTD_cParam_getBounds()
395 return bounds; in ZSTD_cParam_getBounds()
398 bounds.lowerBound = ZSTD_WINDOWLOG_MIN; in ZSTD_cParam_getBounds()
399 bounds.upperBound = ZSTD_WINDOWLOG_MAX; in ZSTD_cParam_getBounds()
400 return bounds; in ZSTD_cParam_getBounds()
403 bounds.lowerBound = ZSTD_HASHLOG_MIN; in ZSTD_cParam_getBounds()
404 bounds.upperBound = ZSTD_HASHLOG_MAX; in ZSTD_cParam_getBounds()
405 return bounds; in ZSTD_cParam_getBounds()
408 bounds.lowerBound = ZSTD_CHAINLOG_MIN; in ZSTD_cParam_getBounds()
409 bounds.upperBound = ZSTD_CHAINLOG_MAX; in ZSTD_cParam_getBounds()
410 return bounds; in ZSTD_cParam_getBounds()
413 bounds.lowerBound = ZSTD_SEARCHLOG_MIN; in ZSTD_cParam_getBounds()
414 bounds.upperBound = ZSTD_SEARCHLOG_MAX; in ZSTD_cParam_getBounds()
415 return bounds; in ZSTD_cParam_getBounds()
418 bounds.lowerBound = ZSTD_MINMATCH_MIN; in ZSTD_cParam_getBounds()
419 bounds.upperBound = ZSTD_MINMATCH_MAX; in ZSTD_cParam_getBounds()
420 return bounds; in ZSTD_cParam_getBounds()
423 bounds.lowerBound = ZSTD_TARGETLENGTH_MIN; in ZSTD_cParam_getBounds()
424 bounds.upperBound = ZSTD_TARGETLENGTH_MAX; in ZSTD_cParam_getBounds()
425 return bounds; in ZSTD_cParam_getBounds()
428 bounds.lowerBound = ZSTD_STRATEGY_MIN; in ZSTD_cParam_getBounds()
429 bounds.upperBound = ZSTD_STRATEGY_MAX; in ZSTD_cParam_getBounds()
430 return bounds; in ZSTD_cParam_getBounds()
433 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
434 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
435 return bounds; in ZSTD_cParam_getBounds()
438 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
439 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
440 return bounds; in ZSTD_cParam_getBounds()
443 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
444 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
445 return bounds; in ZSTD_cParam_getBounds()
448 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
450 bounds.upperBound = ZSTDMT_NBWORKERS_MAX; in ZSTD_cParam_getBounds()
452 bounds.upperBound = 0; in ZSTD_cParam_getBounds()
454 return bounds; in ZSTD_cParam_getBounds()
457 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
459 bounds.upperBound = ZSTDMT_JOBSIZE_MAX; in ZSTD_cParam_getBounds()
461 bounds.upperBound = 0; in ZSTD_cParam_getBounds()
463 return bounds; in ZSTD_cParam_getBounds()
467 bounds.lowerBound = ZSTD_OVERLAPLOG_MIN; in ZSTD_cParam_getBounds()
468 bounds.upperBound = ZSTD_OVERLAPLOG_MAX; in ZSTD_cParam_getBounds()
470 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
471 bounds.upperBound = 0; in ZSTD_cParam_getBounds()
473 return bounds; in ZSTD_cParam_getBounds()
476 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
477 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
478 return bounds; in ZSTD_cParam_getBounds()
481 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
482 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
483 return bounds; in ZSTD_cParam_getBounds()
486 bounds.lowerBound = ZSTD_LDM_HASHLOG_MIN; in ZSTD_cParam_getBounds()
487 bounds.upperBound = ZSTD_LDM_HASHLOG_MAX; in ZSTD_cParam_getBounds()
488 return bounds; in ZSTD_cParam_getBounds()
491 bounds.lowerBound = ZSTD_LDM_MINMATCH_MIN; in ZSTD_cParam_getBounds()
492 bounds.upperBound = ZSTD_LDM_MINMATCH_MAX; in ZSTD_cParam_getBounds()
493 return bounds; in ZSTD_cParam_getBounds()
496 bounds.lowerBound = ZSTD_LDM_BUCKETSIZELOG_MIN; in ZSTD_cParam_getBounds()
497 bounds.upperBound = ZSTD_LDM_BUCKETSIZELOG_MAX; in ZSTD_cParam_getBounds()
498 return bounds; in ZSTD_cParam_getBounds()
501 bounds.lowerBound = ZSTD_LDM_HASHRATELOG_MIN; in ZSTD_cParam_getBounds()
502 bounds.upperBound = ZSTD_LDM_HASHRATELOG_MAX; in ZSTD_cParam_getBounds()
503 return bounds; in ZSTD_cParam_getBounds()
507 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
508 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
509 return bounds; in ZSTD_cParam_getBounds()
512 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
513 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
514 return bounds; in ZSTD_cParam_getBounds()
518 bounds.lowerBound = ZSTD_f_zstd1; in ZSTD_cParam_getBounds()
519 …bounds.upperBound = ZSTD_f_zstd1_magicless; /* note : how to ensure at compile time that this is… in ZSTD_cParam_getBounds()
520 return bounds; in ZSTD_cParam_getBounds()
524 bounds.lowerBound = ZSTD_dictDefaultAttach; in ZSTD_cParam_getBounds()
525 …bounds.upperBound = ZSTD_dictForceLoad; /* note : how to ensure at compile time that this is… in ZSTD_cParam_getBounds()
526 return bounds; in ZSTD_cParam_getBounds()
530 bounds.lowerBound = (int)ZSTD_ps_auto; in ZSTD_cParam_getBounds()
531 bounds.upperBound = (int)ZSTD_ps_disable; in ZSTD_cParam_getBounds()
532 return bounds; in ZSTD_cParam_getBounds()
535 bounds.lowerBound = ZSTD_TARGETCBLOCKSIZE_MIN; in ZSTD_cParam_getBounds()
536 bounds.upperBound = ZSTD_TARGETCBLOCKSIZE_MAX; in ZSTD_cParam_getBounds()
537 return bounds; in ZSTD_cParam_getBounds()
540 bounds.lowerBound = ZSTD_SRCSIZEHINT_MIN; in ZSTD_cParam_getBounds()
541 bounds.upperBound = ZSTD_SRCSIZEHINT_MAX; in ZSTD_cParam_getBounds()
542 return bounds; in ZSTD_cParam_getBounds()
546 bounds.lowerBound = (int)ZSTD_bm_buffered; in ZSTD_cParam_getBounds()
547 bounds.upperBound = (int)ZSTD_bm_stable; in ZSTD_cParam_getBounds()
548 return bounds; in ZSTD_cParam_getBounds()
551 bounds.lowerBound = (int)ZSTD_sf_noBlockDelimiters; in ZSTD_cParam_getBounds()
552 bounds.upperBound = (int)ZSTD_sf_explicitBlockDelimiters; in ZSTD_cParam_getBounds()
553 return bounds; in ZSTD_cParam_getBounds()
556 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
557 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
558 return bounds; in ZSTD_cParam_getBounds()
561 bounds.lowerBound = (int)ZSTD_ps_auto; in ZSTD_cParam_getBounds()
562 bounds.upperBound = (int)ZSTD_ps_disable; in ZSTD_cParam_getBounds()
563 return bounds; in ZSTD_cParam_getBounds()
566 bounds.lowerBound = (int)ZSTD_ps_auto; in ZSTD_cParam_getBounds()
567 bounds.upperBound = (int)ZSTD_ps_disable; in ZSTD_cParam_getBounds()
568 return bounds; in ZSTD_cParam_getBounds()
571 bounds.lowerBound = 0; in ZSTD_cParam_getBounds()
572 bounds.upperBound = 1; in ZSTD_cParam_getBounds()
573 return bounds; in ZSTD_cParam_getBounds()
576 bounds.error = ERROR(parameter_unsupported); in ZSTD_cParam_getBounds()
577 return bounds; in ZSTD_cParam_getBounds()
586 ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); in ZSTD_cParam_clampBounds() local
587 if (ZSTD_isError(bounds.error)) return bounds.error; in ZSTD_cParam_clampBounds()
588 if (*value < bounds.lowerBound) *value = bounds.lowerBound; in ZSTD_cParam_clampBounds()
589 if (*value > bounds.upperBound) *value = bounds.upperBound; in ZSTD_cParam_clampBounds()
595 parameter_outOfBound, "Param out of bounds"); \
1251 ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ in ZSTD_clampCParams()
1252 if ((int)val<bounds.lowerBound) val=(type)bounds.lowerBound; \ in ZSTD_clampCParams()
1253 else if ((int)val>bounds.upperBound) val=(type)bounds.upperBound; \ in ZSTD_clampCParams()