/dports/audio/faust/faust-2.37.3/architecture/AU/PublicUtility/ |
H A D | CABufferList.cpp | 50 void CABufferList::AllocateBuffers(UInt32 nBytes) in AllocateBuffers() argument 52 if (nBytes <= GetNumBytes()) return; in AllocateBuffers() 57 nBytes = ((nBytes + 15) & ~15) | 16; in AllocateBuffers() 67 buf->mDataByteSize = nBytes; in AllocateBuffers() 69 p += nBytes; in AllocateBuffers() 73 mBufferCapacity = nBytes; in AllocateBuffers() 81 if (nBytes <= GetNumBytes()) { in AllocateBuffersAndCopyFrom() 91 nBytes = ((nBytes + 15) & ~15) | 16; in AllocateBuffersAndCopyFrom() 103 buf->mDataByteSize = nBytes; in AllocateBuffersAndCopyFrom() 107 p += nBytes; in AllocateBuffersAndCopyFrom() [all …]
|
/dports/audio/ardour6/Ardour-6.8.0/libs/appleutility/CoreAudio/PublicUtility/ |
H A D | CABufferList.cpp | 50 void CABufferList::AllocateBuffers(UInt32 nBytes) in AllocateBuffers() argument 52 if (nBytes <= GetNumBytes()) return; in AllocateBuffers() 57 nBytes = ((nBytes + 15) & ~15) | 16; in AllocateBuffers() 67 buf->mDataByteSize = nBytes; in AllocateBuffers() 69 p += nBytes; in AllocateBuffers() 73 mBufferCapacity = nBytes; in AllocateBuffers() 81 if (nBytes <= GetNumBytes()) { in AllocateBuffersAndCopyFrom() 91 nBytes = ((nBytes + 15) & ~15) | 16; in AllocateBuffersAndCopyFrom() 103 buf->mDataByteSize = nBytes; in AllocateBuffersAndCopyFrom() 107 p += nBytes; in AllocateBuffersAndCopyFrom() [all …]
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/oox/source/helper/ |
H A D | binaryoutputstream.cxx | 83 void BinaryXOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t nAtomSize ) in writeMemory() argument 85 if( !(mxOutStrm.is() && (nBytes > 0)) ) in writeMemory() 90 while( nBytes > 0 ) in writeMemory() 92 sal_Int32 nWriteSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, nBufferSize ); in writeMemory() 97 nBytes -= nWriteSize; in writeMemory() 145 void SequenceOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) in writeMemory() argument 147 if( mpData && (nBytes > 0) ) in writeMemory() 149 if( mpData->getLength() - mnPos < nBytes ) in writeMemory() 150 mpData->realloc( mnPos + nBytes ); in writeMemory() 151 memcpy( mpData->getArray() + mnPos, pMem, static_cast< size_t >( nBytes ) ); in writeMemory() [all …]
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/oox/source/helper/ |
H A D | binaryoutputstream.cxx | 85 void BinaryXOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t nAtomSize ) in writeMemory() argument 87 if( mxOutStrm.is() && (nBytes > 0) ) in writeMemory() 91 while( nBytes > 0 ) in writeMemory() 93 … sal_Int32 nWriteSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, nBufferSize ); in writeMemory() 98 nBytes -= nWriteSize; in writeMemory() 147 void SequenceOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) in writeMemory() argument 149 if( mpData && (nBytes > 0) ) in writeMemory() 151 if( mpData->getLength() - mnPos < nBytes ) in writeMemory() 152 mpData->realloc( mnPos + nBytes ); in writeMemory() 153 memcpy( mpData->getArray() + mnPos, pMem, static_cast< size_t >( nBytes ) ); in writeMemory() [all …]
|
/dports/science/jdftx/jdftx-1.6.0/jdftx/core/ |
H A D | ManagedMemory.cpp | 72 usageMap[category] += nBytes; in manager() 73 usageTotal += nBytes; in manager() 80 usageMap[category] -= nBytes; in manager() 81 usageTotal -= nBytes; in manager() 269 { if(!nBytes) return; //nothing to free in memFree() 282 nBytes = 0; in memFree() 288 { if(category==this->category && nBytes==this->nBytes && onGpu==this->onGpu) return; //already in r… in memInit() 291 this->nBytes = nBytes; in memInit() 296 c = MemPool::GPU().alloc(nBytes); in memInit() 301 else c = MemPool::CPU().alloc(nBytes); in memInit() [all …]
|
/dports/net/opal/opal-3.10.10/plugins/audio/SILK/SILK_SDK/src/ |
H A D | SKP_Silk_encode_frame_FIX.c | 41 SKP_int nBytes, ret = 0; in SKP_Silk_encode_frame_FIX() local 201 if( *pnBytesOut >= nBytes ) { in SKP_Silk_encode_frame_FIX() 206 *pnBytesOut >= nBytes + psEnc->sCmn.LBRR_buffer[ LBRR_idx ].nBytes ) { in SKP_Silk_encode_frame_FIX() 208 SKP_memcpy( &pCode[ nBytes ], in SKP_Silk_encode_frame_FIX() 211 nBytes += psEnc->sCmn.LBRR_buffer[ LBRR_idx ].nBytes; in SKP_Silk_encode_frame_FIX() 214 *pnBytesOut = nBytes; in SKP_Silk_encode_frame_FIX() 229 nBytes = 0; in SKP_Silk_encode_frame_FIX() 258 psEnc->sCmn.nBytesInPayloadBuf = nBytes; in SKP_Silk_encode_frame_FIX() 278 SKP_int nBytes, nFramesInPayloadBuf; in SKP_Silk_LBRR_encode_FIX() local 369 if( *pnBytesOut >= nBytes ) { in SKP_Silk_LBRR_encode_FIX() [all …]
|
/dports/graphics/openexr/openexr-3.1.4/src/lib/OpenEXRCore/ |
H A D | internal_piz.c | 410 uint64_t bpl, nBytes; in internal_exr_apply_piz() local 461 scratch += nBytes; in internal_exr_apply_piz() 515 nBytes = 0; in internal_exr_apply_piz() 520 &nBytes, in internal_exr_apply_piz() 528 nOut += nBytes; in internal_exr_apply_piz() 557 uint64_t nBytes; in internal_exr_undo_piz() local 594 nBytes = 0; in internal_exr_undo_piz() 611 nBytes += bytesToRead; in internal_exr_undo_piz() 672 nBytes = in internal_exr_undo_piz() 690 out += nBytes; in internal_exr_undo_piz() [all …]
|
/dports/science/cdf/cdf33_0-dist/src/lib/ |
H A D | vstream64.c | 192 nBytes = nCACHE_BUFFER_BYTEs; 314 nBytes = (long) tmpBytes; 415 nBytes = (long) tmpBytes; 437 size_t nBytes; 463 size_t nBytes; 483 size_t nBytes; 505 if (FREAD64(vFp->fh,buffer,(unsigned int) nBytes) == (int) nBytes) 522 size_t nBytes; 594 if (FWRITE64(vFp->fh,buffer,(unsigned int)nBytes) == (int)nBytes) 815 nBytesX = nBytes; [all …]
|
H A D | vstream.c | 163 vCACHE *cache; long nBytes; local 170 nBytes = MINIMUM (nBytes, nCACHE_BUFFER_BYTEs); 211 vCACHE *cache; long nBytes; local 287 nBytes = MINIMUM (nBytes, nCACHE_BUFFER_BYTEs); 383 nBytes = MINIMUM (nBytes, nCACHE_BUFFER_BYTEs); 405 size_t nBytes; 431 size_t nBytes; 451 size_t nBytes; 480 size_t nBytes; 1020 if (nBytes < 1) return 0; [all …]
|
/dports/math/pdal/PDAL-2.3.0/plugins/i3s/io/ |
H A D | EsriUtil.cpp | 93 int nBytes = (errCode == lepcc::ErrCode::Ok) ? (int)blobSize : -1; in decompressXYZ() local 94 if (nBytes > 0) in decompressXYZ() 97 stat = lepcc_getPointCount(ctx, pByte, nBytes, &xyzPts); in decompressXYZ() 102 stat = lepcc_decodeXYZ(ctx, &pByte, nBytes, &xyzPts, in decompressXYZ() 129 int nBytes = (errCode == lepcc::ErrCode::Ok) ? (int)blobSize : -1; in decompressRGB() local 131 if (nBytes > 0) in decompressRGB() 134 stat = lepcc_getRGBCount(ctx, pByte, nBytes, &nPts); in decompressRGB() 140 ctx, &pByte, nBytes, &nPts, (lepcc::Byte*)(&rgbVec[0])); in decompressRGB() 164 int nBytes = (errCode == lepcc::ErrCode::Ok) ? (int)blobSize : -1; in decompressIntensity() local 166 if (nBytes > 0) in decompressIntensity() [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/linux/ |
H A D | os_linux.inline.hpp | 99 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 101 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 105 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 107 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 123 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 124 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 127 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 128 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 131 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 132 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/bsd/ |
H A D | os_bsd.inline.hpp | 107 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 109 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 113 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 115 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 131 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 132 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 135 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 136 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 139 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 140 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/aix/ |
H A D | os_aix.inline.hpp | 105 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 107 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 111 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 113 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 129 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 130 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 133 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 134 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 137 inline int os::raw_send(int fd, char *buf, size_t nBytes, uint flags) { in raw_send() argument 138 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/bsd/ |
H A D | os_bsd.inline.hpp | 107 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 109 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 113 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 115 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 131 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 132 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 135 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 136 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 139 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 140 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/aix/ |
H A D | os_aix.inline.hpp | 105 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 107 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 111 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 113 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 129 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 130 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 133 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 134 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 137 inline int os::raw_send(int fd, char *buf, size_t nBytes, uint flags) { in raw_send() argument 138 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/os/linux/ |
H A D | os_linux.inline.hpp | 99 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 101 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 105 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 107 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 123 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 124 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 127 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 128 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 131 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 132 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/hotspot/os/aix/ |
H A D | os_aix.inline.hpp | 101 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 103 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 107 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 109 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 125 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 126 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 129 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 130 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 133 inline int os::raw_send(int fd, char *buf, size_t nBytes, uint flags) { in raw_send() argument 134 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/hotspot/os/linux/ |
H A D | os_linux.inline.hpp | 95 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 97 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 101 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 103 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 119 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 120 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 123 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 124 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 127 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 128 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/hotspot/os/bsd/ |
H A D | os_bsd.inline.hpp | 103 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { in restartable_read() argument 105 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); in restartable_read() 109 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { in write() argument 111 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); in write() 127 inline int os::recv(int fd, char* buf, size_t nBytes, uint flags) { in recv() argument 128 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, flags)); in recv() 131 inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { in send() argument 132 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); in send() 135 inline int os::raw_send(int fd, char* buf, size_t nBytes, uint flags) { in raw_send() argument 136 return os::send(fd, buf, nBytes, flags); in raw_send()
|
/dports/java/berkeley-db/je-6.2.31/test/com/sleepycat/je/util/ |
H A D | Adler32Test.java | 31 int nBytes = rnd.nextInt(65535); in testRandomAdler32ByteArray() local 32 byte[] b = new byte[nBytes]; in testRandomAdler32ByteArray() 37 javaChecksum.update(b, 0, nBytes); in testRandomAdler32ByteArray() 38 jeChecksum.update(b, 0, nBytes); in testRandomAdler32ByteArray() 39 chunkingChecksum.update(b, 0, nBytes); in testRandomAdler32ByteArray() 53 int nBytes = rnd.nextInt(65535); in xtestRandomAdler32ByteArrayPerformance() local 54 byte[] b = new byte[nBytes]; in xtestRandomAdler32ByteArrayPerformance() 56 lengths[i] = nBytes; in xtestRandomAdler32ByteArrayPerformance() 57 totalBytes += nBytes; in xtestRandomAdler32ByteArrayPerformance() 105 int nBytes = rnd.nextInt(65535); in testRandomAdler32SingleBytes() local [all …]
|
/dports/net-p2p/bitmark-recorder/bitmarkd-0.13.3/vendor/github.com/syndtr/goleveldb/leveldb/filter/ |
H A D | bloom.go | 27 nBytes := len(filter) - 1 28 if nBytes < 1 { 31 nBits := uint32(nBytes * 8) 35 k := filter[nBytes] 89 nBytes := (nBits + 7) / 8 90 nBits = nBytes * 8 92 dest := b.Alloc(int(nBytes) + 1) 93 dest[nBytes] = g.k
|
/dports/net-p2p/bitmark-daemon/bitmarkd-0.13.3/vendor/github.com/syndtr/goleveldb/leveldb/filter/ |
H A D | bloom.go | 27 nBytes := len(filter) - 1 28 if nBytes < 1 { 31 nBits := uint32(nBytes * 8) 35 k := filter[nBytes] 89 nBytes := (nBits + 7) / 8 90 nBits = nBytes * 8 92 dest := b.Alloc(int(nBytes) + 1) 93 dest[nBytes] = g.k
|
/dports/net-p2p/bitmark-cli/bitmarkd-0.13.3/vendor/github.com/syndtr/goleveldb/leveldb/filter/ |
H A D | bloom.go | 27 nBytes := len(filter) - 1 28 if nBytes < 1 { 31 nBits := uint32(nBytes * 8) 35 k := filter[nBytes] 89 nBytes := (nBits + 7) / 8 90 nBits = nBytes * 8 92 dest := b.Alloc(int(nBytes) + 1) 93 dest[nBytes] = g.k
|
/dports/net-p2p/bitmark/bitmarkd-0.13.3/vendor/github.com/syndtr/goleveldb/leveldb/filter/ |
H A D | bloom.go | 27 nBytes := len(filter) - 1 28 if nBytes < 1 { 31 nBits := uint32(nBytes * 8) 35 k := filter[nBytes] 89 nBytes := (nBits + 7) / 8 90 nBits = nBytes * 8 92 dest := b.Alloc(int(nBytes) + 1) 93 dest[nBytes] = g.k
|
/dports/databases/cayley/cayley-0.7.5-2-gcf576ba/vendor/github.com/syndtr/goleveldb/leveldb/filter/ |
H A D | bloom.go | 27 nBytes := len(filter) - 1 28 if nBytes < 1 { 31 nBits := uint32(nBytes * 8) 35 k := filter[nBytes] 89 nBytes := (nBits + 7) / 8 90 nBits = nBytes * 8 92 dest := b.Alloc(int(nBytes) + 1) 93 dest[nBytes] = g.k
|