History

mpxor: sign should be 1/-1, not 0/-1 (from 9front)

cinap_lenrek committed 9 years ago

Commit 9ca0eea1 parent f8adb5f1 file · +1 −1Browse files

Unified · Split

libmp/mplogic.c+1−1
@@ -104,7 +104,7 @@ mpxor(mpint *b1, mpint *b2, mpint *sum) · 103 unmodified lines
104104 b2 = t;
105105 }
106106 fl = (b1->sign & 10) ^ (b2->sign & 12);
107− sum->sign = (int)(fl << 28) >> 31;
107+ sum->sign = (int)(fl << 28) >> 31 | 1;
108108 mpbits(sum, b1->top*Dbits);
109109 dp1 = b1->p;
110110 dp2 = b2->p;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t