<commit_before>/* encode.h -- encoding and decoding of CoAP data types
 *
 * (c) 2010 <NAME>
 */

#ifndef _COAP_ENCODE_H_
#define _COAP_ENCODE_H_

#if (BSD >= 199103)
# include <string.h>
#else
# include <strings.h>
#endif

#define N 8
#define E 4
#define HIBIT (1 << (N - 1))
#define EMASK ((1 << E) - 1)
#define MMASK ((1 << N) - 1 - EMASK)
#define MAX_VALUE ( (1 << N) - (1 << E) ) * (1 << ((1 << E) - 1))

#define COAP_PSEUDOFP_DECODE_8_4(r) (r < HIBIT ? r : (r & MMASK) << (r & EMASK))

#if 0
/* include this only if fls() is not available */
extern int coap_fls(unsigned int i);<commit_msg>make internal implementation of fls() the default as it is missing on my Linux box<commit_after>/* encode.h -- encoding and decoding of CoAP data types
 *
 * (c) 2010 <NAME>
 */

#ifndef _COAP_ENCODE_H_
#define _COAP_ENCODE_H_

#if (BSD >= 199103)
# include <string.h>
#else
# include <strings.h>
#endif

#define N 8
#define E 4
#define HIBIT (1 << (N - 1))
#define EMASK ((1 << E) - 1)
#define MMASK ((1 << N) - 1 - EMASK)
#define MAX_VALUE ( (1 << N) - (1 << E) ) * (1 << ((1 << E) - 1))

#define COAP_PSEUDOFP_DECODE_8_4(r) (r < HIBIT ? r : (r & MMASK) << (r & EMASK))

#ifndef HAVE_FLS
/* include this only if fls() is not available */
extern int coap_fls(unsigned int i);
{'fraction_non_alphanumeric': 0.17452830188679244, 'fraction_numerical': 0.04009433962264151, 'mean_word_length': 3.498233215547703, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5635857', 'n_tokens_mistral': 559, 'n_tokens_neox': 521, 'n_words': 175}