Displaying 4 results from an estimated 4 matches for "satuation".
Did you mean:
saturation
2011 Jun 17
0
[LLVMdev] RFC: Integer saturation intrinsics
...-(1 << (bit-1)) : (x > (1 << (bit-1))-1 ? (1 << (bit-1))-1 : x)
> int_usat: x < 0 ? 0 : (x > (1 << bit)-1 : (1 << bit)-1 : x)
>
> e.g. If bit is 8, the range is -128 to 127 for int_ssat; 0 to 255 for int_usat. This is useful for i16 / i32 / i64 to i8 satuation code like the following:
> (x < -256) ? -256 : (x > 255 ? 255 : x)
> (x < 0) ? 0 : (x > 255 ? 255 : x)
>
> If the source type is an integer vector type, then each element of the vector is being saturated.
>
> For ARM, these intrinsics will map to usat / ssat instructio...
2011 Jun 17
5
[LLVMdev] RFC: Integer saturation intrinsics
...lt; (bit-1)) ? -(1 << (bit-1)) : (x > (1 << (bit-1))-1 ? (1 << (bit-1))-1 : x)
int_usat: x < 0 ? 0 : (x > (1 << bit)-1 : (1 << bit)-1 : x)
e.g. If bit is 8, the range is -128 to 127 for int_ssat; 0 to 255 for int_usat. This is useful for i16 / i32 / i64 to i8 satuation code like the following:
(x < -256) ? -256 : (x > 255 ? 255 : x)
(x < 0) ? 0 : (x > 255 ? 255 : x)
If the source type is an integer vector type, then each element of the vector is being saturated.
For ARM, these intrinsics will map to usat / ssat instructions. The semantics matches ex...
2011 Jun 17
2
[LLVMdev] RFC: Integer saturation intrinsics
...(bit-1)) : (x > (1 << (bit-1))-1 ? (1 << (bit-1))-1 : x)
>> int_usat: x < 0 ? 0 : (x > (1 << bit)-1 : (1 << bit)-1 : x)
>>
>> e.g. If bit is 8, the range is -128 to 127 for int_ssat; 0 to 255 for int_usat. This is useful for i16 / i32 / i64 to i8 satuation code like the following:
>> (x < -256) ? -256 : (x > 255 ? 255 : x)
>> (x < 0) ? 0 : (x > 255 ? 255 : x)
>>
>> If the source type is an integer vector type, then each element of the vector is being saturated.
>>
>> For ARM, these intrinsics will map...
2011 Jun 17
0
[LLVMdev] RFC: Integer saturation intrinsics
...(x > (1 << (bit-1))-1 ? (1 << (bit-1))-1 : x)
>>> int_usat: x < 0 ? 0 : (x > (1 << bit)-1 : (1 << bit)-1 : x)
>>>
>>> e.g. If bit is 8, the range is -128 to 127 for int_ssat; 0 to 255 for int_usat. This is useful for i16 / i32 / i64 to i8 satuation code like the following:
>>> (x < -256) ? -256 : (x > 255 ? 255 : x)
>>> (x < 0) ? 0 : (x > 255 ? 255 : x)
>>>
>>> If the source type is an integer vector type, then each element of the vector is being saturated.
>>>
>>> For ARM, the...