SimdBool32x4Operation.h 932 B

123456789101112131415161718192021222324
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace Js {
  7. struct SIMDBool32x4Operation
  8. {
  9. // following are operation wrappers of SIMD.Bool32x4 general implementation
  10. static SIMDValue OpBool32x4(bool x, bool y, bool z, bool w);
  11. static SIMDValue OpBool32x4(const SIMDValue& v);
  12. // Unary Ops
  13. static SIMDValue OpNot(const SIMDValue& v);
  14. static bool OpAnyTrue(const SIMDValue& v);
  15. static bool OpAllTrue(const SIMDValue& v);
  16. // Binary Ops
  17. // Done via Int32x4 ops
  18. };
  19. } // namespace Js