/external/neven/Embedded/common/src/b_BasicEm/ |
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.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...] |
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...] |
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 );
|
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 );
|
Math.h | 119 * Computes the dot product of vec1A with vec2A, both of size sizeA. 120 * (no overflow handling, slow for sizeA < 32 ) 122 int32 bbs_dotProductInt16( const int16* vec1A, const int16* vec2A, uint32 sizeA ); 154 void bbs_vecSqrNorm32( const int32* vecA, uint32 sizeA, uint32* manPtrA, uint32* expPtrA ); 160 void bbs_vecSqrNorm16( const int16* vecA, uint32 sizeA, uint32* manPtrA, uint32* expPtrA ); 163 * overflow-safe when sizeA < 65535 165 uint32 bbs_vecNorm16( const int16* vecA, uint32 sizeA ); 197 uint16 bbs_vecPhase( int16* reA, int16* imA, int16* phaseA, uint16 sizeA );
|
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...] |
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...] |
Int16Arr.c | 120 uint32 sizeA ) 122 return sizeA * bbs_SIZEOF16( int16 ) + bbs_MEM_BLOCK_OVERHD; 137 uint32 sizeA, 141 if( ptrA->sizeE == sizeA ) return; 144 bbs_Int16Arr_size( cpA, ptrA, sizeA ); 148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int16 ) ); 150 ptrA->allocatedSizeE = sizeA; 151 ptrA->sizeE = sizeA; 160 uint32 sizeA, 166 bbs_Int16Arr_create( cpA, allocPtrA, sizeA + ( ( alignBytesA - 1 ) >> 1 ), mspA ) [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;
|
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...] |
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 );
|
Int16Arr.h | 86 uint32 sizeA ); 93 uint32 sizeA, 104 uint32 sizeA, 112 uint32 sizeA );
|
MemTbl.c | 103 const void* memPtrA, uint32 sizeA ) 110 memPtrA, sizeA ) ) 120 memPtrA, sizeA ) ) 158 uint32 sizeA, 161 if( sharedSubSizeA > sizeA ) 163 bbs_ERROR0( "struct bbs_MemTbl bbs_MemTbl_create( void* memPtrA, uint32 sizeA, uint32 sharedSubSizeA ):\n" 164 "sharedSubSizeA > sizeA" ); 170 ptrA->esArrE[ 0 ] = bbs_MemSeg_create( cpA, memPtrA, sizeA - sharedSubSizeA ); 172 ptrA->ssArrE[ 0 ] = bbs_MemSeg_createShared( cpA, ( uint16* ) ( ( int32 ) ( ( uint16* )memPtrA ) + sizeA - sharedSubSizeA ), sharedSubSizeA ); 174 ptrA->ssArrE[ 0 ] = bbs_MemSeg_createShared( cpA, ( uint16* )memPtrA + sizeA - sharedSubSizeA, sharedSubSizeA ) [all...] |
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 );
|
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...] |
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...] |
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...] |
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...] |
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...] |
APhArr.h | 87 uint32 sizeA ); 97 uint32 sizeA, 103 uint32 sizeA );
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_vertex.h | 92 size_t sizea = draw_vinfo_size( a ); local 93 return memcmp( a, b, sizea );
|