SimdBool8x16Operation.cpp 905 B

1234567891011121314151617181920212223242526272829
  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 defined(_M_ARM32_OR_ARM64)
  7. namespace Js
  8. {
  9. SIMDValue SIMDBool8x16Operation::OpBool8x16(bool b[])
  10. {
  11. SIMDValue result;
  12. for (uint i = 0; i < 16; i++)
  13. {
  14. result.i8[i] = b[i] ? -1 : 0;
  15. }
  16. return result;
  17. }
  18. SIMDValue SIMDBool8x16Operation::OpBool8x16(const SIMDValue& v)
  19. {
  20. // overload function with input parameter as SIMDValue for completeness
  21. SIMDValue result;
  22. result = v;
  23. return result;
  24. }
  25. }
  26. #endif