diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 02:04:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 02:04:21 -0400 |
commit | 9994cdebb60ecffcf81ced46ccfd12968ea3b2da (patch) | |
tree | eddf1322d05e407fa3b683fca25a6a150427ddba /src/server/Buffer.cpp | |
parent | c8152e8724c8e78fc53651f000a4e63aca945722 (diff) | |
download | ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.gz ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.bz2 ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.zip |
Use consistent spacing for line comments
Diffstat (limited to 'src/server/Buffer.cpp')
-rw-r--r-- | src/server/Buffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index 426cdb27..f561871f 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -217,7 +217,7 @@ Buffer::port_data(PortType port_type, SampleCount offset) const static inline __m128 mm_abs_ps(__m128 x) { - const __m128 sign_mask = _mm_set1_ps(-0.0f); // -0.0f = 1 << 31 + const __m128 sign_mask = _mm_set1_ps(-0.0f); // -0.0f = 1 << 31 return _mm_andnot_ps(sign_mask, x); } #endif @@ -299,7 +299,7 @@ Buffer::append_event(int64_t frames, auto* atom = get<LV2_Atom>(); if (atom->type == _factory.uris().atom_Chunk) { - clear(); // Chunk initialized with prepare_output_write(), clear + clear(); // Chunk initialized with prepare_output_write(), clear } if (sizeof(LV2_Atom) + atom->size + lv2_atom_pad_size(size) > _capacity) { @@ -339,14 +339,14 @@ Buffer::append_event_buffer(const Buffer* buf) reinterpret_cast<const LV2_Atom_Sequence*>(buf->get<LV2_Atom>()); if (seq->atom.type == _factory.uris().atom_Chunk) { - clear(); // Chunk initialized with prepare_output_write(), clear + clear(); // Chunk initialized with prepare_output_write(), clear } const uint32_t total_size = lv2_atom_total_size(&seq->atom); uint8_t* const end = reinterpret_cast<uint8_t*>(seq) + total_size; const uint32_t n_bytes = bseq->atom.size - sizeof(bseq->body); if (sizeof(LV2_Atom) + total_size + n_bytes >= _capacity) { - return false; // Not enough space + return false; // Not enough space } memcpy(end, bseq + 1, n_bytes); |