Commit 49883d68 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

common: Move in bit operation helpers

travis-ci: success for Common headers
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 4485723f
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "images/core.pb-c.h" #include "images/core.pb-c.h"
#include "asm/page.h" #include "asm/page.h"
#include "asm/bitops.h" #include "bitops.h"
#include "asm/int.h" #include "asm/int.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "images/core.pb-c.h" #include "images/core.pb-c.h"
#include "asm/page.h" #include "asm/page.h"
#include "asm/bitops.h" #include "bitops.h"
#include "asm/int.h" #include "asm/int.h"
#define SIGMAX 64 #define SIGMAX 64
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "images/core.pb-c.h" #include "images/core.pb-c.h"
#include "asm/page.h" #include "asm/page.h"
#include "asm/bitops.h" #include "bitops.h"
#include "asm/int.h" #include "asm/int.h"
/* /*
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <sys/types.h> #include <sys/types.h>
#include "asm/bitops.h" #include "bitops.h"
#include "asm/types.h" #include "asm/types.h"
#include "asm/cpu.h" #include "asm/cpu.h"
#include "asm/fpu.h" #include "asm/fpu.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <signal.h> #include <signal.h>
#include "asm/page.h" #include "asm/page.h"
#include "asm/bitops.h" #include "bitops.h"
#include "asm/int.h" #include "asm/int.h"
#include "images/core.pb-c.h" #include "images/core.pb-c.h"
......
#include "bitsperlong.h" #include "common/bitsperlong.h"
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
......
#ifndef __CR_INC_BITOPS_H__ #ifndef __CR_INC_BITOPS_H__
#define __CR_INC_BITOPS_H__ #define __CR_INC_BITOPS_H__
#include "asm/bitops.h" #include "common/bitops.h"
#endif #endif
#ifndef __CR_INC_BITSPERLONG_H__ #ifndef __CR_INC_BITSPERLONG_H__
#define __CR_INC_BITSPERLONG_H__ #define __CR_INC_BITSPERLONG_H__
#include "asm/bitsperlong.h" #include "common/bitsperlong.h"
#endif #endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "int.h" #include "int.h"
#include "types.h" #include "types.h"
#include "bitsperlong.h" #include "common/bitsperlong.h"
#include "syscall.h" #include "syscall.h"
#include "log.h" #include "log.h"
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
#define __CR_ASM_BITOPS_H__ #define __CR_ASM_BITOPS_H__
#include "common/compiler.h" #include "common/compiler.h"
#include "asm-generic/bitops.h" #include "common/asm-generic/bitops.h"
#endif /* __CR_ASM_BITOPS_H__ */ #endif /* __CR_ASM_BITOPS_H__ */
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
#define __CR_ASM_BITOPS_H__ #define __CR_ASM_BITOPS_H__
#include "common/compiler.h" #include "common/compiler.h"
#include "asm-generic/bitops.h" #include "common/asm-generic/bitops.h"
#endif /* __CR_ASM_BITOPS_H__ */ #endif /* __CR_ASM_BITOPS_H__ */
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include "common/compiler.h" #include "common/compiler.h"
#include "asm/bitsperlong.h" #include "common/asm/bitsperlong.h"
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
......
#ifndef __CR_BITOPS_H__ #ifndef __CR_BITOPS_H__
#define __CR_BITOPS_H__ #define __CR_BITOPS_H__
#include "asm/bitsperlong.h" #include "common/asm/bitsperlong.h"
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
......
#ifndef __CR_COMMON_BITOPS_H__
#define __CR_COMMON_BITOPS_H__
#include "asm/bitops.h"
#endif
#ifndef __CR_COMMON_BITSPERLONG_H__
#define __CR_COMMON_BITSPERLONG_H__
#include "asm/bitsperlong.h"
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment