Sat Aug 6 00:39:58 2011

Asterisk developer's documentation


log2comp.h File Reference

log2comp.h - various base 2 log computation versions More...

Go to the source code of this file.

Defines

#define inline   __inline__

Functions

static int ilog2 (int val)


Detailed Description

log2comp.h - various base 2 log computation versions

Asterisk -- A telephony toolkit for Linux.

Author:
Alex Volkov <codepro@usa.net>
Copyright (c) 2004 - 2005, Digium Inc.

This program is free software, distributed under the terms of the GNU General Public License

Define WANT_ASM before including this file to use assembly whenever possible

Definition in file log2comp.h.


Define Documentation

#define inline   __inline__

Definition at line 20 of file log2comp.h.


Function Documentation

static int ilog2 ( int  val  )  [inline, static]

Definition at line 67 of file log2comp.h.

Referenced by fmult(), quantize(), and update().

00068 {
00069    int i;
00070    for (i = -1; val; ++i, val >>= 1)
00071       ;
00072    return (i);
00073 }


Generated on Sat Aug 6 00:39:58 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7