Searched refs:byte_t (Results 1 – 4 of 4) sorted by relevance
18 byte_t21 return (byte_t)((value / 10) | ((value % 10) << 4)); in gsm_int_to_bcdi()25 gsm_int_from_bcdi( byte_t val ) in gsm_int_from_bcdi()42 static byte_t bcdichars[14] = "0123456789*#,N";94 if (dst) dst[result] = (byte_t) phase;100 if (dst) dst[result] = (byte_t)( phase | 0xf0 );157 return (byte_t)( (hi << 4) | lo ); in gsm_hex2_to_byte0()186 dst[nn] = (byte_t) gsm_hex2_to_byte0( (const char*)hex+2*nn ); in gsm_hex_to_bytes0()204 dst[nn] = (byte_t) c; in gsm_hex_to_bytes()329 rope->data[ rope->pos ] = (byte_t) c; in gsm_rope_add_c()[all …]
18 typedef unsigned char byte_t; typedef19 typedef byte_t* bytes_t;20 typedef const byte_t* cbytes_t;26 extern byte_t gsm_int_to_bcdi( int value );29 extern int gsm_int_from_bcdi( byte_t value );163 byte_t alpha [ SIM_ADN_MAX_ALPHA*3+1 ]; /* alpha tag in zero-terminated utf-8 */170 byte_t ext_record; /* 0 or 0xFF means no extension */
175 byte_t rec_count;176 byte_t rec_len;290 static const byte_t _const_spn_cphs[20] = {295 static const byte_t _const_voicemail_cphs[1] = {299 static const byte_t _const_iccid[10] = {303 static const byte_t _const_cff_cphs[1] = {
111 utf8[count] = (byte_t) c; in sms_utf8_from_message_str()116 utf8[count] = (byte_t)(0xc0 | ((c >> 6) & 0x1f)); in sms_utf8_from_message_str()118 utf8[count+1] = (byte_t)(0x80 | (c & 0x3f)); in sms_utf8_from_message_str()123 utf8[count] = (byte_t)(0xc0 | ((c >> 12) & 0xf)); in sms_utf8_from_message_str()125 utf8[count+1] = (byte_t)(0x80 | ((c >> 6) & 0x3f)); in sms_utf8_from_message_str()127 utf8[count+2] = (byte_t)(0x80 | (c & 0x3f)); in sms_utf8_from_message_str()186 str[count] = (byte_t)(0xc0 | ((c >> 6) & 0x1f)); in sms_utf8_to_message_str()188 str[count+1] = (byte_t)(0x80 | (c & 0x3f)); in sms_utf8_to_message_str()193 str[count] = (byte_t)(0xc0 | ((c >> 12) & 0xf)); in sms_utf8_to_message_str()195 str[count+1] = (byte_t)(0x80 | ((c >> 6) & 0x3f)); in sms_utf8_to_message_str()[all …]