ae2f_docs
|
Go to the source code of this file.
Macros | |
#define | ae2f_BitToByteCount(bitc) |
Calculate proper byte size with bit count. | |
#define | _ae2f_BitVecFilled(len, vec_t) |
Generates the vector filled in 1. | |
#define | ae2f_BitVecFilled(len) |
Generates the vector filled in 1. | |
#define | _ae2f_BitVecGetRanged(vector, start, end, vec_t) |
Gets the bits of [vector] between index of [start] and [end]. | |
#define | ae2f_BitVecGetRanged(vector, start, end) |
Gets the bits of [vector] between index of [start] and [end]. It will normalise the values of [start] and [end] by switching them. | |
#define | ae2f_BitVecGet(vector, idx) |
Gets a bit of [vector] from index of [idx]. | |
#define | _ae2f_BitVecSetRanged(vector, start, end, val, vec_t) |
Sets the bits of [vector] from index of [start] and [end] by [val]. | |
#define | ae2f_BitVecSetRanged(vector, start, end, val) |
Sets the bits of [vector] from index of [start] and [end] by [val]. It will normalise the values of [start] and [end] by switching them. | |
#define | ae2f_BitVecSet(vector, idx, val) |
Sets a bit of [vector] from index of [idx] by [val]. | |
#define | ae2f_BitVecSizeDefName(t) |
Gets the vec's last index where the flag set to 1. | |
#define | ae2f_BitVecSizeDef(t) |
Gets the vec's last index where the flag set to 1. | |
#define | ae2f_BitVecFndOneDefName(t) |
Gets the vector that vec's first flag set to 1. | |
#define | ae2f_BitVecFndOneDef(t) |
Gets the vector that vec's first flag set to 1. |
Typedefs | |
typedef uint8_t | ae2f_BitVecI_t |
The pre-defined index type for Bit vector. |
#define _ae2f_BitVecFilled | ( | len, | |
vec_t ) |
Generates the vector filled in 1.
len | The length of the filled vector. |
vec_t | The integer data type. |
#define _ae2f_BitVecGetRanged | ( | vector, | |
start, | |||
end, | |||
vec_t ) |
Gets the bits of [vector] between index of [start] and [end].
vector | {vec_t} The target for operation. |
start | {ae2f_Macro_BitVecI_t} The starting index. |
end | {ae2f_Macro_BitVecI_t} The ending index. |
vec_t | The integer data type. |
#define _ae2f_BitVecSetRanged | ( | vector, | |
start, | |||
end, | |||
val, | |||
vec_t ) |
Sets the bits of [vector] from index of [start] and [end] by [val].
vector | {vec_t} The target for operation. |
start | {ae2f_Macro_BitVecI_t} The starting index. |
end | {ae2f_Macro_BitVecI_t} The ending index. |
val | {vec_t} The value to set. |
vec_t | The integer data type. |
#define ae2f_BitToByteCount | ( | bitc | ) |
#define ae2f_BitVecFilled | ( | len | ) |
Generates the vector filled in 1.
len | {ae2f_Macro_BitVecI_t} The length of the filled vector. |
#define ae2f_BitVecFndOneDef | ( | t | ) |
Gets the vector that vec's first flag set to 1.
t | Must be an integer type |
vec | {t} |
#define ae2f_BitVecFndOneDefName | ( | t | ) |
#define ae2f_BitVecGet | ( | vector, | |
idx ) |
Gets a bit of [vector] from index of [idx].
vector | {size_t} The target for operation. |
idx | {ae2f_Macro_BitVecI_t} The wanted index for searching. |
#define ae2f_BitVecGetRanged | ( | vector, | |
start, | |||
end ) |
Gets the bits of [vector] between index of [start] and [end].
It will normalise the values of [start] and [end] by switching them.
vector | {size_t} The target for operation. |
start | {ae2f_Macro_BitVecI_t} The starting index. |
end | {ae2f_Macro_BitVecI_t} The ending index. |
#define ae2f_BitVecSet | ( | vector, | |
idx, | |||
val ) |
Sets a bit of [vector] from index of [idx] by [val].
vector | {size_t} The target for operation. |
idx | {bool} The wanted index for searching. |
#define ae2f_BitVecSetRanged | ( | vector, | |
start, | |||
end, | |||
val ) |
Sets the bits of [vector] from index of [start] and [end] by [val].
It will normalise the values of [start] and [end] by switching them.
vector | {vec_t} The target for operation. |
start | {ae2f_Macro_BitVecI_t} The starting index. |
end | {ae2f_Macro_BitVecI_t} The ending index. |
val | {size_t} The value to set. |
#define ae2f_BitVecSizeDef | ( | t | ) |
Gets the vec's last index where the flag set to 1.
t | Must be an integer type |
vec | {t} |
#define ae2f_BitVecSizeDefName | ( | t | ) |
typedef uint8_t ae2f_BitVecI_t |