You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Upgrade Embree to the latest official release.
Since Embree v3.13.0 supports AARCH64, switch back to the official repo instead of using Embree-aarch64. `thirdparty/embree/patches/godot-changes.patch` should now contain an accurate diff of the changes done to the library.
This commit is contained in:
34
thirdparty/embree/common/simd/sse.cpp
vendored
Normal file
34
thirdparty/embree/common/simd/sse.cpp
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
// Copyright 2009-2021 Intel Corporation
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#include "sse.h"
|
||||
|
||||
namespace embree
|
||||
{
|
||||
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 __m128d mm_lookupmask_pd[4] = {
|
||||
_mm_castsi128_pd(_mm_set_epi32( 0, 0, 0, 0)),
|
||||
_mm_castsi128_pd(_mm_set_epi32( 0, 0,-1,-1)),
|
||||
_mm_castsi128_pd(_mm_set_epi32(-1,-1, 0, 0)),
|
||||
_mm_castsi128_pd(_mm_set_epi32(-1,-1,-1,-1))
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user