Skip to content

Commit

Permalink
updated conditional preprocessing directives for SSE3
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Feb 14, 2024
1 parent 7bd1b7d commit cd165d5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/proc/align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
#include "align.h"
#include "stream.h"

#ifdef RS2_USE_CUDA
#if defined(RS2_USE_CUDA)
#include "proc/cuda/cuda-align.h"
#endif
#ifdef __SSSE3__
#elif defined(__SSSE3__)
#include "proc/sse/sse-align.h"
#endif

Expand All @@ -24,15 +23,13 @@ namespace librealsense

std::shared_ptr<align> align::create_align(rs2_stream align_to)
{
#ifdef RS2_USE_CUDA
#if defined(RS2_USE_CUDA)
return std::make_shared<librealsense::align_cuda>(align_to);
#else
#ifdef __SSSE3__
#elif defined(__SSSE3__)
return std::make_shared<librealsense::align_sse>(align_to);
#else
return std::make_shared<librealsense::align>(align_to);
#endif
#endif
}

template<class GET_DEPTH, class TRANSFER_PIXEL>
Expand Down

0 comments on commit cd165d5

Please sign in to comment.