Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 8 of 8) sorted by relevance

/openthread-latest/third_party/tcplp/lib/test/
Dtest_all.c110 uint8_t bitmap[8]; in test_cbuf() local
149 bmp_init(bitmap, 8); in test_cbuf()
150 bmp_test("bmp_init", bitmap, 8, "0000000000000000"); in test_cbuf()
152 cbuf_reass_write(&chdr, 4, "@@@@@@@@@@@", 0, 11, bitmap, NULL, cbuf_copy_from_buffer); in test_cbuf()
154 bmp_test("cbuf_reass_write (bitmap)", bitmap, 8, "03FF800000000000"); in test_cbuf()
156 cbuf_contiguify(&chdr, bitmap); in test_cbuf()
158 bmp_test("cbuf_reass_write (bitmap)", bitmap, 8, "0000000000003FF8"); in test_cbuf()
163 cbuf_reass_merge(&chdr, 9, bitmap); in test_cbuf()
165 bmp_test("cbuf_reass_merge (bitmap)", bitmap, 8, "0000000000000018"); in test_cbuf()
167 cbuf_reass_merge(&chdr, 2, bitmap); in test_cbuf()
[all …]
DMakefile12 test_all: test_all.o cbuf.o lbuf.o bitmap.o
13 clang test_all.o cbuf.o lbuf.o bitmap.o -o test_all
/openthread-latest/third_party/tcplp/lib/
Dcbuf.c180 static void cbuf_swap(struct cbufhead* chdr, uint8_t* bitmap, size_t start_1, size_t start_2, size_… in cbuf_swap() argument
191 if (bitmap) { in cbuf_swap()
192 bmp_swap(bitmap, start_1, start_2, length); in cbuf_swap()
196 void cbuf_contiguify(struct cbufhead* chdr, uint8_t* bitmap) { in cbuf_contiguify() argument
255 cbuf_swap(chdr, bitmap, start_idx, move_to_start_idx, distance_from_start); in cbuf_contiguify()
259 cbuf_swap(chdr, bitmap, start_idx, move_to_start_idx, distance_to_end); in cbuf_contiguify()
286 … offset, const void* data, size_t data_offset, size_t numbytes, uint8_t* bitmap, size_t* firstinde… in cbuf_reass_write() argument
301 if (bitmap) { in cbuf_reass_write()
302 bmp_setrange(bitmap, start_index, numbytes); in cbuf_reass_write()
308 if (bitmap) { in cbuf_reass_write()
[all …]
Dcbuf.h89 void cbuf_contiguify(struct cbufhead* chdr, uint8_t* bitmap);
101 … offset, const void* data, size_t data_offset, size_t numbytes, uint8_t* bitmap, size_t* firstinde…
108 size_t cbuf_reass_merge(struct cbufhead* chdr, size_t numbytes, uint8_t* bitmap);
120 size_t cbuf_reass_count_set(struct cbufhead* chdr, size_t offset, uint8_t* bitmap, size_t limit);
/openthread-latest/src/core/utils/
Djam_detector.cpp230 uint64_t bitmap = mHistoryBitmap; in UpdateJamState() local
233 bitmap &= (static_cast<uint64_t>(1) << mWindow) - 1; in UpdateJamState()
236 while (bitmap != 0) in UpdateJamState()
239 bitmap &= (bitmap - 1); in UpdateJamState()
/openthread-latest/third_party/tcplp/
DCMakeLists.txt42 lib/bitmap.c
/openthread-latest/tests/unit/
Dtest_mdns.cpp328 NsecRecord::TypeBitMap &bitmap = mData.mNsecBitmap; in ParseFrom() local
331 SuccessOrQuit(aMessage.Read(offset, &bitmap, NsecRecord::TypeBitMap::kMinSize)); in ParseFrom()
332 VerifyOrQuit(bitmap.GetBlockNumber() == 0); in ParseFrom()
333 VerifyOrQuit(bitmap.GetBitmapLength() <= NsecRecord::TypeBitMap::kMaxLength); in ParseFrom()
334 SuccessOrQuit(aMessage.Read(offset, &bitmap, bitmap.GetSize())); in ParseFrom()
336 offset += bitmap.GetSize(); in ParseFrom()
341 for (uint16_t type = 0; type < bitmap.GetBitmapLength() * kBitsPerByte; type++) in ParseFrom()
343 if (bitmap.ContainsType(type)) in ParseFrom()
/openthread-latest/src/core/net/
Dmdns.cpp1417 NsecRecord::TypeBitMap bitmap; in AppendNsecRecordTo() local
1425 bitmap.Clear(); in AppendNsecRecordTo()
1429 bitmap.AddType(type); in AppendNsecRecordTo()
1440 SuccessOrAssert(message.AppendBytes(&bitmap, bitmap.GetSize())); in AppendNsecRecordTo()