Kernel updates since December 2009

This commit is contained in:
Bahadir Balban
2010-03-25 01:12:40 +02:00
parent 16818191b3
commit 74b5963fcb
487 changed files with 22477 additions and 3857 deletions

View File

@@ -1,6 +1,16 @@
#ifndef __LIB_MATH_H__
#define __LIB_MATH_H__
/* Take the power */
static inline int pow(int val, int exp)
{
int res = 1;
for (int i = 0; i < exp; i++)
res *= val;
return res;
}
static inline int min(int x, int y)
{
return x < y ? x : y;