some fixes

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-19 14:01:50 -07:00
parent 8ae384e93f
commit a97bccbf38
17 changed files with 16 additions and 60 deletions
+2 -2
View File
@@ -66,9 +66,9 @@ typedef const GUID& REFIID;
const GUID name \
= { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
static REFGUID GUID_NULL()
REFGUID GUID_NULL()
{
static const GUID guid = { 0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
static GUID guid = { 0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
return guid;
}
@@ -339,7 +339,6 @@ namespace AZ
{
const typename VecType::FloatType x_eq_0 = VecType::CmpEq(x, VecType::ZeroFloat());
const typename VecType::FloatType x_ge_0 = VecType::CmpGtEq(x, VecType::ZeroFloat());
const typename VecType::FloatType x_le_0 = VecType::CmpLtEq(x, VecType::ZeroFloat());
const typename VecType::FloatType x_lt_0 = VecType::CmpLt(x, VecType::ZeroFloat());
const typename VecType::FloatType y_eq_0 = VecType::CmpEq(y, VecType::ZeroFloat());
@@ -363,7 +362,6 @@ namespace AZ
typename VecType::FloatType swap_sign_mask_offset = VecType::And(x_lt_0, y_lt_0);
swap_sign_mask_offset = VecType::And(swap_sign_mask_offset, VecType::CastToFloat(FastLoadConstant<VecType>(Simd::g_negateMask)));
const typename VecType::FloatType offset0 = VecType::ZeroFloat();
typename VecType::FloatType offset1 = FastLoadConstant<VecType>(g_Pi);
offset1 = VecType::Xor(offset1, swap_sign_mask_offset);
@@ -3775,7 +3775,7 @@ namespace AZ
inline void OnDemandReflectFunctions(OnDemandReflectionOwner* onDemandReflection, AZStd::Internal::pack_traits_arg_sequence<Functions...>)
{
using PackExpander = bool[];
PackExpander{ true, (BehaviorOnDemandReflectHelper<typename AZStd::function_traits<Functions>::raw_fp_type>::QueueReflect(onDemandReflection), true)... };
[[maybe_unused]] PackExpander pe = { true, (BehaviorOnDemandReflectHelper<typename AZStd::function_traits<Functions>::raw_fp_type>::QueueReflect(onDemandReflection), true)... };
}
// Assumes parameters array is big enough to store all parameters
@@ -158,7 +158,6 @@ namespace AZ
using namespace JsonSerializationResult;
StoreTypeId storeTypeId = StoreTypeId::No;
Uuid resolvedTypeId = classData.m_typeId;
const SerializeContext::ClassData* resolvedClassData = &classData;
AZStd::any defaultPointerObject;
@@ -866,7 +866,9 @@ namespace AZStd
constexpr size_t hash_string(RandomAccessIterator first, size_t length)
{
size_t hash = 14695981039346656037ULL;
#if AZ_COMPILER_MSVC >= 1924
constexpr size_t fnvPrime = 1099511628211ULL;
#endif
const RandomAccessIterator last(first + length);
for (; first != last; ++first)
@@ -57,7 +57,7 @@ StackRecorder::Record(StackFrame* frames, unsigned int maxNumOfFrames, unsigned
int skip = static_cast<int>((suppressCount == 0) ? 1 : suppressCount); // Skip at least this function
while ((unw_step(&cursor) > 0) && (count < maxNumOfFrames))
{
unw_word_t offset, pc;
unw_word_t pc;
unw_get_reg(&cursor, UNW_REG_IP, &pc);
if (pc == 0)
{