Asterisk - The Open Source Telephony Project  18.5.0
Macros | Functions
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.

Macros

#define inline   __inline__
 

Functions

static int ilog2 (int val)
 

Detailed Description

log2comp.h - various base 2 log computation versions

Asterisk – An open source telephony toolkit.

Author
Alex Volkov codep[email protected][email protected][email protected]sa.ne[email protected]t

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.

Macro Definition Documentation

◆ inline

#define inline   __inline__

Definition at line 20 of file log2comp.h.

Function Documentation

◆ ilog2()

static int ilog2 ( int  val)
inlinestatic

Definition at line 67 of file log2comp.h.

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

68 {
69  int i;
70  for (i = -1; val; ++i, val >>= 1)
71  ;
72  return (i);
73 }
Definition: ast_expr2.c:325