Lines Matching defs:num
1152 lws_lec_signed(lws_lec_pctx_t *ctx, int64_t num)
1154 if (num < 0)
1156 (uint64_t)(-1ll - num));
1158 lws_lec_int(ctx, LWS_CBOR_MAJTYP_UINT, 0, (uint64_t)num);
1162 lws_lec_int(lws_lec_pctx_t *ctx, uint8_t opcode, uint8_t indet, uint64_t num)
1177 num <<= 48;
1180 num <<= 32;
1185 if (num < LWS_CBOR_1) {
1186 ctx->scratch[ctx->scratch_len++] = (uint8_t)(opcode | num);
1190 if (!(num & (uint64_t)(~0xffull))) {
1192 num <<= 56;
1194 if (!(num & (uint64_t)(~0xffffull))) {
1196 num <<= 48;
1198 if (!(num & (uint64_t)(~0xffffffffull))) {
1200 num <<= 32;
1209 ctx->scratch[ctx->scratch_len++] = (uint8_t)(num >> 56);
1210 num <<= 8;