Path: blob/master/thirdparty/embree/common/simd/sse.h
9912 views
// Copyright 2009-2021 Intel Corporation1// SPDX-License-Identifier: Apache-2.023#pragma once45#include "../sys/platform.h"6#include "../sys/intrinsics.h"7#include "../sys/alloc.h"8#include "../math/constants.h"9#include "varying.h"1011namespace embree12{13#if defined(__aarch64__) || defined(__SSE4_1__)14__forceinline __m128 blendv_ps(__m128 f, __m128 t, __m128 mask) {15return _mm_blendv_ps(f,t,mask);16}17#else18__forceinline __m128 blendv_ps(__m128 f, __m128 t, __m128 mask) {19return _mm_or_ps(_mm_and_ps(mask, t), _mm_andnot_ps(mask, f));20}21#endif2223extern const __m128 mm_lookupmask_ps[16];24extern const __m128d mm_lookupmask_pd[4];25}2627#if defined(__AVX512VL__)28#include "vboolf4_avx512.h"29#else30#include "vboolf4_sse2.h"31#endif32#include "vint4_sse2.h"33#include "vuint4_sse2.h"34#include "vfloat4_sse2.h"353637