Floating Point Operation in vdsp (bf561) (3): flt_min

Source: Internet
Author: User

 

Happy shrimp

Http://blog.csdn.net/lights_joy/

Lights@hb165.com

 

 

This article applies

ADI bf561 DSP

Apsara stack bf561evb Development Board

Visual DSP ++ 5.0 (Update 5)

 

Reprinted, but keep the author information

 

Flt_min is a constant defined in float. h to represent the minimum value of a single-precision floating point number.

# Define flt_min 1.1754943508222875e -38f

So where does this value come from?

From the floating point representation, we can know that the ending number must be greater than or equal to 1. To obtain the minimum value, we can only set the index to the minimum value. Because the floating point number requires that the index be 0 to indicate a special floating point number, therefore, the index can only be 1, that is

0 00000001 00000000000000000000000

Tail Number of the symbol bit Index

The hexadecimal integer is 0x00 80 00.

According to the floating point calculation formula, the value is:

1.0x2-126

= 1.1754943508222875079687365372222e-38

This is the calculation result of the calculator.

 

 

 

 

 

References

Floating point operations in vdsp (bf561) (1): the document( )

Floating point operations in vdsp (bf561) (2): Float questions( 2008-12-18 )

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.