src/battle_effect/blitter_operands.c
The ARM immediate operands for powers of two, which the blitter builder (battle_effect_blitter.c) adds to its clip instructions to fit them to the canvas width, as The Broken Seal's builder does.
Macros
| Name | Description | |
|---|---|---|
#define | ARM_IMMEDIATE_BIT (n) | The 12-bit operand field that makes an ARM data-processing immediate equal to 1 << n: below 8 the value itself; from 8 the value 1 or 2 with the rotation in bits 8 to 11, rotated right by twice that (n 8 is 0xc01, 1 rotated right by 24). |
Variables
| Name | Description | |
|---|---|---|
const Uint16 | BlitterImmediatePowers [] | The operand for 1 << n, by n from 0 to 15: the blitter builder adds the one for the canvas width, as a power of two, to words 8 and 11 of its horizontal clip template, counting from 0. |
Description
The ARM immediate operands for powers of two, which the blitter builder
(battle_effect_blitter.c) adds to its clip instructions to fit them to the
canvas width, as The Broken Seal's builder does.
Macros in detail
ARM_IMMEDIATE_BIT
#define ARM_IMMEDIATE_BIT(n)
The 12-bit operand field that makes an ARM data-processing immediate equal to 1 << n: below 8 the value itself; from 8 the value 1 or 2 with the rotation in bits 8 to 11, rotated right by twice that (n 8 is 0xc01, 1 rotated right by 24).
Referenced by BlitterImmediatePowers.
Definition at line 12 of file blitter_operands.c.
Variables in detail
BlitterImmediatePowers
const Uint16 BlitterImmediatePowers[]
The operand for 1 << n, by n from 0 to 15: the blitter builder adds the one for the canvas width, as a power of two, to words 8 and 11 of its horizontal clip template, counting from 0.
Referenced by btEffectBuildBlitter().
Definition at line 18 of file blitter_operands.c.