What operation is faster? + - * /

Status
Not open for further replies.

GreenAce92

Member level 4
Joined
May 6, 2010
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Buffalo, NY
Activity points
2,032
Binary computation

Does it matter? As far as designing fast computation
 

Is the question related to microcontrollers or did you post in the wrong section?

In the former case, you would look for the instruction set description of your microcontroller first, does it support hardware multiply and division, and if so, which word length and what are the ececution times.

Generally speaking, add and sub are the same, multiply is slower and division much slower. Therefore, algorithm designer are trying to use multiply instead of division whereever possible.

Take a look on the basics of binary arithmetics to understand the speed differences. https://en.wikipedia.org/wiki/Binary_arithmetic
 

I'm trying to use it for microcontrollers but that's good to know about instruction set, I'm looking for spatial computation microcontroller/processing for mapping and measuring/predicting based on heading, momentum, size, etc... the faster the better
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…