⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 internal.h

📁 ST5518机顶盒系统文件系统源代码!绝对超值!
💻 H
字号:
/******************************************************************************File Name : internal.hDescription: General definitions and macros for internal use.******************************************************************************/#ifndef  INTERNAL_H#define  INTERNAL_H    /* Includes ------------------------------------------------------------ */    /* Exported Types ------------------------------------------------------ */    /* Exported Constants -------------------------------------------------- */    /* Exported Variables -------------------------------------------------- */    /* Exported Macros ----------------------------------------------------- */#define TABLE_LEN(x) (sizeof(x)/sizeof(*(x)))#define INT_I64_AreEqual(A,B)               (((A).LSW == (B).LSW) && ((A).MSW == (B).MSW))#define INT_I64_AreNotEqual(A,B)            (((A).LSW != (B).LSW) || ((A).MSW != (B).MSW))#define INT_I64_GetValue(Value,Lower,Upper) ((Lower) = (Value).LSW, (Upper) = (Value).MSW)#define INT_I64_IsGreaterOrEqual(A,B)       ((A).LSW >= (B).LSW)#define INT_I64_IsLessThan(A,B)             ((A).LSW < (B).LSW)#define INT_I64_IsNegative(A)               (((A).LSW & 0X80000000) != 0)#define INT_I64_IsZero(A)                   (((A).LSW == 0) && ((A).MSW == 0))#define INT_I64_SetValue(Lower,Upper,Value) ((Value).LSW = (Lower), (Value).MSW = (Upper))#define INT_I64_SetLitValue(Lower,Value) ((Value).LSW = (Lower), (Value).MSW = 0)#define INT_I64_ShiftLeft(Shift,Value)      ((Value).LSW <<= (Shift)))#define INT_I64_ShiftRight(Shift,Value)     ((Value).LSW >>= (Shift)))#define INT_I64_Add(A,B,Value)              ((Value).LSW = (A).LSW + (B).LSW)#define INT_I64_Sub(A,B,Value)              ((Value).LSW = (A).LSW - (B).LSW)#define INT_I64_Div(A,B,Value)              ((Value).LSW = (A).LSW / (B).LSW)#define INT_I64_Mul(A,B,Value)              ((Value).LSW = (A).LSW * (B).LSW)#define INT_I64_Mod(A,B,Value)              ((Value).LSW = (A).LSW % (B).LSW)#define INT_I64_AddLit(A,B,Value)           ((Value).LSW = (A).LSW + (B), (Value).MSW = 0)#define INT_I64_SubLit(A,B,Value)           ((Value).LSW = (A).LSW - (B), (Value).MSW = 0)#define INT_I64_LitDiff(A,B,Value)          ((Value) = (A).LSW - (B).LSW)#define INT_I64_DivLit(A,B,Value)           ((Value).LSW = (A).LSW / (B), (Value).MSW = 0)#define INT_I64_MulLit(A,B,Value)           ((Value).LSW = (A).LSW * (B), (Value).MSW = 0)#define INT_I64_ModLit(A,B,Value)           ((Value).LSW = (A).LSW % (B), (Value).MSW = 0)    /* Exported Function Prototypes ---------------------------------------- */#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -