/external/neven/Embedded/common/src/b_TensorEm/ |
D | Int32Mat.c | 239 int32 sizeL = matWidthA; in bts_Int32Mat_solve2() local 249 for( iL = 0; iL < sizeL; iL++ ) in bts_Int32Mat_solve2() 254 bbs_memcpy32( outVecA, inVecA, sizeL * bbs_SIZEOF32( int32 ) ); in bts_Int32Mat_solve2() 258 for( kL = 0; kL < sizeL; kL++ ) in bts_Int32Mat_solve2() 267 for( iL = 0; iL < sizeL; iL++ ) in bts_Int32Mat_solve2() 271 int32* rowL = matL + ( iL * sizeL ); in bts_Int32Mat_solve2() 272 for( jL = 0; jL < sizeL; jL++ ) in bts_Int32Mat_solve2() 304 int32* row1PtrL = matL + ( iPivL * sizeL ); in bts_Int32Mat_solve2() 305 int32* row2PtrL = matL + ( jPivL * sizeL ); in bts_Int32Mat_solve2() 306 for( jL = 0; jL < sizeL; jL++ ) in bts_Int32Mat_solve2() [all …]
|
D | Flt16Vec.c | 100 uint16 sizeL = ptrA->arrE.sizeE; in bts_Flt16Vec_avg() local 103 for( iL = 0; iL < sizeL; iL++ ) in bts_Flt16Vec_avg() 107 return sumL / ( int32 )sizeL; in bts_Flt16Vec_avg() 122 uint16 sizeL = ptrA->arrE.sizeE; in bts_Flt16Vec_maxAbs() local 125 for( iL = 0; iL < sizeL; iL++ ) in bts_Flt16Vec_maxAbs() 239 uint32 sizeL = ptrA->arrE.sizeE; in bts_Flt16Vec_maximizeMantisse() local 241 for( iL = 0; iL < sizeL; iL++ ) dstL[ iL ] <<= shlL; in bts_Flt16Vec_maximizeMantisse() 258 uint32 sizeL = ptrA->arrE.sizeE; in bts_Flt16Vec_maximizeAbsValue() local 260 for( iL = 0; iL < sizeL; iL++ ) dstL[ iL ] = ( ( int32 )dstL[ iL ] * fL + 32768 ) >> 16; in bts_Flt16Vec_maximizeAbsValue() 271 uint16 sizeL = ptrA->arrE.sizeE; in bts_Flt16Vec_zeroAverage() local [all …]
|
D | RBFMap2D.c | 156 const uint32 sizeL = srcPtrA->sizeE; in bts_RBFMap2D_compute() local 182 bts_Cluster2D_size( cpA, &ptrA->rbfCoeffClusterE, sizeL ); in bts_RBFMap2D_compute() 185 for( iL =0; iL < sizeL; iL++ ) in bts_RBFMap2D_compute() 195 if( sizeL < 3 ) in bts_RBFMap2D_compute() 203 ptrA->matE.widthE = sizeL; in bts_RBFMap2D_compute() 204 ptrA->tempMatE.widthE = sizeL; in bts_RBFMap2D_compute() 217 for( iL = 0; iL < sizeL; iL++ ) in bts_RBFMap2D_compute() 220 int32* ptrL = ptrA->matE.arrE.arrPtrE + iL * sizeL; in bts_RBFMap2D_compute() 248 for( iL = 0; iL < sizeL; iL++ ) in bts_RBFMap2D_compute() 252 for( jL = iL + 1; jL < sizeL; jL++ ) in bts_RBFMap2D_compute() [all …]
|
D | Cluster2D.c | 471 uint32 sizeL; in bts_Cluster2D_memRead() local 476 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bts_Cluster2D_memRead() 479 if( ptrA->allocatedSizeE < sizeL ) in bts_Cluster2D_memRead() 481 bts_Cluster2D_create( cpA, ptrA, sizeL, mspA ); in bts_Cluster2D_memRead() 485 bts_Cluster2D_size( cpA, ptrA, sizeL ); in bts_Cluster2D_memRead() 517 uint32 sizeL = srcPtrA->sizeE; in bts_Cluster2D_alt() local 529 if( sizeL <= 2 ) in bts_Cluster2D_alt() 537 if( sizeL <= 1 ) in bts_Cluster2D_alt() 549 if( sizeL == 0 || altTypeL == bts_ALT_IDENTITY ) in bts_Cluster2D_alt() 575 int32 iL = sizeL; in bts_Cluster2D_alt() [all …]
|
D | SubVecMap.c | 186 int32 sizeL = ( ptrL->sizeE != -1 ) ? ptrL->sizeE : ( int32 )inVecPtrA->arrE.sizeE - ptrL->offsetE; in bts_SubVecMap_map() local 187 if( sizeL < 0 ) sizeL = 0; in bts_SubVecMap_map() 189 if( ( ptrL->offsetE + sizeL ) > ( int32 )inVecPtrA->arrE.sizeE ) in bts_SubVecMap_map() 195 if( outVecPtrA->arrE.allocatedSizeE < ( uint32 )sizeL ) in bts_SubVecMap_map() 201 bts_Flt16Vec_size( cpA, outVecPtrA, sizeL ); in bts_SubVecMap_map() 203 bbs_memcpy16( outVecPtrA->arrE.arrPtrE, inVecPtrA->arrE.arrPtrE + ptrL->offsetE, sizeL ); in bts_SubVecMap_map()
|
D | CompactMat.c | 50 uint32 sizeL = *rowPtrL++; in bts_CompactMat_fltDotPrdRow() local 69 for( iL = sizeL; iL > 0; iL-- ) sumL += ( ( int32 )*rowPtrL++ * ( int32 )*inPtrL++ ); in bts_CompactMat_fltDotPrdRow() 78 for( iL = sizeL; iL >= 8; iL -= 8 ) in bts_CompactMat_fltDotPrdRow() 108 for( iL = sizeL; iL >= 8; iL -= 8 ) in bts_CompactMat_fltDotPrdRow() 141 for( iL = sizeL; iL >= 16; iL -= 16 ) in bts_CompactMat_fltDotPrdRow() 189 for( iL = sizeL; iL >= 4; iL -= 4 ) in bts_CompactMat_fltDotPrdRow() 223 for( iL = 0; iL < sizeL; iL++ ) in bts_CompactMat_fltDotPrdRow() 243 …for( iL = sizeL; iL > 0; iL-- ) sumL += ( ( ( int32 )*rowPtrL++ * ( int32 )*inPtrL++ ) + roundL ) … in bts_CompactMat_fltDotPrdRow() 249 for( iL = sizeL; iL >= 2; iL -= 2 ) in bts_CompactMat_fltDotPrdRow() 266 for( iL = sizeL; iL >= 4; iL -= 4 ) in bts_CompactMat_fltDotPrdRow() [all …]
|
D | CompactAlt.c | 188 uint32 sizeL = ptrA->matE.heightE; in bts_CompactAlt_map() local 201 for( iL = 0; iL < sizeL; iL++ ) outVecA[ iL ] = ( ( int32 )outVecA[ iL ] + vecL[ iL ] + 1 ) >> 1; in bts_CompactAlt_map() 208 …for( iL = 0; iL < sizeL; iL++ ) outVecA[ iL ] = ( ( int32 )outVecA[ iL ] + ( ( ( int32 )vecL[ iL ]… in bts_CompactAlt_map() 215 …for( iL = 0; iL < sizeL; iL++ ) outVecA[ iL ] = ( ( ( ( int32 )outVecA[ iL ] + addL ) >> shrL ) + … in bts_CompactAlt_map()
|
D | Cluster3D.c | 431 uint32 sizeL; in bts_Cluster3D_memRead() local 436 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bts_Cluster3D_memRead() 439 if( ptrA->allocatedSizeE < sizeL ) in bts_Cluster3D_memRead() 441 bts_Cluster3D_create( cpA, ptrA, sizeL, mspA ); in bts_Cluster3D_memRead() 445 bts_Cluster3D_size( cpA, ptrA, sizeL ); in bts_Cluster3D_memRead()
|
/external/neven/Embedded/common/src/b_BasicEm/ |
D | MemSeg.c | 128 uint32 sizeL = *( uint32* )( ptrA->memPtrE + indexL ); in bbs_MemSeg_usedSize() local 129 indexL += ( sizeL & 0xFFFFFFFE ); in bbs_MemSeg_usedSize() 130 if( ( sizeL & 1 ) == 0 ) in bbs_MemSeg_usedSize() 132 countL += sizeL - 2; in bbs_MemSeg_usedSize() 156 uint32 sizeL = *( uint32* )( ptrA->memPtrE + indexL ); in bbs_MemSeg_blocks() local 157 indexL += ( sizeL & 0xFFFFFFFE ); in bbs_MemSeg_blocks() 175 uint32 sizeL = *( uint32* )( ptrA->memPtrE + indexL ); in bbs_MemSeg_usedBlocks() local 176 indexL += ( sizeL & 0xFFFFFFFE ); in bbs_MemSeg_usedBlocks() 177 countL += ( ( sizeL & 1 ) == 0 ); in bbs_MemSeg_usedBlocks() 330 uint32 indexL, sizeL; in bbs_MemSeg_free() local [all …]
|
D | Int8Arr.c | 145 uint32 sizeL = sizeA; in bbs_Int8Arr_create() local 146 if( ( sizeL & 1 ) != 0 ) sizeL++; in bbs_Int8Arr_create() 148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeL >> 1 ); in bbs_Int8Arr_create() 150 ptrA->allocatedSizeE = sizeL; in bbs_Int8Arr_create() 211 uint32 memSizeL, sizeL; in bbs_Int8Arr_memRead() local 214 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_Int8Arr_memRead() 215 bbs_Int8Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_Int8Arr_memRead()
|
D | UInt8Arr.c | 145 uint32 sizeL = sizeA; in bbs_UInt8Arr_create() local 146 if( ( sizeL & 1 ) != 0 ) sizeL++; in bbs_UInt8Arr_create() 148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeL >> 1 ); in bbs_UInt8Arr_create() 150 ptrA->allocatedSizeE = sizeL; in bbs_UInt8Arr_create() 210 uint32 memSizeL, sizeL; in bbs_UInt8Arr_memRead() local 213 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_UInt8Arr_memRead() 214 bbs_UInt8Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_UInt8Arr_memRead()
|
D | MemTbl.c | 340 uint32 sizeL = bbs_MemSeg_availableSize( cpA, ptrA->espArrE[ iL ] ); in bbs_MemTbl_largestSegPtr() local 341 if( sizeL > maxSizeL ) in bbs_MemTbl_largestSegPtr() 343 maxSizeL = sizeL; in bbs_MemTbl_largestSegPtr() 413 uint32 sizeL = bbs_MemSeg_availableSize( cpA, &ptrA->ssArrE[ iL ] ); in bbs_MemTbl_largestSharedSegPtr() local 414 if( sizeL > maxSizeL ) in bbs_MemTbl_largestSharedSegPtr() 416 maxSizeL = sizeL; in bbs_MemTbl_largestSharedSegPtr()
|
D | ComplexArr.c | 205 uint32 memSizeL, sizeL; in bbs_ComplexArr_memRead() local 208 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_ComplexArr_memRead() 209 bbs_ComplexArr_create( cpA, ptrA, sizeL, mspA ); in bbs_ComplexArr_memRead()
|
D | APhArr.c | 204 uint32 memSizeL, sizeL; in bbs_APhArr_memRead() local 207 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_APhArr_memRead() 208 bbs_APhArr_create( cpA, ptrA, sizeL, mspA ); in bbs_APhArr_memRead()
|
D | UInt32Arr.c | 205 uint32 memSizeL, sizeL; in bbs_UInt32Arr_memRead() local 208 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_UInt32Arr_memRead() 209 bbs_UInt32Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_UInt32Arr_memRead()
|
D | Int32Arr.c | 205 uint32 memSizeL, sizeL; in bbs_Int32Arr_memRead() local 208 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_Int32Arr_memRead() 209 bbs_Int32Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_Int32Arr_memRead()
|
D | String.c | 146 uint32 sizeL; in bbs_snprintf() local 149 sizeL = bbs_vsnprintf( bufA, bufSizeA, formatA, argsL ); in bbs_snprintf() 151 return sizeL; in bbs_snprintf()
|
D | UInt16Arr.c | 221 uint32 memSizeL, sizeL; in bbs_UInt16Arr_memRead() local 224 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_UInt16Arr_memRead() 225 bbs_UInt16Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_UInt16Arr_memRead()
|
D | DynMemManager.c | 89 uint32 sizeL = 0; in bbs_DynMemManager_allocatedSize() local 93 sizeL += ( ( uint32* )pL )[ 2 ]; in bbs_DynMemManager_allocatedSize() 96 return sizeL; in bbs_DynMemManager_allocatedSize()
|
D | Int16Arr.c | 249 uint32 memSizeL, sizeL; in bbs_Int16Arr_memRead() local 252 memPtrA += bbs_memRead32( &sizeL, memPtrA ); in bbs_Int16Arr_memRead() 253 bbs_Int16Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_Int16Arr_memRead()
|
/external/neven/Embedded/common/src/b_ImageEm/ |
D | UInt16BytePyrImage.c | 145 uint32 sizeL = 0; in bim_UInt16BytePyrImage_heapSize() local 149 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt16BytePyrImage_heapSize() 151 return bbs_UInt16Arr_heapSize( cpA, &ptrA->arrE, sizeL ); in bim_UInt16BytePyrImage_heapSize() 171 uint32 sizeL = 0; in bim_UInt16BytePyrImage_create() local 205 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt16BytePyrImage_create() 207 bbs_UInt16Arr_create( cpA, &ptrA->arrE, sizeL, mspA ); in bim_UInt16BytePyrImage_create() 219 uint32 sizeL = 0; in bim_UInt16BytePyrImage_size() local 245 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt16BytePyrImage_size() 248 if( sizeL > ptrA->arrE.allocatedSizeE ) in bim_UInt16BytePyrImage_size() 255 bbs_UInt16Arr_size( cpA, &ptrA->arrE, sizeL ); in bim_UInt16BytePyrImage_size()
|
D | UInt8PyramidalImage.c | 146 uint32 sizeL = 0; in bim_UInt8PyramidalImage_heapSize() local 150 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt8PyramidalImage_heapSize() 152 return bbs_UInt8Arr_heapSize( cpA, &ptrA->arrE, sizeL ); in bim_UInt8PyramidalImage_heapSize() 172 uint32 sizeL = 0; in bim_UInt8PyramidalImage_create() local 177 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt8PyramidalImage_create() 208 bbs_UInt8Arr_create( cpA, &ptrA->arrE, sizeL, mspA ); in bim_UInt8PyramidalImage_create() 220 uint32 sizeL = 0; in bim_UInt8PyramidalImage_size() local 246 sizeL += ( baseSizeL >> ( iL * 2 ) ); in bim_UInt8PyramidalImage_size() 249 if( sizeL > ptrA->arrE.allocatedSizeE ) in bim_UInt8PyramidalImage_size() 256 bbs_UInt8Arr_size( cpA, &ptrA->arrE, sizeL ); in bim_UInt8PyramidalImage_size()
|
/external/neven/Embedded/common/src/b_BitFeatureEm/ |
D | Sequence.c | 237 int32 sizeL = ptrL->sizeE; in bbf_Sequence_activity() local 240 int32 actSumL = ( -sizeL ) << 20; in bbf_Sequence_activity() 242 if( sizeL == 0 ) return 0x10000000; /* 1.0 in 4.28 format */ in bbf_Sequence_activity() 251 if( actL < 0 ) return ( actSumL / sizeL ) << 7; /* return 4.28 */ in bbf_Sequence_activity() 263 if( actL < 0 ) return ( actSumL / sizeL ) << 7; /* return 4.28 */ in bbf_Sequence_activity() 267 actSumL += sizeL << 20; in bbf_Sequence_activity() 270 return ( actSumL / sizeL ) << 7; /* return 4.28 */ in bbf_Sequence_activity()
|
D | Scanner.c | 859 uint32 sizeL = ptrA->bitImageE.widthE; in bbf_Scanner_next() local 865 uint32* srcL = ( uint32* )ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL; in bbf_Scanner_next() 869 for( iL = 0; iL < sizeL; iL++ ) dstL[ iL ] = ( dstL[ iL ] >> 1 ) | ( srcL[ iL ] << shlL ); in bbf_Scanner_next() 873 bbs_memcpy32( dstL, srcL, sizeL ); in bbf_Scanner_next() 878 for( iL = 0; iL < sizeL; iL++ ) dstL[ iL ] >>= 1; in bbf_Scanner_next() 910 uint32 sizeL; in bbf_Scanner_goToXY() local 918 sizeL = ptrA->bitImageE.widthE; in bbf_Scanner_goToXY() 923 uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL; in bbf_Scanner_goToXY() 927 for( iL = 0; iL < sizeL; iL++ ) dstL[ iL ] = ( dstL[ iL ] >> 1 ) | ( srcL[ iL ] << shlL ); in bbf_Scanner_goToXY() 931 bbs_memcpy32( dstL, srcL, sizeL ); in bbf_Scanner_goToXY() [all …]
|
D | LocalScanDetector.c | 487 uint32 sizeL = ptrA->scanClusterE.sizeE; in bbf_LocalScanDetector_process() local 489 if( sizeL > bpi_LOCAL_SCAN_DETECTOR_MAX_CLUSTER_SIZE ) in bbf_LocalScanDetector_process() 578 bts_Cluster2D_size( cpA, dstClPtrL, sizeL ); in bbf_LocalScanDetector_process() 588 bbs_memset32( actArrL, 0x80000000, sizeL ); in bbf_LocalScanDetector_process() 592 for( iL = 0; iL < sizeL; iL++ ) in bbf_LocalScanDetector_process() 644 for( iL = 0; iL < sizeL; iL++ ) in bbf_LocalScanDetector_process() 660 for( iL = 0; iL < sizeL; iL++ ) idxArrL[ iL ] = iL; in bbf_LocalScanDetector_process() 665 for( iL = 1; iL < sizeL; iL++ ) in bbf_LocalScanDetector_process() 678 for( iL = ( sizeL >> 1 ); iL < sizeL && actArrL[ idxArrL[ iL ] ] >= 0; iL++ ) in bbf_LocalScanDetector_process() 703 for( iL = 0; iL < sizeL; iL++ ) in bbf_LocalScanDetector_process() [all …]
|