SimdUint32x4Operation.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 SIMDUint32x4Operation
  8. {
  9. // following are operation wrappers for SIMDUInt32x4 general implementation
  10. // input and output are typically SIMDValue
  11. static SIMDValue OpUint32x4(unsigned int x, unsigned int y, unsigned int z, unsigned int w);
  12. static SIMDValue OpSplat(unsigned int x);
  13. // conversion
  14. static SIMDValue OpFromFloat32x4(const SIMDValue& value, bool& throws);
  15. static SIMDValue OpFromInt32x4(const SIMDValue& value);
  16. // Unary Ops
  17. static SIMDValue OpShiftRightByScalar(const SIMDValue& value, int count);
  18. static SIMDValue OpLessThan(const SIMDValue& aValue, const SIMDValue& bValue);
  19. static SIMDValue OpLessThanOrEqual(const SIMDValue& aValue, const SIMDValue& bValue);
  20. static SIMDValue OpGreaterThan(const SIMDValue& aValue, const SIMDValue& bValue);
  21. static SIMDValue OpGreaterThanOrEqual(const SIMDValue& aValue, const SIMDValue& bValue);
  22. static SIMDValue OpMin(const SIMDValue& aValue, const SIMDValue& bValue);
  23. static SIMDValue OpMax(const SIMDValue& aValue, const SIMDValue& bValue);
  24. };
  25. } // namespace Js