Back to index

lightning-sunbird  0.9+nobinonly
h_log2.c File Reference
#include "watcomfx.h"
#include <stdio.h>
#include <sys/types.h>
#include "mcom_db.h"

Go to the source code of this file.


uint32 __log2 (uint32 num)

Function Documentation

uint32 __log2 ( uint32  num)

Definition at line 47 of file h_log2.c.

       register uint32 i, limit;

       limit = 1;
       for (i = 0; limit < num; limit = limit << 1, i++) {}
       return (i);

Here is the caller graph for this function: