blob: 9eb031a2fad4b4816cab00e5f10d305d1f26ef07 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
namespace Js {
struct SIMDUint8x16Operation
{
// following are operation wrappers for SIMDUint8x16 general implementation
// input and output are typically SIMDValue
static SIMDValue OpUint8x16(uint8 values[]);
//// Unary Ops
static SIMDValue OpMin(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpMax(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpLessThan(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpLessThanOrEqual(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpGreaterThan(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpGreaterThanOrEqual(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpShiftRightByScalar(const SIMDValue& value, int count);
static SIMDValue OpAddSaturate(const SIMDValue& aValue, const SIMDValue& bValue);
static SIMDValue OpSubSaturate(const SIMDValue& aValue, const SIMDValue& bValue);
};
} // namespace Js