Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:49:04 2009

## Asterisk developer's documentation

# log2comp.h File Reference

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

This graph shows which files directly or indirectly include this file:

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 }