GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Fast value scaling macros. More...
Go to the source code of this file.
Macros | |
#define | GP_SCALE_VAL(s1, s2, val) ( GP_SCALE_VAL_##s1##_##s2(val) ) |
Helper macros to transfer s1-bit value to s2-bit value. | |
Fast value scaling macros.
Definition in file gp_convert_scale.gen.h.
#define GP_SCALE_VAL | ( | s1, | |
s2, | |||
val | |||
) | ( GP_SCALE_VAL_##s1##_##s2(val) ) |
Helper macros to transfer s1-bit value to s2-bit value.
Efficient and accurate for both up- and downscaling.
s1 | Number of bits to scale from. |
s2 | Number of bits to scale to. |
val | A value to be scaled. |
Definition at line 35 of file gp_convert_scale.gen.h.