Lines Matching refs:ptrA
45 struct bbs_Int16Arr* ptrA ) in bbs_Int16Arr_init() argument
47 ptrA->arrPtrE = NULL; in bbs_Int16Arr_init()
48 ptrA->sizeE = 0; in bbs_Int16Arr_init()
49 ptrA->allocatedSizeE = 0; in bbs_Int16Arr_init()
50 ptrA->mspE = NULL; in bbs_Int16Arr_init()
56 struct bbs_Int16Arr* ptrA ) in bbs_Int16Arr_exit() argument
58 bbs_MemSeg_free( cpA, ptrA->mspE, ptrA->arrPtrE ); in bbs_Int16Arr_exit()
59 ptrA->arrPtrE = NULL; in bbs_Int16Arr_exit()
60 ptrA->mspE = NULL; in bbs_Int16Arr_exit()
61 ptrA->sizeE = 0; in bbs_Int16Arr_exit()
62 ptrA->allocatedSizeE = 0; in bbs_Int16Arr_exit()
76 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_copy() argument
80 if( ptrA->allocatedSizeE < srcPtrA->sizeE ) in bbs_Int16Arr_copy()
87 bbs_Int16Arr_size( cpA, ptrA, srcPtrA->sizeE ); in bbs_Int16Arr_copy()
88 bbs_memcpy16( ptrA->arrPtrE, srcPtrA->arrPtrE, srcPtrA->sizeE * bbs_SIZEOF16( int16 ) ); in bbs_Int16Arr_copy()
94 const struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_equal() argument
98 const int16* ptr1L = ptrA->arrPtrE; in bbs_Int16Arr_equal()
100 if( ptrA->sizeE != srcPtrA->sizeE ) return FALSE; in bbs_Int16Arr_equal()
101 for( iL = ptrA->sizeE; iL > 0; iL-- ) in bbs_Int16Arr_equal()
119 const struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_heapSize() argument
136 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_create() argument
141 if( ptrA->sizeE == sizeA ) return; in bbs_Int16Arr_create()
142 if( ptrA->arrPtrE != 0 ) in bbs_Int16Arr_create()
144 bbs_Int16Arr_size( cpA, ptrA, sizeA ); in bbs_Int16Arr_create()
148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int16 ) ); in bbs_Int16Arr_create()
150 ptrA->allocatedSizeE = sizeA; in bbs_Int16Arr_create()
151 ptrA->sizeE = sizeA; in bbs_Int16Arr_create()
152 if( !mspA->sharedE ) ptrA->mspE = mspA; in bbs_Int16Arr_create()
159 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_createAligned() argument
169 ptrA->mspE = 0; /* no own allocated memory */ in bbs_Int16Arr_createAligned()
170 ptrA->sizeE = sizeA; in bbs_Int16Arr_createAligned()
171 ptrA->allocatedSizeE = ptrA->sizeE; in bbs_Int16Arr_createAligned()
172 ptrA->arrPtrE = allocPtrA->arrPtrE; in bbs_Int16Arr_createAligned()
183 while( ( ( ( uint64 ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) ) in bbs_Int16Arr_createAligned()
185 ptrA->arrPtrE++; in bbs_Int16Arr_createAligned()
188 while( ( ( ( uintptr_t ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) ) in bbs_Int16Arr_createAligned()
190 ptrA->arrPtrE++; in bbs_Int16Arr_createAligned()
199 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_size() argument
202 if( ptrA->allocatedSizeE < sizeA ) in bbs_Int16Arr_size()
206 ptrA->allocatedSizeE ); in bbs_Int16Arr_size()
209 ptrA->sizeE = sizeA; in bbs_Int16Arr_size()
223 const struct bbs_Int16Arr* ptrA ) in bbs_Int16Arr_memSize() argument
225 return bbs_SIZEOF16( uint32 ) + bbs_SIZEOF16( ptrA->sizeE ) + in bbs_Int16Arr_memSize()
226 ptrA->sizeE * bbs_SIZEOF16( int16 ); in bbs_Int16Arr_memSize()
232 const struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_memWrite() argument
235 uint32 memSizeL = bbs_Int16Arr_memSize( cpA, ptrA ); in bbs_Int16Arr_memWrite()
237 memPtrA += bbs_memWrite32( &ptrA->sizeE, memPtrA ); in bbs_Int16Arr_memWrite()
238 memPtrA += bbs_memWrite16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA ); in bbs_Int16Arr_memWrite()
245 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_memRead() argument
253 bbs_Int16Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_Int16Arr_memRead()
254 memPtrA += bbs_memRead16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA ); in bbs_Int16Arr_memRead()
256 if( memSizeL != bbs_Int16Arr_memSize( cpA, ptrA ) ) in bbs_Int16Arr_memRead()
277 struct bbs_Int16Arr* ptrA, in bbs_Int16Arr_fill() argument
281 for( iL = 0; iL < ptrA->sizeE; iL++ ) in bbs_Int16Arr_fill()
283 ptrA->arrPtrE[ iL ] = valA; in bbs_Int16Arr_fill()