signedML static method

String signedML(
  1. dynamic mlConfig
)

This is a helper function that prints out the kind of multiplier (selected by a Logic or set statically via bool).)

  • UM: unsigned multiplier.
  • SM: signed multiplier.
  • SSM: dynamic selection of signed multiplier.

Implementation

static String signedML(dynamic mlConfig) =>
    ((mlConfig is! StaticOrRuntimeParameter) | (mlConfig == null))
        ? 'UM'
        : (mlConfig as StaticOrRuntimeParameter).runtimeConfig != null
            ? 'SSM'
            : mlConfig.staticConfig
                ? 'SM'
                : 'UM';