/external/neven/Embedded/common/src/b_BasicEm/ |
Memory.h | 39 /* void* bbs_memcpy( void* dstA, const void* srcA, uint32 sizeA ); */ 45 void* bbs_memcpy16( void* dstA, const void* srcA, uint32 sizeA ); 51 void* bbs_memcpy32( void* dstA, const void* srcA, uint32 sizeA ); 57 void* bbs_memset16( void* dstA, uint16 valA, uint32 sizeA ); 63 void* bbs_memset32( void* dstA, uint32 valA, uint32 sizeA );
|
Memory.c | 40 void* bbs_memcpy( void* dstA, const void* srcA, uint32 sizeA ) 42 if( sizeA & 1 ) 44 bbs_ERROR0( "bbs_memcpy( .... ): sizeA must be even" ); 47 return bbs_memcpy16( dstA, srcA, sizeA >> 1 ); 52 void* bbs_memcpy16( void* dstA, const void* srcA, uint32 sizeA ) 55 if( ( ( int32 ) dstA >> 16 ) == ( ( ( int32 ) dstA + sizeA ) >> 16 ) && 56 ( ( int32 ) srcA >> 16 ) == ( ( ( int32 ) srcA + sizeA ) >> 16 ) ) 62 for( iL = sizeA; iL--; ) 71 for( iL = 0; iL < sizeA; iL++ ) 81 for( ; sizeA >= 4; sizeA -= 4 [all...] |
Functions.c | 132 uint32 sizeA, uint16* memPtrA ) 139 for( iL = 0; iL < sizeA; iL++ ) 144 return sizeA * bbs_SIZEOF16( uint32 ); 151 uint32 sizeA, 159 for( iL = 0; iL < sizeA; iL++ ) 164 return sizeA * bbs_SIZEOF16( uint32 ); 171 uint32 sizeA, 179 for( iL = 0; iL < sizeA; iL++ ) 184 return sizeA * bbs_SIZEOF16( uint16 ); 191 uint32 sizeA, [all...] |
Int16Arr.c | 116 uint32 sizeA ) 118 return sizeA * bbs_SIZEOF16( int16 ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 137 if( ptrA->sizeE == sizeA ) return; 140 bbs_Int16Arr_size( cpA, ptrA, sizeA ); 144 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int16 ) ); 146 ptrA->allocatedSizeE = sizeA; 147 ptrA->sizeE = sizeA; 156 uint32 sizeA, 162 bbs_Int16Arr_create( cpA, allocPtrA, sizeA + ( ( alignBytesA - 1 ) >> 1 ), mspA ) [all...] |
UInt16Arr.c | 116 uint32 startIndexA, uint32 sizeA ) 121 for( iL = sizeA; iL > 0; iL-- ) 132 uint32 sizeA ) 134 return sizeA * bbs_SIZEOF16( uint16 ) + bbs_MEM_BLOCK_OVERHD; 149 uint32 sizeA ) 151 if( ptrA->allocatedSizeE < sizeA ) 153 bbs_ERROR1( "void bbs_UInt16Arr_size( struct bbs_UInt16Arr*, uint32 sizeA ):\n" 158 ptrA->sizeE = sizeA; 165 uint32 sizeA, 169 if( ptrA->sizeE == sizeA ) return [all...] |
Functions.h | 67 /** writes a 32 bit word array to memory; sizeA specifies number of words in array; returns bbs_SIZEOF16( uint32 ) * sizeA */ 70 uint32 sizeA, uint16* memPtrA ); 72 /** reads a 32 bit word array from memory; sizeA specifies number of words in array; returns bbs_SIZEOF16( uint32 ) * sizeA */ 75 uint32 sizeA, const uint16* memPtrA ); 77 /** writes a 16 bit word array to memory; sizeA specifies number of words in array; returns bbs_SIZEOF16( uint16 ) * sizeA */ 80 uint32 sizeA, uint16* memPtrA ); 82 /** reads a 16 bit word array from memory; sizeA specifies number of words in array; returns bbs_SIZEOF16( uint16 ) * sizeA * [all...] |
String.h | 41 /** copies sizeA caracters from from srcA to dstA; returns dstA */ 42 char* bbs_strncpy( char* dstA, const char* srcA, uint32 sizeA ); 47 /** adds sizeA characters from srcA to string dstA; returns dstA */ 48 char* bbs_strncat( char* dstA, const char* srcA, uint32 sizeA );
|
Int32Arr.c | 116 uint32 sizeA ) 118 return sizeA * bbs_SIZEOF16( int32 ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 137 if( ptrA->sizeE == sizeA ) return; 140 bbs_Int32Arr_size( cpA, ptrA, sizeA ); 144 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int32 ) ); 146 ptrA->allocatedSizeE = sizeA; 147 ptrA->sizeE = sizeA; 156 uint32 sizeA ) 158 if( ptrA->allocatedSizeE < sizeA ) [all...] |
UInt32Arr.c | 116 uint32 sizeA ) 118 return sizeA * bbs_SIZEOF16( uint32 ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 137 if( ptrA->sizeE == sizeA ) return; 140 bbs_UInt32Arr_size( cpA, ptrA, sizeA ); 144 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( uint32 ) ); 146 ptrA->allocatedSizeE = sizeA; 147 ptrA->sizeE = sizeA; 156 uint32 sizeA ) 158 if( ptrA->allocatedSizeE < sizeA ) [all...] |
Int16Arr.h | 86 uint32 sizeA ); 93 uint32 sizeA, 104 uint32 sizeA, 112 uint32 sizeA );
|
MemTbl.h | 80 const void* memPtrA, uint32 sizeA ); 92 uint32 sizeA, 99 uint32 sizeA, 106 uint32 sizeA,
|
UInt16Arr.h | 86 uint32 startIndexA, uint32 sizeA ); 91 uint32 sizeA ); 98 uint32 sizeA, 103 struct bbs_UInt16Arr* ptrA, uint32 sizeA );
|
APhArr.c | 116 uint32 sizeA ) 118 return sizeA * bbs_SIZEOF16( struct bbs_APh ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 139 bbs_APhArr_size( cpA, ptrA, sizeA ); 143 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( struct bbs_APh ) ); 145 ptrA->allocatedSizeE = sizeA; 146 ptrA->sizeE = sizeA; 155 uint32 sizeA ) 157 if( ptrA->allocatedSizeE < sizeA ) 164 ptrA->sizeE = sizeA; [all...] |
ComplexArr.c | 116 uint32 sizeA ) 118 return sizeA * bbs_SIZEOF16( struct bbs_Complex ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 139 bbs_ComplexArr_size( cpA, ptrA, sizeA ); 143 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( struct bbs_Complex ) ); 145 ptrA->allocatedSizeE = sizeA; 146 ptrA->sizeE = sizeA; 155 uint32 sizeA ) 157 if( ptrA->allocatedSizeE < sizeA ) 159 bbs_ERROR1( "void bbs_ComplexArr_size( struct bbs_ComplexArr*, uint32 sizeA ):\n [all...] |
Int8Arr.c | 116 uint32 sizeA ) 118 return ( sizeA >> 1 ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 137 if( ptrA->sizeE == sizeA ) return; 140 bbs_Int8Arr_size( cpA, ptrA, sizeA ); 145 uint32 sizeL = sizeA; 152 ptrA->sizeE = sizeA; 161 uint32 sizeA ) 163 if( ptrA->allocatedSizeE < sizeA ) 170 ptrA->sizeE = sizeA; [all...] |
UInt8Arr.c | 116 uint32 sizeA ) 118 return ( sizeA >> 1 ) + bbs_MEM_BLOCK_OVERHD; 133 uint32 sizeA, 137 if( ptrA->sizeE == sizeA ) return; 140 bbs_UInt8Arr_size( cpA, ptrA, sizeA ); 145 uint32 sizeL = sizeA; 152 ptrA->sizeE = sizeA; 161 uint32 sizeA ) 163 if( ptrA->allocatedSizeE < sizeA ) 170 ptrA->sizeE = sizeA; [all...] |
String.c | 50 char* bbs_strncpy( char* dstA, const char* srcA, uint32 sizeA ) 53 for( iL = 0; iL < sizeA; iL++ ) 57 if( iL == sizeA && sizeA > 0 ) dstA[ iL - 1 ] = 0; 74 char* bbs_strncat( char* dstA, const char* srcA, uint32 sizeA ) 77 for( iL = 0; iL < sizeA; iL++ ) 82 for( ; iL < sizeA; iL++ ) 87 if( iL == sizeA && sizeA > 0 ) dstA[ iL - 1 ] = 0;
|
MathSSE2.c | 34 int32 bbs_dotProduct_64SSE2( const int16* vec1A, const int16* vec2A, uint32 sizeA ) 48 alignOffSetL = sizeA % 16; 49 sizeA >>= 4; 51 if( sizeA ) 53 while( sizeA > 0 ) 85 sizeA--; 146 int32 bbs_dotProduct_128SSE2( const int16* vec1A, const int16* vec2A, uint32 sizeA ) 158 alignOffSetL = sizeA % 16; 159 sizeA >>= 4; 161 if( sizeA ) [all...] |
Math.c | 37 extern int32 bbs_dotProduct_128SSE2( const int16* vec1A, const int16* vec2A, uint32 sizeA ); 38 extern int32 bbs_dotProduct_u128SSE2( const int16* vec1A, const int16* vec2A, uint32 sizeA ); 42 int32 bbs_dotProduct_fr71( const int16* vec1A, const int16* vec2A, uint32 sizeA ); 342 * computes a fast dot product using intel MMX, sizeA must be multiple of 16 and >0 344 int32 bbs_dotProduct_intelMMX16( const int16* vec1A, const int16* vec2A, uint32 sizeA ) 354 mov ecx, sizeA 416 * computes a fast dot product using intel MMX, sizeA must be multiple of 16 and >0 418 int32 bbs_dotProduct_intelMMX16( const int16* vec1A, const int16* vec2A, uint32 sizeA ) 479 : "g" ( vec1A ), "g" ( vec2A ), "g" ( sizeA ) 497 int32 bbs_dotProduct_dsp( const int16* vec1A, const int16* vec2A, uint32 sizeA ) [all...] |
DynMemManager.h | 33 * sizeA refers to the size of a memory block in bytes 37 uint32 sizeA ); 99 /** allocates sizeA words of memory */ 103 uint32 sizeA );
|
APhArr.h | 87 uint32 sizeA ); 97 uint32 sizeA, 103 uint32 sizeA );
|
ComplexArr.h | 87 uint32 sizeA ); 94 uint32 sizeA, 100 uint32 sizeA );
|
Int32Arr.h | 86 uint32 sizeA ); 93 uint32 sizeA, 99 uint32 sizeA );
|
Int8Arr.h | 86 uint32 sizeA ); 93 uint32 sizeA, 99 uint32 sizeA );
|
MemSeg.c | 209 void* memPtrA, uint32 sizeA ) 213 memSegL.sizeE = sizeA & 0xFFFFFFFE; /* enforce even size to avoid overflow problems */ 224 void* memPtrA, uint32 sizeA ) 228 memSegL.sizeE = sizeA; 240 uint32 sizeA ) 250 uint32 effSizeL = sizeA + ( sizeA & 1 ) + 2; /* effective block size */ 257 "uint16* bbs_MemSeg_alloc( struct bbs_MemSeg* ptrA, uint32 sizeA ):\n" 258 "Exclusive Memory overflow. Segment size: %i. Requested size: %i", ptrA->sizeE, sizeA ); 265 memPtrL = bbs_DynMemManager_alloc( cpA, ptrA->dynMemManagerPtrE, ptrA, sizeA ); [all...] |