Subversion Repositories HelenOS

Rev

Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2479 Rev 2541
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef LIBC_BITOPS_H_
35
#ifndef LIBC_BITOPS_H_
36
#define LIBC_BITOPS_H_
36
#define LIBC_BITOPS_H_
37
 
37
 
38
#include <types.h>
38
#include <sys/types.h>
39
 
39
 
40
 
40
 
41
/** Return position of first non-zero bit from left (i.e. [log_2(arg)]).
41
/** Return position of first non-zero bit from left (i.e. [log_2(arg)]).
42
 *
42
 *
43
 * If number is zero, it returns 0
43
 * If number is zero, it returns 0