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.

请教SLAA329-Efficient Multiplication and Division Using MSP430

此应用报告提供的汇编程序中,使用Horner和Horner+CSD的函数都只有一个参数,比如:

int div_csd_int(register int);

int div_horner_int(register int);

但相同功能的函数是两个参数

int div_hamacher(register int, register int);

原测试程序如下:

result2=div_hamacher(input,divisor); 
result3=div_horner_int(input); 
result4=div_csd_int(input);

input和divisor分别是除数和被除数

请问,它如何实现除法的?另一个参数是怎样传递进去的?

  • 我好像大概知道了,这些汇编程序里面已经隐含了被除数,本身作用只是拿来测试这些乘除法的实现方法用的,并不能被用户调用去实现任意的乘除法,不知道是否是这样。

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