ClangFormat: apply to source, most of intern
[blender.git] / intern / cycles / util / util_simd.cpp
index f90439c..861dcf1 100644 (file)
  * limitations under the License.
  */
 
-#if (defined(WITH_KERNEL_SSE2)) || \
-    (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
+#if (defined(WITH_KERNEL_SSE2)) || (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
 
-#define __KERNEL_SSE2__
-#include "util/util_simd.h"
+#  define __KERNEL_SSE2__
+#  include "util/util_simd.h"
 
 CCL_NAMESPACE_BEGIN
 
-const __m128 _mm_lookupmask_ps[16] = {
-       _mm_castsi128_ps(_mm_set_epi32( 0, 0, 0, 0)),
-       _mm_castsi128_ps(_mm_set_epi32( 0, 0, 0,-1)),
-       _mm_castsi128_ps(_mm_set_epi32( 0, 0,-1, 0)),
-       _mm_castsi128_ps(_mm_set_epi32( 0, 0,-1,-1)),
-       _mm_castsi128_ps(_mm_set_epi32( 0,-1, 0, 0)),
-       _mm_castsi128_ps(_mm_set_epi32( 0,-1, 0,-1)),
-       _mm_castsi128_ps(_mm_set_epi32( 0,-1,-1, 0)),
-       _mm_castsi128_ps(_mm_set_epi32( 0,-1,-1,-1)),
-       _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, 0)),
-       _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0,-1)),
-       _mm_castsi128_ps(_mm_set_epi32(-1, 0,-1, 0)),
-       _mm_castsi128_ps(_mm_set_epi32(-1, 0,-1,-1)),
-       _mm_castsi128_ps(_mm_set_epi32(-1,-1, 0, 0)),
-       _mm_castsi128_ps(_mm_set_epi32(-1,-1, 0,-1)),
-       _mm_castsi128_ps(_mm_set_epi32(-1,-1,-1, 0)),
-       _mm_castsi128_ps(_mm_set_epi32(-1,-1,-1,-1))
-};
-
+const __m128 _mm_lookupmask_ps[16] = {_mm_castsi128_ps(_mm_set_epi32(0, 0, 0, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, 0, 0, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, 0, -1, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, 0, -1, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, -1, 0, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, -1, 0, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, -1, -1, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(0, -1, -1, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, -1)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, 0)),
+                                      _mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, -1))};
 
 CCL_NAMESPACE_END