Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9181

C28 tmu1 __relaxed_powf bug

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • High
    • Resolution: Fixed
    • Code Generation Tools
    • CODEGEN-5580
    • C2000_18.9.0.STS
    • C2000_18.12.0.LTS
    • Hide
      Either use --fp_mode=strict or update include/math.h with below:
      __inline float __relaxed_powf(float x, float y)
      {
        float log2ofx = __log2(x);
        float log2ofxtimesy = log2ofx * y;
        float exp2foflog2ofxtimesy = exp2f(log2ofxtimesy);
        return log2ofxtimesy > 0 ? exp2foflog2ofxtimesy : 1.0f / exp2foflog2ofxtimesy;
      }
      Show
      Either use --fp_mode=strict or update include/math.h with below: __inline float __relaxed_powf(float x, float y) {   float log2ofx = __log2(x);   float log2ofxtimesy = log2ofx * y;   float exp2foflog2ofxtimesy = exp2f(log2ofxtimesy);   return log2ofxtimesy > 0 ? exp2foflog2ofxtimesy : 1.0f / exp2foflog2ofxtimesy; }
    • Using --tmu_support=tmu1 --fp_mode=relaxed, below math.h routine did not properly handle a negative result for log2(x): __inline...

    Description

      C28 tmu1 __relaxed_powf bug

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: