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 ****************************************************************************/
25 /* round a signed/unsigned 32bit value to the closest of a list of values */
26 /* returns the index of the closest value */
27 int round_value_to_list32(unsigned long value
,
28 const unsigned long list
[],
32 int make_list_from_caps32(unsigned long src_mask
,
33 const unsigned long *src_list
,
34 unsigned long caps_mask
,
35 unsigned long *caps_list
);
38 #endif /* GENERAL_H */