Home
last modified time | relevance | path

Searched refs:padded_length (Results 1 – 25 of 89) sorted by relevance

1234

/dports/astro/libosmium/libosmium-2.17.2/test/t/memory/
H A Dtest_item.cpp6 REQUIRE(osmium::memory::padded_length(0) == 0);
7 REQUIRE(osmium::memory::padded_length(1) == 8);
8 REQUIRE(osmium::memory::padded_length(2) == 8);
9 REQUIRE(osmium::memory::padded_length(7) == 8);
10 REQUIRE(osmium::memory::padded_length(8) == 8);
11 REQUIRE(osmium::memory::padded_length(9) == 16);
13 REQUIRE(osmium::memory::padded_length(2147483647UL) == 2147483648UL);
14 REQUIRE(osmium::memory::padded_length(2147483648UL) == 2147483648UL);
15 REQUIRE(osmium::memory::padded_length(2147483650UL) == 2147483656UL);
21 …REQUIRE(osmium::memory::padded_length(static_cast<std::size_t>(4294967295ULL)) == static_cast<std:…
[all …]
/dports/www/osrm-backend/osrm-backend-5.26.0/third_party/libosmium/test/t/memory/
H A Dtest_item.cpp6 REQUIRE(osmium::memory::padded_length(0) == 0);
7 REQUIRE(osmium::memory::padded_length(1) == 8);
8 REQUIRE(osmium::memory::padded_length(2) == 8);
9 REQUIRE(osmium::memory::padded_length(7) == 8);
10 REQUIRE(osmium::memory::padded_length(8) == 8);
11 REQUIRE(osmium::memory::padded_length(9) == 16);
13 REQUIRE(osmium::memory::padded_length(2147483647UL) == 2147483648UL);
14 REQUIRE(osmium::memory::padded_length(2147483648UL) == 2147483648UL);
15 REQUIRE(osmium::memory::padded_length(2147483650UL) == 2147483656UL);
21 …REQUIRE(osmium::memory::padded_length(static_cast<std::size_t>(4294967295ULL)) == static_cast<std:…
[all …]
/dports/security/p5-CryptX/CryptX-0.075/src/ltc/misc/padding/
H A Dpadding_depad.c19 unsigned long padded_length, unpadded_length, n; in padding_depad() local
26 padded_length = *length; in padding_depad()
31 pad = data[padded_length - 1]; in padding_depad()
33 if (pad > padded_length || pad == 0) return CRYPT_INVALID_ARG; in padding_depad()
35 unpadded_length = padded_length - pad; in padding_depad()
39 unpadded_length = padded_length; in padding_depad()
47 for (n = unpadded_length; n < padded_length - 1; ++n) { in padding_depad()
71 if (unpadded_length == padded_length) return CRYPT_INVALID_PACKET; in padding_depad()
H A Dpadding_pad.c79 int padding_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned l… in padding_pad() argument
87 LTC_ARGCHK(padded_length != NULL); in padding_pad()
96 if (*padded_length < l) { in padding_pad()
99 *padded_length = l; in padding_pad()
101 *padded_length = length + 256; in padding_pad()
104 *padded_length = l; in padding_pad()
139 *padded_length = l; in padding_pad()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/updater/tools/
H A Dmain.cc52 int padded_length = 0; member
95 int padded_length = 0; in ParseCommandLineArgs() local
97 &padded_length) || in ParseCommandLineArgs()
98 padded_length < 0) { in ParseCommandLineArgs()
101 args.padded_length = padded_length; in ParseCommandLineArgs()
165 if (args.padded_length > 0) { in CertificateTagMain()
167 if (base::CheckAdd(tag_contents.size(), args.padded_length) in CertificateTagMain()
/dports/www/h2o-devel/h2o-dcc7134/deps/picotls/src/
H A Desni.c44 …ey_exchange_context_t **key_exchanges, ptls_cipher_suite_t **cipher_suites, uint16_t padded_length, in emit_esni() argument
73 ptls_buffer_push16(&buf, padded_length); in emit_esni()
151 uint16_t padded_length = 260; in main() local
201 if (sscanf_s(optarg, "%" SCNu16, &padded_length) != 1 || padded_length == 0) { in main()
206 if (sscanf(optarg, "%" SCNu16, &padded_length) != 1 || padded_length == 0) { in main()
233 …if (emit_esni(key_exchanges.elements, cipher_suites.elements, padded_length, time(NULL), lifetime,… in main()
/dports/www/firefox/firefox-99.0/third_party/wasm2c/wasm2c/
H A Dwasm-rt-os-win.c164 size_t padded_length = requested_length + alignment + alignment_offset; in os_mmap_aligned() local
165 uintptr_t unaligned = (uintptr_t)win_mmap(addr, padded_length, prot, flags, MEM_RESERVE); in os_mmap_aligned()
171 (unsigned long long) padded_length, in os_mmap_aligned()
192 if (aligned == unaligned && padded_length == requested_length) { in os_mmap_aligned()
199 (unaligned + (padded_length - 1)) || in os_mmap_aligned()
202 os_munmap((void*)unaligned, padded_length); in os_mmap_aligned()
207 os_munmap((void*)unaligned, padded_length); in os_mmap_aligned()
H A Dwasm-rt-os-unix.c116 size_t padded_length = requested_length + alignment + alignment_offset; in os_mmap_aligned() local
117 uintptr_t unaligned = (uintptr_t)os_mmap(addr, padded_length, prot, flags); in os_mmap_aligned()
123 (unsigned long long) padded_length, in os_mmap_aligned()
146 (aligned + (requested_length - 1)) > (unaligned + (padded_length - 1)) || in os_mmap_aligned()
149 os_munmap((void*)unaligned, padded_length); in os_mmap_aligned()
162 (unaligned + (padded_length - 1)) - (aligned + (requested_length - 1)); in os_mmap_aligned()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/base32/
H A Dbase32.cc25 const size_t padded_length = ((input.size() + 4) / 5) * 8; in Base32Encode() local
36 ? padded_length in Base32Encode()
60 output.append(padded_length - unpadded_length, kPaddingChar); in Base32Encode()
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/common/
H A Drichacl_converter.cc161 uint32_t padded_length = padLength(owner_length, sizeof(uint32_t)); in extractAceFromNFS() local
162 buffer += padded_length; in extractAceFromNFS()
163 bytes_left -= padded_length; in extractAceFromNFS()
295 size_t padded_length = padLength(owner_name.size(), sizeof(uint32_t)); in objectToNFSXattr() local
296 buffer.resize(prev_size + 4 * sizeof(uint32_t) + padded_length); in objectToNFSXattr()
307 put32bit(&current, padded_length); in objectToNFSXattr()
309 current += padded_length; // redundant, but makes it safe to write code below it in objectToNFSXattr()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/animation/
H A Dsvg_number_list_interpolation_type.cc60 wtf_size_t padded_length) { in PadWithZeroes() argument
63 if (list.length() >= padded_length) in PadWithZeroes()
66 auto result = std::make_unique<InterpolableList>(padded_length); in PadWithZeroes()
70 for (; i < padded_length; i++) in PadWithZeroes()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/animation/
H A Dsvg_number_list_interpolation_type.cc60 wtf_size_t padded_length) { in PadWithZeroes() argument
63 if (list.length() >= padded_length) in PadWithZeroes()
66 auto result = std::make_unique<InterpolableList>(padded_length); in PadWithZeroes()
70 for (; i < padded_length; i++) in PadWithZeroes()
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/base32/
H A Dbase32.cc39 const size_t padded_length = ((input.size() + 4) / 5) * 8; in Base32Encode() local
50 ? padded_length in Base32Encode()
74 output.append(padded_length - unpadded_length, kPaddingChar); in Base32Encode()
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/lucet-runtime-internals-wasmsbx/src/region/
H A Dmmap.rs405 let padded_length = requested_length + alignment + alignment_offset; in mmap_aligned() localVariable
406 let unaligned = mmap(addr, padded_length, prot, flags, fd, offset)? as usize; in mmap_aligned()
421 || (aligned + (requested_length - 1)) > (unaligned + (padded_length - 1)) in mmap_aligned()
425 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
434 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
441 let unused_back = (unaligned + (padded_length - 1)) - (aligned + (requested_length - 1)); in mmap_aligned()
445 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/lucet-runtime-internals-wasmsbx/src/region/
H A Dmmap.rs405 let padded_length = requested_length + alignment + alignment_offset; in mmap_aligned() localVariable
406 let unaligned = mmap(addr, padded_length, prot, flags, fd, offset)? as usize; in mmap_aligned()
421 || (aligned + (requested_length - 1)) > (unaligned + (padded_length - 1)) in mmap_aligned()
425 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
434 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
441 let unused_back = (unaligned + (padded_length - 1)) - (aligned + (requested_length - 1)); in mmap_aligned()
445 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/lucet-runtime-internals/src/region/
H A Dmmap.rs405 let padded_length = requested_length + alignment + alignment_offset; in mmap_aligned() localVariable
406 let unaligned = mmap(addr, padded_length, prot, flags, fd, offset)? as usize; in mmap_aligned()
421 || (aligned + (requested_length - 1)) > (unaligned + (padded_length - 1)) in mmap_aligned()
425 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
434 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
441 let unused_back = (unaligned + (padded_length - 1)) - (aligned + (requested_length - 1)); in mmap_aligned()
445 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/lucet-runtime/lucet-runtime-internals/src/region/
H A Dmmap.rs442 let padded_length = requested_length + alignment + alignment_offset; in mmap_aligned() localVariable
443 let unaligned = mmap(addr, padded_length, prot, flags, fd, offset)? as usize; in mmap_aligned()
458 || (aligned + (requested_length - 1)) > (unaligned + (padded_length - 1)) in mmap_aligned()
462 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
470 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
476 let unused_back = (unaligned + (padded_length - 1)) - (aligned + (requested_length - 1)); in mmap_aligned()
481 let _ = munmap(unaligned as *mut c_void, padded_length); in mmap_aligned()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/parasites/braids/
H A Dui.cc118 uint8_t padded_length = length + 2 * kDisplayWidth - 4; in RefreshDisplay() local
119 uint8_t position = ((cv_[0] >> 4) * (padded_length - 1)) >> 8; in RefreshDisplay()
120 position += (marquee_step_ % padded_length); in RefreshDisplay()
124 uint8_t index = (position + i) % padded_length; in RefreshDisplay()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/eurorack/braids/
H A Dui.cc118 uint8_t padded_length = length + 2 * kDisplayWidth - 4; in RefreshDisplay() local
119 uint8_t position = ((cv_[0] >> 4) * (padded_length - 1)) >> 8; in RefreshDisplay()
120 position += (marquee_step_ % padded_length); in RefreshDisplay()
124 uint8_t index = (position + i) % padded_length; in RefreshDisplay()
/dports/net/radiusclient/radiusclient-ng-0.5.6/lib/
H A Dsendserver.c38 int length, i, pc, secretlen, padded_length; in rc_pack_list() local
73 padded_length = (length+(AUTH_VECTOR_LEN-1)) & ~(AUTH_VECTOR_LEN-1); in rc_pack_list()
76 *buf++ = padded_length + 2; in rc_pack_list()
77 if (vsa_length_ptr != NULL) *vsa_length_ptr += padded_length + 2; in rc_pack_list()
85 for(i = 0; i < padded_length; i += AUTH_VECTOR_LEN) in rc_pack_list()
103 total_length += padded_length + 2; in rc_pack_list()
/dports/astro/libosmium/libosmium-2.17.2/include/osmium/osm/
H A Dchangeset.hpp69 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
73 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
177 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
181 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
/dports/converters/osm2pgsql/osm2pgsql-1.5.1/contrib/libosmium/include/osmium/osm/
H A Dchangeset.hpp69 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
73 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
177 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
181 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
/dports/www/osrm-backend/osrm-backend-5.26.0/third_party/libosmium/include/osmium/osm/
H A Dchangeset.hpp69 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
73 …return data() + osmium::memory::padded_length(sizeof(ChangesetComment) + m_user_size + m_text_size… in endpos()
177 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
181 return data() + osmium::memory::padded_length(sizeof(Changeset) + m_user_size); in subitems_position()
/dports/net/freeradius-client/freeradius-client-1.1.7/lib/
H A Dsendserver.c40 int length, i, pc, padded_length; in rc_pack_list() local
76 padded_length = (length+(AUTH_VECTOR_LEN-1)) & ~(AUTH_VECTOR_LEN-1); in rc_pack_list()
79 *buf++ = padded_length + 2; in rc_pack_list()
80 if (vsa_length_ptr != NULL) *vsa_length_ptr += padded_length + 2; in rc_pack_list()
88 for(i = 0; i < padded_length; i += AUTH_VECTOR_LEN) in rc_pack_list()
106 total_length += padded_length + 2; in rc_pack_list()
/dports/astro/libosmium/libosmium-2.17.2/include/osmium/memory/
H A Ditem.hpp64 inline constexpr std::size_t padded_length(std::size_t length) noexcept { in padded_length() function
168 return static_cast<item_size_type>(padded_length(m_size)); in padded_size()

1234