signedAD static method

String signedAD(
  1. dynamic adConfig
)

This is a helper function that prints out the kind of addend (selected by a Logic or set statically by a bool).) This supplements the Multiplier functions that can be used for multiplicand and multiplier as they are statics: Multiplier.signedMD and Multiplier.signedML.

  • UA: unsigned addend.
  • SA: signed addend.
  • SSA: dynamic selection of signed addend.

Implementation

static String signedAD(dynamic adConfig) {
  final parameter = StaticOrRuntimeParameter.ofDynamic(adConfig);
  return parameter.runtimeConfig != null
      ? 'SSA'
      : parameter.staticConfig
          ? 'SA'
          : 'UA';
}