现在,SPU上的整数相乘指令多少有点问题,特别是有符号乘法(使用mpy指令)。
Now, the integer multiply instructions on the SPU are somewhat problematic, especially signed multiplication (using the mpy instruction).
清单7演示了如何在for循环内使用range方法来创建整数1至10(包含10)的乘法表。
Listing 7 demonstrate how you can use the range method within a for loop to create a times table for the integers 1 through 10, inclusive.
该例程执行了大量整数乘法。
应用推荐