Skip to content

Commit

Permalink
Squashed ARM warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Oct 21, 2014
1 parent 016968a commit a5223a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,14 @@ static uint32_t blk0(union char64long16 *block, int i) {
return block->l[i];
}

/* Avoid redefine warning (ARM /usr/include/sys/ucontext.h define R0~R4) */
#undef blk
#undef R0
#undef R1
#undef R2
#undef R3
#undef R4

#define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
^block->l[(i+2)&15]^block->l[i&15],1))
#define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(block, i)+0x5A827999+rol(v,5);w=rol(w,30);
Expand Down

0 comments on commit a5223a9

Please sign in to comment.