SimdBool16x8OperationX86X64.cpp 968 B

12345678910111213141516171819202122232425
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "RuntimeLanguagePch.h"
  6. #if _M_IX86 || _M_AMD64
  7. namespace Js
  8. {
  9. SIMDValue SIMDBool16x8Operation::OpBool16x8(bool b[])
  10. {
  11. X86SIMDValue x86Result;
  12. x86Result.m128i_value = _mm_set_epi16(b[7] * -1, b[6] * -1, b[5] * -1, b[4] * -1, b[3] * -1, b[2] * -1, b[1] * -1, b[0] * -1);
  13. return X86SIMDValue::ToSIMDValue(x86Result);
  14. }
  15. SIMDValue SIMDBool16x8Operation::OpBool16x8(const SIMDValue& v)
  16. {
  17. // overload function with input parameter as SIMDValue for completeness
  18. SIMDValue result;
  19. result = v;
  20. return result;
  21. }
  22. }
  23. #endif