Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
general.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __UTILS_GENERAL_H__
14#define __UTILS_GENERAL_H__
15
22#define RETURN_OK return 0;
23#define RETURN_ERROR return 1;
24
28unsigned int
29utils_get_uint_from_bitfield_val (unsigned int bitfield);
30
35#endif
unsigned int utils_get_uint_from_bitfield_val(unsigned int bitfield)
From https://graphics.stanford.edu/~seander/bithacks.html#ZerosOnRightLinear.