We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c081b commit ba9203aCopy full SHA for ba9203a
examples/c/helpers.h
@@ -14,11 +14,11 @@ typedef union {
14
uint32_t c;
15
} colour;
16
17
-__attribute__((always_inline)) uint32_t alpha(uint32_t sa, uint32_t da) {
+__attribute__((always_inline)) inline uint32_t alpha(uint32_t sa, uint32_t da) {
18
return ((sa + 1) * (da)) >> 8;
19
}
20
21
-__attribute__((always_inline)) uint8_t blend_channel(uint8_t s, uint8_t d, uint8_t a) {
+__attribute__((always_inline)) inline uint8_t blend_channel(uint8_t s, uint8_t d, uint8_t a) {
22
return d + ((a * (s - d) + 127) >> 8);
23
24
0 commit comments