Home
last modified time | relevance | path

Searched refs:WHEEL_SIZE (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/userspace/shared_mem/src/
Denc.c63 tmpIndex = (W1[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
67 tmpIndex = (W2[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
71 tmpIndex = (W3[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
79 tmpIndex = (W3R[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
83 tmpIndex = (W2R[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
87 tmpIndex = (W1R[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
111 for (i = 0; i < WHEEL_SIZE; i++) { in calc_rev_wheel()
112 if (wheel[i] >= WHEEL_SIZE) { in calc_rev_wheel()
151 if (IW1 >= WHEEL_SIZE) { in update_wheel_index()
152 IW1 %= WHEEL_SIZE; in update_wheel_index()
[all …]
Denc.h13 #define WHEEL_SIZE 26 macro
14 #define IMOD(a, b) ((a + b) % WHEEL_SIZE)