これは私のコードがCである、私はC#でそれを書く必要があり、Cの計算を持っている:
const unsigned long *S //which is an array that already contains data)
unsigned long y;
y = y + S[d]; //S[d] = 2582066069 and y = 3372499074 and the results is 1659597847
が、私のC#コードで:
ulong[] S = (ulong[])hashtable[key];
ulong y = 2582066069;
y = y + S[d]; // s[d] = 3372499074 but the result is = 5954565143
私はこの追加操作の相違点をcとc# と誤解していませんか?あなたのC
場合
を使用することができます2つの計算の例番号? – crashmstr