Commit a75d3961 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

cr: collect short integer aliases in the single place

This patch moves the files arch/$ARCH/include/asm/int.h to
include/asm-generic/int.h and makes the types {u,s}{8,16,32}
be aliases of the fixed sized integer types [u]int{8,16,32}_t.

This makes it possible to use single set of integer typedefs
in all architectural ports.
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 33a50cfd
#ifndef __CR_INT_H__ #ifndef __CR_ASM_INT_H__
#define __CR_INT_H__ #define __CR_ASM_INT_H__
#include <stdint.h> #include "asm-generic/int.h"
typedef uint64_t u64; #endif /* __CR_ASM_INT_H__ */
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#endif /* __CR_INT_H__ */
#ifndef __CR_ASM_TYPES_H__ #ifndef __CR_ASM_TYPES_H__
#define __CR_ASM_TYPES_H__ #define __CR_ASM_TYPES_H__
#include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <signal.h> #include <signal.h>
#include "protobuf/core.pb-c.h" #include "protobuf/core.pb-c.h"
......
#ifndef __CR_INT_H__ #ifndef __CR_ASM_INT_H__
#define __CR_INT_H__ #define __CR_ASM_INT_H__
#include <stdint.h> #include "asm-generic/int.h"
typedef uint64_t u64; #endif /* __CR_ASM_INT_H__ */
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#endif /* __CR_INT_H__ */
#ifndef __CR_INT_H__
#define __CR_INT_H__
#include <stdint.h>
typedef uint64_t u64;
typedef int64_t s64;
typedef uint32_t u32;
typedef int32_t s32;
typedef uint16_t u16;
typedef int16_t s16;
typedef uint8_t u8;
typedef int8_t s8;
#endif /* __CR_INT_H__ */
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