An issue in the book "ARM Embedded System Development-software design and optimization"

Source: Internet
Author: User

<ARM Embedded System Development-Software Design and Optimization> in Chapter 5 of this book, section 5.10.2 converts division into multiplication (Chinese p133 page). In this section, there is a sentence: in mathematics, the 32-bit right shift will bring an error E2. The first question: what is the error here and how does it come from?
In the following example, the title 5.13 shows how Division is actually converted to multiplication. according to its program, I didn't see how it converts division to multiplication. In its program, there is a sentence: Unsigned int S = 0 xffffffffu/d; isn't this sentence a division operation? What is the difference between this and q = N/d, and r = N-Q * D?
The following section is for reference. Thank you!

Related Article

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.