From f98fd72fe7d1076cf7a7758a60541a65d5fda578 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 10 Dec 2006 22:50:00 +0000 Subject: Beginnings of a fixed point math library for use in plugins. fsincos() only for now, mostly copied from eq.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11709 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/fixedpoint.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 apps/plugins/lib/fixedpoint.h (limited to 'apps/plugins/lib/fixedpoint.h') diff --git a/apps/plugins/lib/fixedpoint.h b/apps/plugins/lib/fixedpoint.h new file mode 100755 index 0000000..065f9fb --- /dev/null +++ b/apps/plugins/lib/fixedpoint.h @@ -0,0 +1,22 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2006 Jens Arnold + * + * Fixed point library for plugins + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +long fsincos(unsigned long phase, long *cos); -- cgit v1.1