/external/eigen/bench/btl/actions/ |
D | action_hessenberg.hh | 37 Action_hessenberg( int size ):_size(size) in Action_hessenberg() 42 init_matrix<pseudo_random>(X_stl,_size); in Action_hessenberg() 44 init_matrix<null_function>(C_stl,_size); in Action_hessenberg() 45 init_matrix<null_function>(resu_stl,_size); in Action_hessenberg() 53 for (int j=0; j<_size-2; ++j) in Action_hessenberg() 55 double r = std::max(0,_size-j-1); in Action_hessenberg() 56 double b = std::max(0,_size-j-2); in Action_hessenberg() 57 _cost += 6 + 3*b + r*r*4 + r*_size*4; in Action_hessenberg() 76 Interface::free_matrix(X_ref,_size); in ~Action_hessenberg() 77 Interface::free_matrix(X,_size); in ~Action_hessenberg() [all …]
|
D | action_matrix_matrix_product.hh | 38 Action_matrix_matrix_product( int size ):_size(size) in Action_matrix_matrix_product() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_matrix_matrix_product() 45 init_matrix<pseudo_random>(B_stl,_size); in Action_matrix_matrix_product() 46 init_matrix<null_function>(X_stl,_size); in Action_matrix_matrix_product() 47 init_matrix<null_function>(resu_stl,_size); in Action_matrix_matrix_product() 77 Interface::free_matrix(A,_size); in ~Action_matrix_matrix_product() 78 Interface::free_matrix(B,_size); in ~Action_matrix_matrix_product() 79 Interface::free_matrix(X,_size); in ~Action_matrix_matrix_product() 81 Interface::free_matrix(A_ref,_size); in ~Action_matrix_matrix_product() 82 Interface::free_matrix(B_ref,_size); in ~Action_matrix_matrix_product() [all …]
|
D | action_trisolve_matrix.hh | 38 Action_trisolve_matrix( int size ):_size(size) in Action_trisolve_matrix() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_trisolve_matrix() 45 init_matrix<pseudo_random>(B_stl,_size); in Action_trisolve_matrix() 46 init_matrix<null_function>(X_stl,_size); in Action_trisolve_matrix() 47 init_matrix<null_function>(resu_stl,_size); in Action_trisolve_matrix() 49 for (int j=0; j<_size; ++j) in Action_trisolve_matrix() 67 for (int j=0; j<_size; ++j) in Action_trisolve_matrix() 71 _cost *= _size; in Action_trisolve_matrix() 90 Interface::free_matrix(A,_size); in ~Action_trisolve_matrix() 91 Interface::free_matrix(B,_size); in ~Action_trisolve_matrix() [all …]
|
D | action_trmm.hh | 38 Action_trmm( int size ):_size(size) in Action_trmm() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_trmm() 45 init_matrix<pseudo_random>(B_stl,_size); in Action_trmm() 46 init_matrix<null_function>(X_stl,_size); in Action_trmm() 47 init_matrix<null_function>(resu_stl,_size); in Action_trmm() 49 for (int j=0; j<_size; ++j) in Action_trmm() 67 for (int j=0; j<_size; ++j) in Action_trmm() 71 _cost *= _size; in Action_trmm() 90 Interface::free_matrix(A,_size); in ~Action_trmm() 91 Interface::free_matrix(B,_size); in ~Action_trmm() [all …]
|
D | action_ata_product.hh | 38 Action_ata_product( int size ):_size(size) in Action_ata_product() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_ata_product() 45 init_matrix<null_function>(X_stl,_size); in Action_ata_product() 46 init_matrix<null_function>(resu_stl,_size); in Action_ata_product() 74 Interface::free_matrix(A,_size); in ~Action_ata_product() 75 Interface::free_matrix(X,_size); in ~Action_ata_product() 77 Interface::free_matrix(A_ref,_size); in ~Action_ata_product() 78 Interface::free_matrix(X_ref,_size); in ~Action_ata_product() 90 return 2.0*_size*_size*_size; in nb_op_base() 95 Interface::copy_matrix(A_ref,A,_size); in initialize() [all …]
|
D | action_aat_product.hh | 38 Action_aat_product( int size ):_size(size) in Action_aat_product() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_aat_product() 45 init_matrix<null_function>(X_stl,_size); in Action_aat_product() 46 init_matrix<null_function>(resu_stl,_size); in Action_aat_product() 74 Interface::free_matrix(A,_size); in ~Action_aat_product() 75 Interface::free_matrix(X,_size); in ~Action_aat_product() 77 Interface::free_matrix(A_ref,_size); in ~Action_aat_product() 78 Interface::free_matrix(X_ref,_size); in ~Action_aat_product() 90 return double(_size)*double(_size)*double(_size); in nb_op_base() 95 Interface::copy_matrix(A_ref,A,_size); in initialize() [all …]
|
D | action_atv_product.hh | 36 Action_atv_product( int size ) : _size(size) in Action_atv_product() 42 init_matrix<pseudo_random>(A_stl,_size); in Action_atv_product() 43 init_vector<pseudo_random>(B_stl,_size); in Action_atv_product() 44 init_vector<null_function>(X_stl,_size); in Action_atv_product() 45 init_vector<null_function>(resu_stl,_size); in Action_atv_product() 69 Interface::free_matrix(A,_size); in ~Action_atv_product() 73 Interface::free_matrix(A_ref,_size); in ~Action_atv_product() 80 double nb_op_base( void ) { return 2.0*_size*_size; } in nb_op_base() 83 Interface::copy_matrix(A_ref,A,_size); in initialize() 84 Interface::copy_vector(B_ref,B,_size); in initialize() [all …]
|
D | action_symv.hh | 38 BTL_DONT_INLINE Action_symv( int size ):_size(size) in Action_symv() 43 init_matrix_symm<pseudo_random>(A_stl,_size); in Action_symv() 44 init_vector<pseudo_random>(B_stl,_size); in Action_symv() 45 init_vector<null_function>(X_stl,_size); in Action_symv() 46 init_vector<null_function>(resu_stl,_size); in Action_symv() 68 Interface::free_matrix(A,_size); in ~Action_symv() 71 Interface::free_matrix(A_ref,_size); in ~Action_symv() 84 return 2.0*_size*_size; in nb_op_base() 89 Interface::copy_matrix(A_ref,A,_size); in initialize() 90 Interface::copy_vector(B_ref,B,_size); in initialize() [all …]
|
D | action_syr2.hh | 38 BTL_DONT_INLINE Action_syr2( int size ):_size(size) in Action_syr2() 42 init_matrix<pseudo_random>(A_stl,_size); in Action_syr2() 43 init_vector<pseudo_random>(B_stl,_size); in Action_syr2() 44 init_vector<pseudo_random>(X_stl,_size); in Action_syr2() 45 init_vector<null_function>(resu_stl,_size); in Action_syr2() 65 Interface::free_matrix(A,_size); in ~Action_syr2() 68 Interface::free_matrix(A_ref,_size); in ~Action_syr2() 81 return 2.0*_size*_size; in nb_op_base() 85 Interface::copy_matrix(A_ref,A,_size); in initialize() 86 Interface::copy_vector(B_ref,B,_size); in initialize() [all …]
|
D | action_matrix_vector_product.hh | 38 BTL_DONT_INLINE Action_matrix_vector_product( int size ):_size(size) in Action_matrix_vector_product() 44 init_matrix<pseudo_random>(A_stl,_size); in Action_matrix_vector_product() 45 init_vector<pseudo_random>(B_stl,_size); in Action_matrix_vector_product() 46 init_vector<null_function>(X_stl,_size); in Action_matrix_vector_product() 47 init_vector<null_function>(resu_stl,_size); in Action_matrix_vector_product() 76 Interface::free_matrix(A,_size); in ~Action_matrix_vector_product() 80 Interface::free_matrix(A_ref,_size); in ~Action_matrix_vector_product() 94 return 2.0*_size*_size; in nb_op_base() 99 Interface::copy_matrix(A_ref,A,_size); in initialize() 100 Interface::copy_vector(B_ref,B,_size); in initialize() [all …]
|
D | action_ger.hh | 32 BTL_DONT_INLINE Action_ger( int size ):_size(size) in Action_ger() 38 init_matrix<pseudo_random>(A_stl,_size); in Action_ger() 39 init_vector<pseudo_random>(B_stl,_size); in Action_ger() 40 init_vector<pseudo_random>(X_stl,_size); in Action_ger() 41 init_vector<null_function>(resu_stl,_size); in Action_ger() 62 Interface::free_matrix(A,_size); in ~Action_ger() 65 Interface::free_matrix(A_ref,_size); in ~Action_ger() 78 return 2.0*_size*_size; in nb_op_base() 82 Interface::copy_matrix(A_ref,A,_size); in initialize() 83 Interface::copy_vector(B_ref,B,_size); in initialize() [all …]
|
D | action_cholesky.hh | 37 Action_cholesky( int size ):_size(size) in Action_cholesky() 42 init_matrix_symm<pseudo_random>(X_stl,_size); in Action_cholesky() 43 init_matrix<null_function>(C_stl,_size); in Action_cholesky() 46 for (int i=0; i<_size; ++i) in Action_cholesky() 55 for (int j=0; j<_size; ++j) in Action_cholesky() 57 double r = std::max(_size - j -1,0); in Action_cholesky() 77 Interface::free_matrix(X_ref,_size); in ~Action_cholesky() 78 Interface::free_matrix(X,_size); in ~Action_cholesky() 79 Interface::free_matrix(C,_size); in ~Action_cholesky() 94 Interface::copy_matrix(X_ref,X,_size); in initialize() [all …]
|
D | action_trisolve.hh | 37 Action_trisolve( int size ):_size(size) in Action_trisolve() 42 init_matrix<pseudo_random>(L_stl,_size); in Action_trisolve() 43 init_vector<pseudo_random>(B_stl,_size); in Action_trisolve() 44 init_vector<null_function>(X_stl,_size); in Action_trisolve() 45 for (int j=0; j<_size; ++j) in Action_trisolve() 52 init_vector<null_function>(resu_stl,_size); in Action_trisolve() 60 for (int j=0; j<_size; ++j) in Action_trisolve() 81 Interface::free_matrix(L,_size); in ~Action_trisolve() 102 Interface::trisolve_lower(L,B,X,_size); in calculate() 106 if (_size>128) return; in check_result() [all …]
|
D | action_partial_lu.hh | 37 Action_partial_lu( int size ):_size(size) in Action_partial_lu() 42 init_matrix<pseudo_random>(X_stl,_size); in Action_partial_lu() 43 init_matrix<null_function>(C_stl,_size); in Action_partial_lu() 46 for (int i=0; i<_size; ++i) in Action_partial_lu() 72 Interface::free_matrix(X_ref,_size); in ~Action_partial_lu() 73 Interface::free_matrix(X,_size); in ~Action_partial_lu() 74 Interface::free_matrix(C,_size); in ~Action_partial_lu() 89 Interface::copy_matrix(X_ref,X,_size); in initialize() 93 Interface::partial_lu_decomp(X,C,_size); in calculate() 121 int _size; member in Action_partial_lu
|
D | action_lu_decomp.hh | 37 Action_lu_decomp( int size ):_size(size) in Action_lu_decomp() 42 init_matrix<pseudo_random>(X_stl,_size); in Action_lu_decomp() 44 init_matrix<null_function>(C_stl,_size); in Action_lu_decomp() 45 init_matrix<null_function>(resu_stl,_size); in Action_lu_decomp() 70 Interface::free_matrix(X_ref,_size); in ~Action_lu_decomp() 71 Interface::free_matrix(X,_size); in ~Action_lu_decomp() 72 Interface::free_matrix(C,_size); in ~Action_lu_decomp() 87 Interface::copy_matrix(X_ref,X,_size); in initialize() 91 Interface::lu_decomp(X,C,_size); in calculate() 120 int _size; member in Action_lu_decomp
|
D | action_axpy.hh | 38 Action_axpy( int size ):_coef(1.0),_size(size) in Action_axpy() 44 init_vector<pseudo_random>(X_stl,_size); in Action_axpy() 45 init_vector<pseudo_random>(Y_stl,_size); in Action_axpy() 46 init_vector<null_function>(resu_stl,_size); in Action_axpy() 90 return 2.0*_size; in nb_op_base() 94 Interface::copy_vector(X_ref,X,_size); in initialize() 95 Interface::copy_vector(Y_ref,Y,_size); in initialize() 100 Interface::axpy(_coef,X,Y,_size); in calculate() 105 if (_size>128) return; in check_result() 110 STL_interface<typename Interface::real_type>::axpy(_coef,X_stl,Y_stl,_size); in check_result() [all …]
|
D | action_axpby.hh | 36 Action_axpby( int size ):_alpha(0.5),_beta(0.95),_size(size) in Action_axpby() 41 init_vector<pseudo_random>(X_stl,_size); in Action_axpby() 42 init_vector<pseudo_random>(Y_stl,_size); in Action_axpby() 43 init_vector<null_function>(resu_stl,_size); in Action_axpby() 79 return 3.0*_size; in nb_op_base() 83 Interface::copy_vector(X_ref,X,_size); in initialize() 84 Interface::copy_vector(Y_ref,Y,_size); in initialize() 89 Interface::axpby(_alpha,X,_beta,Y,_size); in calculate() 94 if (_size>128) return; in check_result() 98 STL_interface<typename Interface::real_type>::axpby(_alpha,X_stl,_beta,Y_stl,_size); in check_result() [all …]
|
/external/lzma/CPP/Common/ |
D | MyBuffer.h | 14 size_t _size; variable 24 _size = 0; in Free() 27 CBuffer(): _items(0), _size(0) {}; in CBuffer() 28 CBuffer(size_t size): _items(0), _size(0) { _items = new T[size]; _size = size; } in CBuffer() 29 CBuffer(const CBuffer &buffer): _items(0), _size(0) in CBuffer() 31 size_t size = buffer._size; in CBuffer() 36 _size = size; in CBuffer() 44 size_t Size() const { return _size; } in Size() 48 if (size != _size) in Alloc() 54 _size = size; in Alloc() [all …]
|
D | MyVector.h | 12 unsigned _size; variable 17 memmove(_items + destIndex, _items + srcIndex, (size_t)(_size - srcIndex) * sizeof(T)); in MoveItems() 22 if (_size == _capacity) in ReserveOnePosition() 28 if (_size != 0) in ReserveOnePosition() 29 memcpy(p, _items, (size_t)_size * sizeof(T)); in ReserveOnePosition() 38 CRecordVector(): _items(0), _size(0), _capacity(0) {} in CRecordVector() 40 CRecordVector(const CRecordVector &v): _items(0), _size(0), _capacity(0) in CRecordVector() 46 _size = size; in CRecordVector() 52 unsigned Size() const { return _size; } in Size() 53 bool IsEmpty() const { return _size == 0; } in IsEmpty() [all …]
|
D | MyBuffer2.h | 13 size_t _size; variable 18 CMidBuffer(): _data(NULL), _size(0) {}; in CLASS_NO_COPY() 21 void Free() { ::MidFree(_data); _data = NULL; _size = 0; } in Free() 26 size_t Size() const { return _size; } in Size() 30 if (!_data || size > _size) in AllocAtLeast() 36 _size = 0; in AllocAtLeast() 40 _size = size; in AllocAtLeast()
|
D | DynamicBuffer.h | 9 size_t _size; variable 17 size_t delta = _size >= 64 ? _size : 64; in Grow() 20 size_t newCap = _size + delta; in Grow() 23 newCap = _size + size; in Grow() 33 _size = newCap; in Grow() 37 CDynamicBuffer(): _items(0), _size(0), _pos(0) {} in CDynamicBuffer() 44 size_t rem = _size - _pos; in GetCurPtrAndGrow()
|
/external/libdrm/nouveau/nvif/ |
D | unpack.h | 5 void **_data = (d); __u32 *_size = (s); int _ret = (r); \ 6 if (_ret == -ENOSYS && *_size == sizeof(m)) { \ 8 *_size = _ret = 0; \ 14 void **_data = (d); __u32 *_size = (s); \ 16 if (_ret == -ENOSYS && *_size >= sizeof(m) && \ 19 *_size = *_size - sizeof(m); \ 21 _ret = *_size ? -E2BIG : 0; \ 23 *_size = 0; \
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_memory.h | 48 #define MALLOC(_size) os_malloc(_size) argument 50 #define CALLOC(_count, _size) os_calloc(_count, _size) argument 54 #define REALLOC(_ptr, _old_size, _size) os_realloc(_ptr, _old_size, _size) argument 63 #define align_malloc(_size, _alignment) os_malloc_aligned(_size, _alignment) argument
|
/external/mesa3d/src/util/ |
D | u_memory.h | 46 #define MALLOC(_size) os_malloc(_size) argument 48 #define CALLOC(_count, _size) os_calloc(_count, _size) argument 52 #define REALLOC(_ptr, _old_size, _size) os_realloc(_ptr, _old_size, _size) argument 61 #define align_malloc(_size, _alignment) os_malloc_aligned(_size, _alignment) argument
|
/external/lzma/CPP/7zip/Common/ |
D | StreamObjects.h | 41 size_t _size; variable 47 _size = size; 83 size_t _size; variable 85 CDynBufSeqOutStream(): _size(0) {} in CDynBufSeqOutStream() 86 void Init() { _size = 0; } in Init() 87 size_t GetSize() const { return _size; } in GetSize() 91 void UpdateSize(size_t addSize) { _size += addSize; } in UpdateSize() 102 size_t _size; variable 109 _size = size; in Init() 122 UInt64 _size; variable [all …]
|