Mjolnir Core
Core functionality of the Mjolnir API

◆ copy_sign()

auto copy_sign ( T_RegisterType  src_magnitude,
T_RegisterType  src_sign 
) -> T_RegisterType
inlinenoexcept

Return a new register consisting of the magnitudes from src_magnitude and the signs of src_sign.

Template Parameters
t_all_mag_positiveIf true, the function expects all values of src_magnitude to be positive. This allows for some minor performance gain. The default value is false
Parameters
[in]src_magnitudeThe register that provides the magnitudes for the returned register
[in]src_signThe register that provides the signs for the returned register
Returns
New register with the magnitudes from src_magnitude and the signs of src_sign.