How to convert "float" type to double“ type for BF702?

Hi,

Do we have some dedicated lib or command to convert data between different data type for calculation? thanks.

Parents
  • 0
    •  Analog Employees 
    on Jan 13, 2021 3:03 PM 2 months ago

    Hi Carlo,

    The CCES run-time libraries contain high-level support for converting between fractional and floating-point values. The include file fract2float_conv.h defines functions which perform conversions between fract16, fract32, and float types.

    We recommend to refer the below cces help path for more details:
    CrossCore® Embedded Studio 2.9.2 > Blackfin® Development Tools Documentation > C/C++ Compiler and Library Manual for Blackfin® Processors > Compiler > C/C++ Compiler Language Extensions > Compiler Built-In Functions > Converting Between Fractional and Floating-Point Values

    Unfortunately, there are no library functions/ command to handle "float" type to double“ conversion.

    Also, you can refer the below cces help path to know details about the available command-line switches:
    CrossCore® Embedded Studio 2.9.2 > Blackfin® Development Tools Documentation > C/C++ Compiler and Library Manual for Blackfin® Processors > Compiler > Compiler Command-Line Interface > C/C++ Compiler Command-Line Switches

    Regards,
    Santha kumari.K

Reply
  • 0
    •  Analog Employees 
    on Jan 13, 2021 3:03 PM 2 months ago

    Hi Carlo,

    The CCES run-time libraries contain high-level support for converting between fractional and floating-point values. The include file fract2float_conv.h defines functions which perform conversions between fract16, fract32, and float types.

    We recommend to refer the below cces help path for more details:
    CrossCore® Embedded Studio 2.9.2 > Blackfin® Development Tools Documentation > C/C++ Compiler and Library Manual for Blackfin® Processors > Compiler > C/C++ Compiler Language Extensions > Compiler Built-In Functions > Converting Between Fractional and Floating-Point Values

    Unfortunately, there are no library functions/ command to handle "float" type to double“ conversion.

    Also, you can refer the below cces help path to know details about the available command-line switches:
    CrossCore® Embedded Studio 2.9.2 > Blackfin® Development Tools Documentation > C/C++ Compiler and Library Manual for Blackfin® Processors > Compiler > Compiler Command-Line Interface > C/C++ Compiler Command-Line Switches

    Regards,
    Santha kumari.K

Children
No Data