This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMU的函数有哪些

TMU的函数有哪些

  • 以下网址下载编译器手册,搜索TMU就可以找到。主要有以下指令:

    http://software-dl.ti.com/codegen/non-esd/downloads/download.htm

    double __divf32( double num , double denom ); DIVF32 dst, num, denom Return num divided by denom using the TMU
    hardware instruction for floating point division.
    double __sqrt( double src ); SQRTF32 dst, src Return the square root of src.
    double __sin( double src ); SINF32 dst, src Return the sine of src radians, where src is
    provided in radians.
    double __cos( double src ); COSF32 dst, src Return the cosine of src radians, where src is
    provided in radians.
    double __atan( double src ); ATANF32 dst, src Return the principal value of the arc tangent of
    src radians.
    double __atan2( double y , double x ); QUADF32 quadrant, ratio, y, x Return the principal value of the arc tangent
    ATANPUF32 atanpu, ratio plus the quadrant for x, y. The value is returned
    ADDF32 atan2pu, atanpu in radians.
    MPY2PIF32 atan2, atan2pu
    double __mpy2pif32( double src ); MPY2PIF32 dst, src Return the result of multiplying src by 2pi. This
    converts a per unit value to radians. Per unit
    values are commonly used in control
    applications to represent normalized radians.
    double __div2pif32( double src ); DIV2PIF32 dst, src Return the result of multiplying src by 1/2pi
    (effectively dividing by 2pi). This converts a
    value in radians to a per unit value.
    double __sinpuf32( double src ); SINPUF32 dst, src Return the sine of src in radians, where src is
    provided as a per unit value.
    double __cospuf32( double src ); COSPUF32 dst, src Return the cosine of src in radians, where src is
    provided as a per unit value.
    double __atanpuf32( double src ); ATANPUF32 dst, src Return the principal value of the arc tangent of
    src, which is provided as a per unit value.
    double __atan2puf32( double x, double y ); QUADF32 quadrant, ratio, y, x Return the principal value of the arc tangent
    ATANPUF32 atanpu, ratio plus the quadrant value for y, x. The value is
    ADDF32 dst, atanpu returned as a per unit value.
    double __quadf32( double ratio, double y, QUADF32 quadrant, ratio, y, x Return the quadrant value (0.0, +/-0.25, or +/-
    double x ); 0.5) and the ratio of x and y, which are
    provided as per unit values.

x 出现错误。请重试或与管理员联系。