/lib/crc/mips/ |
A D | crc32.h | 40 : "r" (value)); \ 43 #define _CRC32_crc32b(crc, value) __CRC32(crc, value, crc32b, 0, 0) argument 44 #define _CRC32_crc32h(crc, value) __CRC32(crc, value, crc32h, 1, 0) argument 45 #define _CRC32_crc32w(crc, value) __CRC32(crc, value, crc32w, 2, 0) argument 46 #define _CRC32_crc32d(crc, value) __CRC32(crc, value, crc32d, 3, 0) argument 47 #define _CRC32_crc32cb(crc, value) __CRC32(crc, value, crc32cb, 0, 1) argument 48 #define _CRC32_crc32ch(crc, value) __CRC32(crc, value, crc32ch, 1, 1) argument 49 #define _CRC32_crc32cw(crc, value) __CRC32(crc, value, crc32cw, 2, 1) argument 50 #define _CRC32_crc32cd(crc, value) __CRC32(crc, value, crc32cd, 3, 1) argument 98 u8 value = *p++; in crc32_le_arch() local [all …]
|
/lib/crc/loongarch/ |
A D | crc32.h | 20 : "r" (value) \ 24 #define CRC32(crc, value, size) _CRC32(crc, value, size, crc) argument 25 #define CRC32C(crc, value, size) _CRC32(crc, value, size, crcc) argument 37 CRC32(crc, value, d); in crc32_le_arch() 45 CRC32(crc, value, w); in crc32_le_arch() 52 CRC32(crc, value, h); in crc32_le_arch() 57 u8 value = *p++; in crc32_le_arch() local 59 CRC32(crc, value, b); in crc32_le_arch() 73 CRC32C(crc, value, d); in crc32c_arch() 81 CRC32C(crc, value, w); in crc32c_arch() [all …]
|
/lib/math/ |
A D | int_log.c | 51 unsigned int intlog2(u32 value) in intlog2() argument 62 if (unlikely(value == 0)) { in intlog2() 68 msb = fls(value) - 1; in intlog2() 84 significand = value << (31 - msb); in intlog2() 111 unsigned int intlog10(u32 value) in intlog10() argument 119 if (unlikely(value == 0)) { in intlog10() 124 log = intlog2(value); in intlog10()
|
/lib/zstd/common/ |
A D | bits.h | 130 U64 ZSTD_rotateRight_U64(U64 const value, U32 count) { in ZSTD_rotateRight_U64() argument 133 return (value >> count) | (U64)(value << ((0U - count) & 0x3F)); in ZSTD_rotateRight_U64() 137 U32 ZSTD_rotateRight_U32(U32 const value, U32 count) { in ZSTD_rotateRight_U32() argument 140 return (value >> count) | (U32)(value << ((0U - count) & 0x1F)); in ZSTD_rotateRight_U32() 144 U16 ZSTD_rotateRight_U16(U16 const value, U32 count) { in ZSTD_rotateRight_U16() argument 147 return (value >> count) | (U16)(value << ((0U - count) & 0x0F)); in ZSTD_rotateRight_U16()
|
A D | mem.h | 57 MEM_STATIC void MEM_write16(void* memPtr, U16 value); 58 MEM_STATIC void MEM_write32(void* memPtr, U32 value); 59 MEM_STATIC void MEM_write64(void* memPtr, U64 value); 132 MEM_STATIC void MEM_write16(void *memPtr, U16 value) in MEM_write16() argument 134 put_unaligned(value, (U16 *)memPtr); in MEM_write16() 137 MEM_STATIC void MEM_write32(void *memPtr, U32 value) in MEM_write32() argument 139 put_unaligned(value, (U32 *)memPtr); in MEM_write32() 142 MEM_STATIC void MEM_write64(void *memPtr, U64 value) in MEM_write64() argument 144 put_unaligned(value, (U64 *)memPtr); in MEM_write64()
|
A D | bitstream.h | 59 MEM_STATIC void BIT_addBits(BIT_CStream_t* bitC, BitContainerType value, unsigned nbBits); 118 MEM_STATIC void BIT_addBitsFast(BIT_CStream_t* bitC, BitContainerType value, unsigned nbBits); 166 BitContainerType value, unsigned nbBits) in BIT_addBits() argument 171 bitC->bitContainer |= BIT_getLowerBits(value, nbBits) << bitC->bitPos; in BIT_addBits() 179 BitContainerType value, unsigned nbBits) in BIT_addBitsFast() argument 181 assert((value>>nbBits) == 0); in BIT_addBitsFast() 183 bitC->bitContainer |= value << bitC->bitPos; in BIT_addBitsFast() 349 BitContainerType const value = BIT_lookBits(bitD, nbBits); in BIT_readBits() local 351 return value; in BIT_readBits() 358 BitContainerType const value = BIT_lookBitsFast(bitD, nbBits); in BIT_readBitsFast() local [all …]
|
A D | fse.h | 293 ptrdiff_t value; member 434 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState() 450 statePtr->value = (nbBitsOut << 16) - symbolTT.deltaNbBits; in FSE_initCState2() 451 statePtr->value = stateTable[(statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_initCState2() 459 U32 const nbBitsOut = (U32)((statePtr->value + symbolTT.deltaNbBits) >> 16); in FSE_encodeSymbol() 460 BIT_addBits(bitC, (BitContainerType)statePtr->value, nbBitsOut); in FSE_encodeSymbol() 461 statePtr->value = stateTable[ (statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_encodeSymbol() 466 BIT_addBits(bitC, (BitContainerType)statePtr->value, statePtr->stateLog); in FSE_flushCState()
|
/lib/kunit/ |
A D | kunit-example-test.c | 225 int value; member 227 { .value = 3, }, 228 { .value = 2, }, 229 { .value = 1, }, 230 { .value = 0, }, 235 snprintf(desc, KUNIT_PARAM_DESC_SIZE, "example value %d", p->value); in example_param_get_desc() 251 if (!is_power_of_2(param->value)) in example_params_test() 252 kunit_skip(test, "unsupported param value %d", param->value); in example_params_test() 255 KUNIT_EXPECT_EQ(test, param->value % param->value, 0); in example_params_test()
|
A D | assert.c | 79 if (!ptr_assert->value) { in kunit_ptr_not_err_assert_format() 83 } else if (IS_ERR(ptr_assert->value)) { in kunit_ptr_not_err_assert_format() 87 PTR_ERR(ptr_assert->value)); in kunit_ptr_not_err_assert_format() 94 VISIBLE_IF_KUNIT bool is_literal(const char *text, long long value) in is_literal() argument 100 len = snprintf(NULL, 0, "%lld", value); in is_literal() 108 snprintf(buffer, len+1, "%lld", value); in is_literal() 171 VISIBLE_IF_KUNIT bool is_str_literal(const char *text, const char *value) in is_str_literal() argument 181 return strncmp(text + 1, value, len - 2) == 0; in is_str_literal()
|
A D | Kconfig | 74 bool "Default value of kunit.enable" 77 Sets the default value of kunit.enable. If set to N then KUnit 85 bool "Default value of kunit.autorun" 88 Sets the default value of kunit.autorun. If set to N then KUnit 97 int "Default value of the timeout module parameter" 100 Sets the default timeout, in seconds, for Kunit test cases. This value
|
/lib/ |
A D | nlattr.c | 176 u64 value; in nla_validate_range_unsigned() local 180 value = nla_get_u8(nla); in nla_validate_range_unsigned() 183 value = nla_get_u16(nla); in nla_validate_range_unsigned() 186 value = nla_get_u32(nla); in nla_validate_range_unsigned() 189 value = nla_get_u64(nla); in nla_validate_range_unsigned() 198 value = nla_len(nla); in nla_validate_range_unsigned() 226 if (value < range.min || value > range.max) { in nla_validate_range_unsigned() 292 s64 value; in nla_validate_int_range_signed() local 296 value = nla_get_s8(nla); in nla_validate_int_range_signed() 316 if (value < range.min || value > range.max) { in nla_validate_int_range_signed() [all …]
|
A D | test_rhashtable.c | 64 struct test_obj_val value; member 69 struct test_obj_val value; member 84 return (obj->value.id % 10); in my_hashfn() 163 if (obj->value.id != i) { in test_rht_lookup() 165 obj->value.id, i); in test_rht_lookup() 226 obj->value.id = i * 2; in test_rhashtable() 449 obj->value.id = i * 2; in test_rhashtable_max() 501 offset += sprintf(buff + offset, " val %d (tid=%d)%s", p->value.id, p->value.tid, in print_ht() 577 rhl_test_objects[2].value.id = rhl_test_objects[0].value.id; in test_insert_duplicates_run() 608 obj->value.tid, obj->value.id, key.tid, key.id); in thread_lookup_test() [all …]
|
A D | cmdline.c | 59 int value; in get_option() local 64 value = -simple_strtoull(++cur, str, 0); in get_option() 66 value = simple_strtoull(cur, str, 0); in get_option() 68 *pint = value; in get_option()
|
A D | string.c | 818 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument 821 if (*start != value) in check_bytes8() 840 u8 value = c; in memchr_inv() local 845 return check_bytes8(start, value, bytes); in memchr_inv() 847 value64 = value; in memchr_inv() 864 r = check_bytes8(start, value, prefix); in memchr_inv() 875 return check_bytes8(start, value, 8); in memchr_inv() 880 return check_bytes8(start, value, bytes % 8); in memchr_inv()
|
A D | logic_iomem.c | 195 static void real_memset_io(volatile void __iomem *addr, int value, size_t size) in real_memset_io() argument 254 void memset_io(volatile void __iomem *addr, int value, size_t size) in memset_io() argument 260 real_memset_io(addr, value, size); in memset_io() 267 area->ops->set(area->priv, start, value, size); in memset_io() 272 area->ops->write(area->priv, start + offs, 1, value); in memset_io()
|
A D | notifier-error-inject.c | 22 struct dentry *parent, int *value) in debugfs_create_errno() argument 24 return debugfs_create_file(name, mode, parent, value, &fops_errno); in debugfs_create_errno()
|
A D | extable.c | 114 unsigned long value) in search_extable() argument 116 return bsearch(&value, base, num, in search_extable()
|
/lib/zlib_deflate/ |
A D | defutil.h | 361 static void send_bits (deflate_state *s, int value, int length); 365 int value, /* value to send */ in send_bits() argument 369 Tracevv((stderr," l %2d v %4x ", length, value)); in send_bits() 378 s->bi_buf |= (value << s->bi_valid); in send_bits() 380 s->bi_buf = (ush)value >> (Buf_size - s->bi_valid); in send_bits() 383 s->bi_buf |= value << s->bi_valid; in send_bits() 389 #define send_bits(s, value, length) \ argument 392 int val = value;\ 398 s->bi_buf |= (value) << s->bi_valid;\ 406 int value, in zlib_tr_send_bits() argument [all …]
|
/lib/lz4/ |
A D | lz4defs.h | 122 static FORCE_INLINE void LZ4_write16(void *memPtr, U16 value) in LZ4_write16() argument 124 put_unaligned(value, (U16 *)memPtr); in LZ4_write16() 127 static FORCE_INLINE void LZ4_write32(void *memPtr, U32 value) in LZ4_write32() argument 129 put_unaligned(value, (U32 *)memPtr); in LZ4_write32() 137 static FORCE_INLINE void LZ4_writeLE16(void *memPtr, U16 value) in LZ4_writeLE16() argument 139 return put_unaligned_le16(value, memPtr); in LZ4_writeLE16()
|
/lib/tests/ |
A D | test_kprobes.c | 16 static u32 (*target)(u32 value); 17 static u32 (*recursed_target)(u32 value); 18 static u32 (*target2)(u32 value); 26 static noinline u32 kprobe_target(u32 value) in kprobe_target() argument 28 return (value / div_factor); in kprobe_target() 31 static noinline u32 kprobe_recursed_target(u32 value) in kprobe_recursed_target() argument 33 return (value / div_factor); in kprobe_recursed_target() 71 static noinline u32 kprobe_target2(u32 value) in kprobe_target2() argument 73 return (value / div_factor) + 1; in kprobe_target2()
|
A D | test_fprobe.c | 18 static u32 (*target)(u32 value); 19 static u32 (*target2)(u32 value); 24 static noinline u32 fprobe_selftest_target(u32 value) in fprobe_selftest_target() argument 26 return (value / div_factor); in fprobe_selftest_target() 29 static noinline u32 fprobe_selftest_target2(u32 value) in fprobe_selftest_target2() argument 31 return (value / div_factor) + 1; in fprobe_selftest_target2()
|
A D | test_list_sort.c | 25 int value; member 55 return ela->value - elb->value; in cmp() 74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test()
|
/lib/math/tests/ |
A D | int_log_kunit.c | 6 u32 value; member 48 KUNIT_EXPECT_EQ(test, tc->expected_result, intlog2(tc->value)); in intlog2_test() 57 KUNIT_EXPECT_EQ(test, tc->expected_result, intlog10(tc->value)); in intlog10_test()
|
/lib/zstd/compress/ |
A D | zstd_compress.c | 284 if (value != ZSTD_ps_auto) return value; in ZSTD_resolveExternalRepcodeSearch() 628 if (*value < bounds.lowerBound) *value = bounds.lowerBound; in ZSTD_cParam_clampBounds() 629 if (*value > bounds.upperBound) *value = bounds.upperBound; in ZSTD_cParam_clampBounds() 765 if (value == 0) in ZSTD_CCtxParams_setParameter() 795 return (size_t)value; in ZSTD_CCtxParams_setParameter() 874 if (value!=0) /* 0 ==> auto */ in ZSTD_CCtxParams_setParameter() 899 value = MAX(value, ZSTD_TARGETCBLOCKSIZE_MIN); in ZSTD_CCtxParams_setParameter() 908 CCtxParams->srcSizeHint = value; in ZSTD_CCtxParams_setParameter() 964 assert(value>=0); in ZSTD_CCtxParams_setParameter() 1034 *value = CCtxParams->nbWorkers; in ZSTD_CCtxParams_getParameter() [all …]
|
/lib/zstd/decompress/ |
A D | zstd_decompress.c | 1791 if (value < bounds.lowerBound) return 0; in ZSTD_dParam_withinBounds() 1792 if (value > bounds.upperBound) return 0; in ZSTD_dParam_withinBounds() 1807 *value = (int)dctx->format; in ZSTD_DCtx_getParameter() 1810 *value = (int)dctx->outBufferMode; in ZSTD_DCtx_getParameter() 1819 *value = (int)dctx->disableHufAsm; in ZSTD_DCtx_getParameter() 1822 *value = dctx->maxBlockSizeParam; in ZSTD_DCtx_getParameter() 1834 if (value == 0) value = ZSTD_WINDOWLOG_LIMIT_DEFAULT; in ZSTD_DCtx_setParameter() 1839 CHECK_DBOUNDS(ZSTD_d_format, value); in ZSTD_DCtx_setParameter() 1859 dctx->disableHufAsm = value != 0; in ZSTD_DCtx_setParameter() 1862 if (value != 0) CHECK_DBOUNDS(ZSTD_d_maxBlockSize, value); in ZSTD_DCtx_setParameter() [all …]
|