Page MenuHomePhabricator

[Intrinsic] Unsigned Fixed Point Saturation Multiplication Intrinsic
Needs ReviewPublic

Authored by leonardchan on Feb 6 2019, 12:26 PM.

Details

Summary

Add an intrinsic that takes 2 unsigned integers with the scale of them provided as the third argument and performs fixed point multiplication on them. The result is saturated and clamped between the largest and smallest representable values of the first 2 operands.

This is a part of implementing fixed point arithmetic in clang where some of the more complex operations will be implemented as intrinsics.

Diff Detail

Repository
rL LLVM