1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 by Michael Sevakis
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
26 /* round a signed/unsigned 32bit value to the closest of a list of values */
27 /* returns the index of the closest value */
28 int round_value_to_list32(unsigned long value
,
29 const unsigned long list
[],
33 int make_list_from_caps32(unsigned long src_mask
,
34 const unsigned long *src_list
,
35 unsigned long caps_mask
,
36 unsigned long *caps_list
);
38 size_t align_buffer(void **start
, size_t size
, size_t align
);
40 #endif /* GENERAL_H */