cosmopolitan/dsp/core/c121.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

18 lines
383 B
C

#ifndef COSMOPOLITAN_DSP_CORE_C121_H_
#define COSMOPOLITAN_DSP_CORE_C121_H_
COSMOPOLITAN_C_START_
__funline unsigned char C121(unsigned char al, unsigned char bl,
unsigned char cl) {
unsigned short ax;
ax = al;
ax += bl;
ax += bl;
ax += cl;
ax += 2;
ax >>= 2;
return ax;
}
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_DSP_CORE_C121_H_ */