Skip to content
  • Leonard Chan's avatar
    [Intrinsic] Signed Fixed Point Saturation Multiplication Intrinsic · 0bada7ce
    Leonard Chan authored
    Add an intrinsic that takes 2 signed 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.
    
    Differential Revision: https://reviews.llvm.org/D55720
    
    llvm-svn: 361289
    0bada7ce