ocs_utils.c
Source contains low-bit mask syntaxSource references XOR syntax
SHA-256d6ee8bc3e388d07f7e1eaaf2e0b7481297d973a3993352f72ac6f3a71750667b
MaleculeO(Er)H(Db₂)
Evidence
⋯6 lines
35 */
36
37#include "ocs.h"
38#include "ocs_os.h"
39
40#define DEFAULT_SLAB_LEN (64*1024)
⋯5 lines
⋯4 lines
104 array->os = os;
105 array->size = size;
106 array->count = count;
107 array->elems_per_row = slab_len / size;
108 array->n_rows = (count + array->elems_per_row - 1) / array->elems_per_row;
109 array->by …
⋯9 lines
649{
650 va_list ap;
651 char valuebuf[64];
652
653 va_start(ap, fmt);
⋯4 lines
1054:21… wqe_word_mask)*8) - 1); i >= 0; i--){
1055 if ((wqe_word_mask >> i) & 1) {
1056 q_hist->q_hist[q_hist->q_hist_index] = entryw[i];
1057 q_hist->q_hist_index++;
1058 q_hist->q_hist_index = q_hist->q_hist_ …
2275:59… en, unsigned short crc)
2276{
2277 if (blk_len > 0) {
2278 while (blk_len--) {
2279 crc = crctable[((crc>>8) ^ *blk_adr++) & 0xFFL] ^ (crc << 8);
2280 }
2281 }
⋯6 lines