Multiplying two 128-bit ints

前端 未结 3 764
暖寄归人
暖寄归人 2021-01-05 06:54

I\'m trying to multiply two 128-bit integers in C.

Here is my algorithm:

Split the two 128-bit sequences into S1 and S2.

Then split S1 into S11 (fron

3条回答
  •  没有蜡笔的小新
    2021-01-05 07:38

    You are stuck in an infinite loop because i += 1/32 is the same as i += 0.

    Also: note:memcpy(&d[3l/2-i], dstM1, 1/8); is memcpy(&d[1-i], dstM1, 0);

提交回复
热议问题