Skip to content

Commit

Permalink
Merge pull request samr7#9 from Rytiss/master
Browse files Browse the repository at this point in the history
Initialize bn_zero to allow Intel CPU OpenCL compilation
  • Loading branch information
BlinkyStitt committed Feb 11, 2014
2 parents 68c7edd + cdf46e1 commit d56e279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calc_addrs.cl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ typedef struct {
} bignum;

__constant bn_word modulus[] = { MODULUS_BYTES };
__constant bignum bn_zero;
__constant bignum bn_zero = {};

__constant bn_word mont_rr[BN_NWORDS] = { 0xe90a1, 0x7a2, 0x1, 0, };
__constant bn_word mont_n0[2] = { 0xd2253531, 0xd838091d };
Expand Down

0 comments on commit d56e279

Please sign in to comment.