Commit 0109ea2b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: types.h -- Rename BITS_PER_ULONG to BITS_PER_LONG

Lets stick to names used in kernel.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3165fd78
...@@ -235,7 +235,7 @@ typedef uint32_t auxv_t; ...@@ -235,7 +235,7 @@ typedef uint32_t auxv_t;
static inline void *decode_pointer(uint64_t v) { return (void*)(uint32_t)v; } static inline void *decode_pointer(uint64_t v) { return (void*)(uint32_t)v; }
static inline uint64_t encode_pointer(void *p) { return (uint32_t)p; } static inline uint64_t encode_pointer(void *p) { return (uint32_t)p; }
#define BITS_PER_ULONG 32 #define BITS_PER_LONG 32
typedef struct { typedef struct {
struct user_vfp ufp; struct user_vfp ufp;
......
...@@ -258,7 +258,7 @@ typedef uint64_t auxv_t; ...@@ -258,7 +258,7 @@ typedef uint64_t auxv_t;
typedef UserX86RegsEntry UserRegsEntry; typedef UserX86RegsEntry UserRegsEntry;
#define BITS_PER_ULONG 64 #define BITS_PER_LONG 64
static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; } static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }
static inline void *decode_pointer(uint64_t v) { return (void*)v; } static inline void *decode_pointer(uint64_t v) { return (void*)v; }
......
...@@ -178,7 +178,7 @@ static void print_hex_l(unsigned long num, struct simple_buf *b) ...@@ -178,7 +178,7 @@ static void print_hex_l(unsigned long num, struct simple_buf *b)
hexdigit(num >> 24, &buf[11], &z); hexdigit(num >> 24, &buf[11], &z);
hexdigit(num >> 28, &buf[10], &z); hexdigit(num >> 28, &buf[10], &z);
#if BITS_PER_ULONG == 64 #if BITS_PER_LONG == 64
hexdigit(num >> 32, &buf[9], &z); hexdigit(num >> 32, &buf[9], &z);
hexdigit(num >> 36, &buf[8], &z); hexdigit(num >> 36, &buf[8], &z);
hexdigit(num >> 40, &buf[7], &z); hexdigit(num >> 40, &buf[7], &z);
......
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