Add ceiling division helper function

pull/149/head
Yichao Yu 5 years ago
parent 24276282e1
commit f9117491b7
No known key found for this signature in database
GPG Key ID: 07F45E2A1937DD32

@ -23,6 +23,11 @@
#include <rtw_bt_mp.h>
#endif
static inline UINT ceil_divide(UINT a, UINT b)
{
return (a + b - 1) / b;
}
#ifdef CONFIG_MP_VHT_HW_TX_MODE
#define CEILING_POS(X) ((X - (int)(X)) > 0 ? (int)(X + 1) : (int)(X))
#define CEILING_NEG(X) ((X - (int)(X)) < 0 ? (int)(X - 1) : (int)(X))

Loading…
Cancel
Save