Commit 3a27f968 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'acd2b8e4'

* commit 'acd2b8e4':
  rnd_avg.h: K&R formatting cosmetics
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6016b832 acd2b8e4
...@@ -25,14 +25,16 @@ ...@@ -25,14 +25,16 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#define CALL_2X_PIXELS(a, b, n)\ #define CALL_2X_PIXELS(a, b, n) \
static void a(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\ static void a(uint8_t *block, const uint8_t *pixels, \
b(block , pixels , line_size, h);\ ptrdiff_t line_size, int h) \
b(block+n, pixels+n, line_size, h);\ { \
b(block, pixels, line_size, h); \
b(block + n, pixels + n, line_size, h); \
} }
#define BYTE_VEC32(c) ((c)*0x01010101UL) #define BYTE_VEC32(c) ((c) * 0x01010101UL)
#define BYTE_VEC64(c) ((c)*0x0001000100010001UL) #define BYTE_VEC64(c) ((c) * 0x0001000100010001UL)
static inline uint32_t rnd_avg32(uint32_t a, uint32_t b) static inline uint32_t rnd_avg32(uint32_t a, uint32_t b)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment