Final code cleanup

- Corrected whitespace and comments
- Replaced `VECTLENSP` with `__SSE2__` and `4`
- Removed redundant `inline`
  (see: http://programmers.stackexchange.com/a/35436 and
  http://stackoverflow.com/a/5971755)
This commit is contained in:
Flössie
2016-05-01 11:10:11 +02:00
parent eceb024ba8
commit 39f4db609a
2 changed files with 27 additions and 29 deletions

View File

@@ -75,7 +75,7 @@ bool loadFile(
}
#ifdef __SSE2__
inline vfloat getClutValue(const AlignedBuffer<std::uint16_t>& clut_image, size_t index)
vfloat getClutValue(const AlignedBuffer<std::uint16_t>& clut_image, size_t index)
{
#ifdef __SSE4_1__
return _mm_cvtepi32_ps(_mm_cvtepu16_epi32(*reinterpret_cast<const __m128i*>(clut_image.data + index)));
@@ -260,7 +260,7 @@ void rtengine::HaldCLUT::splitClutFilename(
profile_name = "sRGB";
for (const auto& working_profile : rtengine::getWorkingProfiles()) {
if ( std::search( name.rbegin(), name.rend(), working_profile.rbegin(), working_profile.rend() ) == name.rbegin() ) {
if (std::search(name.rbegin(), name.rend(), working_profile.rbegin(), working_profile.rend()) == name.rbegin()) {
profile_name = working_profile;
name.erase(name.size() - working_profile.size());
break;