Codebase list libcryptx-perl / 72ec1a8
hpux compiler warning setbit >> SETBIT Karel Miko 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1717
1818 #ifdef LTC_DER
1919
20 #define setbit(v, n) (v=((unsigned char)(v) | (1U << (unsigned char)(n))))
20 #define SETBIT(v, n) (v=((unsigned char)(v) | (1U << (unsigned char)(n))))
2121
2222 /**
2323 Store a BIT STRING
8686 /* decode/store the bits */
8787 for (y = 0; y < blen; y++) {
8888 if (in[x] & (1 << (7 - (y & 7)))) {
89 setbit(out[y/8], 7-(y%8));
89 SETBIT(out[y/8], 7-(y%8));
9090 }
9191 if ((y & 7) == 7) {
9292 ++x;