#ifndef _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H
#define _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
#endif
#ifndef __BIG_ENDIAN_BITFIELD
#define __BIG_ENDIAN_BITFIELD
#endif
#include <linux/types.h>
#include <linux/swab.h>
#define __constant_htonl(x) ((__force __be32)(__u32)(x))
#define __constant_ntohl(x) ((__force __u32)(__be32)(x))
#define __constant_htons(x) ((__force __be16)(__u16)(x))
#define __constant_ntohs(x) ((__force __u16)(__be16)(x))
#define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x)))
#define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x))
#define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x)))
#define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x))
#define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x)))
#define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x))
#define __constant_cpu_to_be64(x) ((__force __be64)(__u64)(x))
#define __constant_be64_to_cpu(x) ((__force __u64)(__be64)(x))
#define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x))
#define __constant_be32_to_cpu(x) ((__force __u32)(__be32)(x))
#define __constant_cpu_to_be16(x) ((__force __be16)(__u16)(x))
#define __constant_be16_to_cpu(x) ((__force __u16)(__be16)(x))
#define __cpu_to_le64(x) ((__force __le64)__swab64((x)))
#define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
#define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
#define __cpu_to_le16(x) ((__force __le16)__swab16((x)))
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
#define __cpu_to_be64(x) ((__force __be64)(__u64)(x))
#define __be64_to_cpu(x) ((__force __u64)(__be64)(x))
#define __cpu_to_be32(x) ((__force __be32)(__u32)(x))
#define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
#define __cpu_to_be16(x) ((__force __be16)(__u16)(x))
#define __be16_to_cpu(x) ((__force __u16)(__be16)(x))
static inline __le64 __cpu_to_le64p(const __u64 *p)
{
return (__force __le64)__swab64p(p);
}
static inline __u64 __le64_to_cpup(const __le64 *p)
{
return __swab64p((__u64 *)p);
}
static inline __le32 __cpu_to_le32p(const __u32 *p)
{
return (__force __le32)__swab32p(p);
}
static inline __u32 __le32_to_cpup(const __le32 *p)
{
return __swab32p((__u32 *)p);
}
static inline __le16 __cpu_to_le16p(const __u16 *p)
{
return (__force __le16)__swab16p(p);
}
static inline __u16 __le16_to_cpup(const __le16 *p)
{
return __swab16p((__u16 *)p);
}
static inline __be64 __cpu_to_be64p(const __u64 *p)
{
return (__force __be64)*p;
}
static inline __u64 __be64_to_cpup(const __be64 *p)
{
return (__force __u64)*p;
}
static inline __be32 __cpu_to_be32p(const __u32 *p)
{
return (__force __be32)*p;
}
static inline __u32 __be32_to_cpup(const __be32 *p)
{
return (__force __u32)*p;
}
static inline __be16 __cpu_to_be16p(const __u16 *p)
{
return (__force __be16)*p;
}
static inline __u16 __be16_to_cpup(const __be16 *p)
{
return (__force __u16)*p;
}
#define __cpu_to_le64s(x) __swab64s((x))
#define __le64_to_cpus(x) __swab64s((x))
#define __cpu_to_le32s(x) __swab32s((x))
#define __le32_to_cpus(x) __swab32s((x))
#define __cpu_to_le16s(x) __swab16s((x))
#define __le16_to_cpus(x) __swab16s((x))
#define __cpu_to_be64s(x) do { (void)(x); } while (0)
#define __be64_to_cpus(x) do { (void)(x); } while (0)
#define __cpu_to_be32s(x) do { (void)(x); } while (0)
#define __be32_to_cpus(x) do { (void)(x); } while (0)
#define __cpu_to_be16s(x) do { (void)(x); } while (0)
#define __be16_to_cpus(x) do { (void)(x); } while (0)
#endif /* _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H */
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
weixin_42653672
- 粉丝: 113
- 资源: 1万+
最新资源
- 基于Java语言的金蝶云苍穹消毒系统设计源码学习指南
- 基于Vue框架的dakang-pc心理咨询平台设计源码
- 基于Vue框架的ks-logistics-h5物流系统移动端H5设计源码
- 基于PHP开发的白王云平台设计源码
- Matlab Simulink下五相PMSM永磁同步电机SVPWM控制建模与仿真分析-涵盖多种电机类型及智能控制策略,Matlab Simulink下的五相PMSM永磁同步电机SVPWM控制仿真研究
- 基于模电数电与数字电路的Multisim仿真研究:数字频率计的精确测量与误差分析,基于Multisim的数字频率计:正弦波、方波及三角波精确测量,含源文件及误差说明,模电数电数字电路,数字频率计,mu
- 基于Vue的DineEase就餐小程序后端设计源码
- DL00642:使用U-Net卷积神经网络与PyTorch框架实现生物医学影像分割-以30张图像增强至100张进行高效训练,DL00642: 利用U-Net卷积神经网络在PyTorch框架下实现生物
- 基于Go语言的乐器商城后端设计源码
- 基于微信小程序框架的教研微信小程序设计源码
- 基于欧姆龙Omron PLC与MCGS触摸屏的交通灯控制系统的自控与手控双重模式研究与应用,基于Omron PLC与MCGS触摸屏的交通灯自动化与手动控制系统实现案例,No.740 基于欧姆龙Omro
- 基于React + Next.js + MUI的北京地铁图程序设计源码
- 基于DL00643-DQN算法的深度强化学习在三维在线装箱问题中的应用:角点优化与可放置点列表的动态更新机制,基于DL00643-DQN算法的深度强化学习在三维在线装箱问题中的应用:优化角点摆放策略与
- 三级倒立摆LQR控制详解:拉格朗日建模、MATLAB验证与Webots仿真实践,三级倒立摆LQR控制 - 基于Windows Webots的C语言仿真解析与实战教学:拉格朗日建模与MATLAB符号验证
- 基于C++语言的几何光学与离散数学融合案例设计源码研究
- 基于组态王组态的3x3七车位升降横移立体库控制系统的设计与实现,基于组态王组态的3x3七车位升降横移立体库控制系统的设计与实现,No.721 基于组态王组态的3x3 7车位升降横移立体库控制系统设计七
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)