cosmopolitan/dsp/core/half.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
226 B
C
Raw Normal View History

2020-06-15 14:18:57 +00:00
#ifndef COSMOPOLITAN_DSP_CORE_HALF_H_
#define COSMOPOLITAN_DSP_CORE_HALF_H_
#include "libc/macros.h"
2020-06-15 14:18:57 +00:00
/**
* Divides integer in half w/ rounding.
*/
2021-02-04 01:14:17 +00:00
#define HALF(X) (((X) + 1) / 2)
2020-06-15 14:18:57 +00:00
#endif /* COSMOPOLITAN_DSP_CORE_HALF_H_ */