Lines Matching refs:x

39 static inline unsigned char idx(unsigned char x, unsigned char y) {  in idx()  argument
40 return x + (5 * y); in idx()
44 static inline uint64_t load64(const unsigned char* x) { in load64() argument
49 ret |= x[i]; in load64()
53 static inline void store64(unsigned char* x, uint64_t val) { in store64() argument
56 x[i] = val & 0xFF; in store64()
60 static inline void xor64(unsigned char* x, uint64_t val) { in xor64() argument
63 x[i] ^= val & 0xFF; in xor64()
67 # define readLane(x, y) load64(ctx->state+sizeof(uint64_t)*idx(x, y)) argument
68 # define writeLane(x, y, v) store64(ctx->state+sizeof(uint64_t)*idx(x, y), v) argument
69 # define XORLane(x, y, v) xor64(ctx->state+sizeof(uint64_t)*idx(x, y), v) argument
71 # define readLane(x, y) (((uint64_t*)ctx->state)[idx(x,y)]) argument
72 # define writeLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] = v) argument
73 # define XORLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] ^= v) argument
97 unsigned char x, y; in permute() local
98 for (x = 0; x < 5; ++x) { in permute()
99 C[x] = readLane(x, 0) ^ readLane(x, 1) ^ in permute()
100 readLane(x, 2) ^ readLane(x, 3) ^ readLane(x, 4); in permute()
102 for (x = 0; x < 5; ++x) { in permute()
103 D = C[(x+4)%5] ^ rol64(C[(x+1)%5], 1); in permute()
105 XORLane(x, y, D); in permute()
111 unsigned char x = 1, y = 0, t; in permute() local
112 uint64_t current = readLane(x, y); in permute()
115 unsigned char Y = (2*x + 3*y) % 5; in permute()
117 x = y; in permute()
119 temp = readLane(x, y); in permute()
120 writeLane(x, y, rol64(current, r)); in permute()
126 unsigned char x, y; in permute() local
129 for (x = 0; x < 5; ++x) { in permute()
130 temp[x] = readLane(x, y); in permute()
132 for (x = 0; x < 5; ++x) { in permute()
133 writeLane(x, y, temp[x] ^((~temp[(x+1)%5]) & temp[(x+2)%5])); in permute()