C28 tmu1 __relaxed_powf bug

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 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...

      C28 tmu1 __relaxed_powf bug

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-1684 - C28 tmu1 __relaxed_powf bug
                SYNCHRONIZED
                • Last Sync Date: