Home
last modified time | relevance | path

Searched refs:MAX_LEN (Results 1 – 25 of 1492) sorted by relevance

12345678910>>...60

/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_varlen.c9 #define MAX_LEN 256 macro
11 char buf_in1[MAX_LEN] = {};
12 char buf_in2[MAX_LEN] = {};
21 char payload1[MAX_LEN + MAX_LEN] = {};
27 char payload2[MAX_LEN + MAX_LEN] = { 1 };
32 char payload3[MAX_LEN + MAX_LEN] = { 1 };
37 char payload4[MAX_LEN + MAX_LEN] = { 1 };
51 if (len <= MAX_LEN) { in handler64_unsigned()
57 if (len <= MAX_LEN) { in handler64_unsigned()
105 if (len <= MAX_LEN) { in handler32_unsigned()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_varlen.c9 #define MAX_LEN 256 macro
11 char buf_in1[MAX_LEN] = {};
12 char buf_in2[MAX_LEN] = {};
21 char payload1[MAX_LEN + MAX_LEN] = {};
27 char payload2[MAX_LEN + MAX_LEN] = { 1 };
32 char payload3[MAX_LEN + MAX_LEN] = { 1 };
37 char payload4[MAX_LEN + MAX_LEN] = { 1 };
51 if (len <= MAX_LEN) { in handler64_unsigned()
57 if (len <= MAX_LEN) { in handler64_unsigned()
105 if (len <= MAX_LEN) { in handler32_unsigned()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_varlen.c9 #define MAX_LEN 256 macro
11 char buf_in1[MAX_LEN] = {};
12 char buf_in2[MAX_LEN] = {};
21 char payload1[MAX_LEN + MAX_LEN] = {};
27 char payload2[MAX_LEN + MAX_LEN] = { 1 };
32 char payload3[MAX_LEN + MAX_LEN] = { 1 };
37 char payload4[MAX_LEN + MAX_LEN] = { 1 };
51 if (len <= MAX_LEN) { in handler64_unsigned()
57 if (len <= MAX_LEN) { in handler64_unsigned()
105 if (len <= MAX_LEN) { in handler32_unsigned()
[all …]
/dports/devel/cunit/CUnit-2.1-3/CUnit/Sources/Framework/
H A DUtil.c261 #define MAX_LEN BUF_LEN/2 macro
266 char *dest = dest_buf + MAX_LEN; in test_CU_translate_special_characters()
276 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
287 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
293 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
299 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
300 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
306 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
437 char string[MAX_LEN]; in test_CU_trim()
486 char string[MAX_LEN]; in test_CU_trim_left()
[all …]
/dports/devel/bcunit/bcunit-d8d2f4b40209e06b400f893cce58e4c6ba73341d/BCUnit/Sources/Framework/
H A DUtil.c331 #define MAX_LEN BUF_LEN/2 macro
336 char *dest = dest_buf + MAX_LEN; in test_CU_translate_special_characters()
346 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
357 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
363 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
369 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
370 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
376 TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); in test_CU_translate_special_characters()
507 char string[MAX_LEN]; in test_CU_trim()
556 char string[MAX_LEN]; in test_CU_trim_left()
[all …]
/dports/graphics/ossim/ossim-OrchidIsland-2.11.1/src/imaging/
H A DossimCcfHead.cpp180 const ossim_uint32 MAX_LEN = 256; in parseCcfHeader() local
181 char tmp[MAX_LEN]; in parseCcfHeader()
273 const ossim_uint32 MAX_LEN = 256; in parseV5CcfHeader() local
274 char tmp[MAX_LEN]; in parseV5CcfHeader()
280 is.getline(tmp, MAX_LEN-1, '\n'); // skip "ccf_maker" in parseV5CcfHeader()
309 is.getline(tmp, MAX_LEN-1, '\n'); // skip blank line in parseV5CcfHeader()
351 is.getline(tmp, MAX_LEN-1, '\n'); // skip blank line in parseV5CcfHeader()
424 const ossim_uint32 MAX_LEN = 256; in parseV6CcfHeader() local
425 char tmp[MAX_LEN]; in parseV6CcfHeader()
481 is.getline(tmp, MAX_LEN-1, '\n'); // skip blank line in parseV6CcfHeader()
[all …]
/dports/net/mpich/mpich-3.4.3/modules/libfabric/prov/gni/test/
H A Dbuddy_allocator.c41 #define MAX_LEN (LEN / 2) /* buddy_handle->max */ macro
94 ret = _gnix_buddy_allocator_create(buf, LEN, MAX_LEN, NULL); in buddy_allocator_setup_error()
155 for (i = MIN_LEN; i <= MAX_LEN; i *= 2) { in Test()
168 for (j = MIN_LEN; j <= MAX_LEN; j *= 2) { in Test()
238 ret = _gnix_buddy_alloc(NULL, ptrs->ptr, MAX_LEN); in Test()
247 ret = _gnix_buddy_alloc(buddy_handle, NULL, MAX_LEN); in Test()
252 ret = _gnix_buddy_free(NULL, ptrs->ptr, MAX_LEN); in Test()
255 ret = _gnix_buddy_free(buddy_handle, NULL, MAX_LEN); in Test()
258 ret = _gnix_buddy_free(buddy_handle, buf - 1, MAX_LEN); in Test()
261 ret = _gnix_buddy_free(buddy_handle, buf + LEN, MAX_LEN); in Test()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.base/share/classes/com/sun/crypto/provider/
H A DGCTR.java58 private static final int MAX_LEN = 1024; field in GCTR
150 while (processed > MAX_LEN) { in update()
151 encrypt(in, offset, MAX_LEN, out, 0); in update()
152 dst.put(out, 0, MAX_LEN); in update()
153 processed -= MAX_LEN; in update()
154 offset += MAX_LEN; in update()
187 while (processed > MAX_LEN) { in update()
188 src.get(in, 0, MAX_LEN); in update()
189 encrypt(in, 0, MAX_LEN, in, 0); in update()
190 dst.put(in, 0, MAX_LEN); in update()
[all …]
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/fpga/usrp3/lib/rfnoc/
H A Dmoving_sum.v9 parameter MAX_LEN = 1023, constant
13 input [$clog2(MAX_LEN+1)-1:0] len,
15 output [WIDTH+$clog2(MAX_LEN+1)-1:0] o_tdata, output o_tlast, output o_tvalid, input o_tready
18 wire signed [WIDTH+$clog2(MAX_LEN+1)-1:0] sum;
19 reg signed [WIDTH+$clog2(MAX_LEN+1)-1:0] sum_reg;
20 reg [$clog2(MAX_LEN+1)-1:0] full_count, len_reg;
30 axi_fifo #(.WIDTH(WIDTH), .SIZE($clog2(MAX_LEN))) axi_fifo (
71 axi_fifo_flop #(.WIDTH(WIDTH+$clog2(MAX_LEN+1)+1)) axi_fifo_flop (
/dports/security/sshguard/sshguard-2.4.2/src/parser/
H A Dparser.c15 #define MAX_LEN 1000 macro
24 static void parse_to_buf(char buf[static 1], char dst[static MAX_LEN]) { in parse_to_buf() argument
28 snprintf(dst, MAX_LEN, in parse_to_buf()
32 strncpy(dst, "*\n", MAX_LEN); in parse_to_buf()
40 static void test_next_line(char buf[static MAX_LEN]) { in test_next_line() argument
42 static char expected[MAX_LEN], result[MAX_LEN]; in test_next_line()
93 char buf[MAX_LEN]; in main()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/java.base/share/classes/com/sun/crypto/provider/
H A DGCTR.java57 private static final int MAX_LEN = 1024; field in GCTR
179 while (processed > MAX_LEN) { in update()
180 encrypt(in, offset, MAX_LEN, out, 0); in update()
181 dst.put(out, 0, MAX_LEN); in update()
182 processed -= MAX_LEN; in update()
183 offset += MAX_LEN; in update()
231 while (processed > MAX_LEN) { in update()
232 src.get(in, 0, MAX_LEN); in update()
233 encrypt(in, 0, MAX_LEN, in, 0); in update()
234 dst.put(in, 0, MAX_LEN); in update()
[all …]
H A DGHASH.java61 private static final int MAX_LEN = 1024; field in GHASH
206 byte[] in = new byte[Math.min(MAX_LEN, inLen)]; in update()
207 while (to_process > MAX_LEN ) { in update()
208 ct.get(in, 0, MAX_LEN); in update()
209 update(in, 0 , MAX_LEN); in update()
210 to_process -= MAX_LEN; in update()
290 byte[] data = new byte[Math.min(MAX_LEN, inLen)]; in processBlocksDirect()
291 while (inLen > MAX_LEN) { in processBlocksDirect()
292 ct.get(data, 0, MAX_LEN); in processBlocksDirect()
293 processBlocks(data, 0, MAX_LEN / AES_BLOCK_SIZE, state, in processBlocksDirect()
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/core/include/opencv2/core/cuda/detail/
H A Dvec_distance_detail.hpp99 template <int THREAD_DIM, int MAX_LEN, bool LEN_EQ_MAX_LEN> struct VecDiffCachedCalculator;
100 … template <int THREAD_DIM, int MAX_LEN> struct VecDiffCachedCalculator<THREAD_DIM, MAX_LEN, false>
105 …UnrollVecDiffCached<THREAD_DIM, MAX_LEN / THREAD_DIM>::calcCheck(vecCached, vecGlob, len, dist, ti… in calc()
108 … template <int THREAD_DIM, int MAX_LEN> struct VecDiffCachedCalculator<THREAD_DIM, MAX_LEN, true>
113 …UnrollVecDiffCached<THREAD_DIM, MAX_LEN / THREAD_DIM>::calcWithoutCheck(vecCached, vecGlob + tid, … in calc()
/dports/games/openxcom/OpenXcom-1.0/src/Engine/
H A DLogger.h129 const int MAX_LEN = 25, MAX_RESULT = 80; in now() local
131 char date[MAX_LEN], time[MAX_LEN]; in now()
133 "dd'-'MM'-'yyyy", date, MAX_LEN) == 0) in now()
136 "HH':'mm':'ss", time, MAX_LEN) == 0) in now()
142 char buffer[MAX_LEN]; in now()
147 strftime(buffer, MAX_LEN, "%d-%m-%Y %H:%M:%S", timeinfo); in now()
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/search/
H A Dlshtein.py86 self.MAX_LEN = max_len
144 if l2 > self.MAX_LEN:
145 b = b[: self.MAX_LEN]
146 l2 = self.MAX_LEN
148 if l1 > self.MAX_LEN:
149 a = a[: self.MAX_LEN]
150 l1 = self.MAX_LEN
/dports/security/eschalot/eschalot-a45bad5/
H A Dworgen.c33 #define MAX_LEN 16 macro
81 if (!w[j].minlen || !w[j].maxlen || w[j].maxlen > MAX_LEN) in main()
97 len1 = mystrnlen(w[1].words[i], MAX_LEN); in main()
107 len2 = mystrnlen(w[2].words[j], MAX_LEN); in main()
117 len3 = mystrnlen(w[3].words[k], MAX_LEN); in main()
160 char word[MAX_LEN + 1]; in readfile()
180 if ((!inword && j > 0) || j > MAX_LEN) { in readfile()
183 len = mystrnlen(word, MAX_LEN); in readfile()
193 (char *)malloc(mystrnlen(word, MAX_LEN) + 1)) == NULL) in readfile()
196 strncpy(list->words[list->wordcount], word, mystrnlen(word, MAX_LEN) + 1); in readfile()
/dports/math/gmp-ecm/ecm-7.0.4/
H A Dtune.c29 #define MAX_LEN (1U << max_log2_len) macro
505 x = init_list (MAX_LEN); in main()
506 y = init_list (MAX_LEN); in main()
507 z = init_list (MAX_LEN); in main()
508 t = init_list (list_mul_mem (MAX_LEN / 2) + 3 * MAX_LEN / 2); in main()
516 for (i = 0; i < MAX_LEN; i++) in main()
518 for (i = 0; i < MAX_LEN; i++) in main()
596 clear_list (x, MAX_LEN); in main()
597 clear_list (y, MAX_LEN); in main()
598 clear_list (z, MAX_LEN); in main()
[all …]
/dports/games/scid/scid/gtest/
H A Dtest_namebase.cpp26 const size_t MAX_LEN = 255; // Max 255 chars; in TEST() local
44 MAX_LEN, MAX_ID[e.first]) in TEST()
49 EXPECT_NE(OK, nb.addName(nt, "full", MAX_LEN, MAX_ID[nt]).first); in TEST()
55 const size_t MAX_LEN = 255; // Max 255 chars; in TEST() local
58 ASSERT_TRUE(s.size() > MAX_LEN); in TEST()
63 auto test = nb.addName(nt, s.substr(0, i).c_str(), MAX_LEN, 1000); in TEST()
64 if (i <= MAX_LEN) in TEST()
/dports/math/vtk6/VTK-6.2.0/ThirdParty/libproj4/vtklibproj4/
H A Dproj_strerrno.c33 #define MAX_LEN 160 macro
34 static char temp[MAX_LEN + 1];
46 if ((n = (int)strlen(proj_err_list[i].name)) > MAX_LEN) n = MAX_LEN; in proj_strerrno()
/dports/audio/festival/speech_tools/sigpr/pda/
H A Dpcb_smoother.cc46 #define MAX_LEN 127 macro
65 float xdel[2 * MAX_LEN - 2], ydel[2 * MAX_LEN - 2]; in array_smoother()
66 float medbuf1[MAX_LEN], medbuf2[MAX_LEN]; in array_smoother()
67 float hanbuf1[MAX_LEN], hanbuf2[MAX_LEN], win_coeffs[MAX_LEN]; in array_smoother()
201 float tmp, filmed[MAX_LEN]; in median()
250 float valout = 0.0, weight[MAX_LEN]; in hanning()
/dports/emulators/fs-uae/fs-uae-3.1.35/src/fs-uae/
H A Duae_config.c11 #define MAX_LEN 1024 macro
29 char *key = malloc(MAX_LEN); in read_custom_uae_options_from_file()
30 char *value = malloc(MAX_LEN); in read_custom_uae_options_from_file()
51 else if (c != ' ' && index < MAX_LEN - 1) { in read_custom_uae_options_from_file()
66 if (mode == 2 && index < MAX_LEN - 1) { in read_custom_uae_options_from_file()
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/testsuite/gcc.target/s390/
H A Dmemcpy-2.c6 #define MAX_LEN (8 * 1000) macro
9 char gsrc[MAX_LEN + 2];
10 char gdst[MAX_LEN + 2];
23 for (i = len + 1; i < MAX_LEN; i++) in compare_mem()
38 for (i = 0; i < MAX_LEN / sizeof(unsigned int); i++) in init_mem()
/dports/lang/gcc8/gcc-8.5.0/gcc/testsuite/gcc.target/s390/
H A Dmemcpy-2.c6 #define MAX_LEN (8 * 1000) macro
9 char gsrc[MAX_LEN + 2];
10 char gdst[MAX_LEN + 2];
23 for (i = len + 1; i < MAX_LEN; i++) in compare_mem()
38 for (i = 0; i < MAX_LEN / sizeof(unsigned int); i++) in init_mem()
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.target/s390/
H A Dmemcpy-2.c6 #define MAX_LEN (8 * 1000) macro
9 char gsrc[MAX_LEN + 2];
10 char gdst[MAX_LEN + 2];
23 for (i = len + 1; i < MAX_LEN; i++) in compare_mem()
38 for (i = 0; i < MAX_LEN / sizeof(unsigned int); i++) in init_mem()
/dports/lang/gcc10/gcc-10.3.0/gcc/testsuite/gcc.target/s390/
H A Dmemcpy-2.c6 #define MAX_LEN (8 * 1000) macro
9 char gsrc[MAX_LEN + 2];
10 char gdst[MAX_LEN + 2];
23 for (i = len + 1; i < MAX_LEN; i++) in compare_mem()
38 for (i = 0; i < MAX_LEN / sizeof(unsigned int); i++) in init_mem()

12345678910>>...60