Skip to content

Commit d84629c

Browse files
committed
quirc: always inline perspective_map function
1 parent daf8ce6 commit d84629c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/esp32-quirc/lib/identify.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ static void perspective_setup(float *c,
9797
hden;
9898
}
9999

100-
static void perspective_map(const float *c,
101-
float u, float v, struct quirc_point *ret)
100+
__attribute__ ((always_inline))
101+
static inline void perspective_map(const float *c,
102+
float u, float v, struct quirc_point *ret)
102103
{
103104
float den = (float)1 / (c[6] * u + c[7] * v + (float)1.0);
104105
float x = (c[0] * u + c[1] * v + c[2]) * den;

0 commit comments

Comments
 (0)