Lines Matching refs:x
37 static inline unsigned char idx(unsigned char x, unsigned char y) { in idx() argument
38 return x + (5 * y); in idx()
42 static inline uint64_t load64(const unsigned char* x) { in load64() argument
47 ret |= x[i]; in load64()
51 static inline void store64(unsigned char* x, uint64_t val) { in store64() argument
54 x[i] = val & 0xFF; in store64()
58 static inline void xor64(unsigned char* x, uint64_t val) { in xor64() argument
61 x[i] ^= val & 0xFF; in xor64()
65 # define readLane(x, y) load64(ctx->state+sizeof(uint64_t)*idx(x, y)) argument
66 # define writeLane(x, y, v) store64(ctx->state+sizeof(uint64_t)*idx(x, y), v) argument
67 # define XORLane(x, y, v) xor64(ctx->state+sizeof(uint64_t)*idx(x, y), v) argument
69 # define readLane(x, y) (((uint64_t*)ctx->state)[idx(x,y)]) argument
70 # define writeLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] = v) argument
71 # define XORLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] ^= v) argument
95 unsigned char x, y; in permute() local
96 for (x = 0; x < 5; ++x) { in permute()
97 C[x] = readLane(x, 0) ^ readLane(x, 1) ^ in permute()
98 readLane(x, 2) ^ readLane(x, 3) ^ readLane(x, 4); in permute()
100 for (x = 0; x < 5; ++x) { in permute()
101 D = C[(x+4)%5] ^ rol64(C[(x+1)%5], 1); in permute()
103 XORLane(x, y, D); in permute()
109 unsigned char x = 1, y = 0, t; in permute() local
110 uint64_t current = readLane(x, y); in permute()
113 unsigned char Y = (2*x + 3*y) % 5; in permute()
115 x = y; in permute()
117 temp = readLane(x, y); in permute()
118 writeLane(x, y, rol64(current, r)); in permute()
124 unsigned char x, y; in permute() local
127 for (x = 0; x < 5; ++x) { in permute()
128 temp[x] = readLane(x, y); in permute()
130 for (x = 0; x < 5; ++x) { in permute()
131 writeLane(x, y, temp[x] ^((~temp[(x+1)%5]) & temp[(x+2)%5])); in permute()