sys_clock: Explicitly set constants sign
Explicitly setting these constants as unsigned. MISRA rule 10.8 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
4f6020111c
commit
f1f82a8dae
1 changed files with 3 additions and 3 deletions
|
@ -62,13 +62,13 @@ static inline int sys_clock_hw_cycles_per_tick(void)
|
|||
#endif
|
||||
|
||||
/* number of nsec per usec */
|
||||
#define NSEC_PER_USEC 1000
|
||||
#define NSEC_PER_USEC 1000U
|
||||
|
||||
/* number of microseconds per millisecond */
|
||||
#define USEC_PER_MSEC 1000
|
||||
#define USEC_PER_MSEC 1000U
|
||||
|
||||
/* number of milliseconds per second */
|
||||
#define MSEC_PER_SEC 1000
|
||||
#define MSEC_PER_SEC 1000U
|
||||
|
||||
/* number of microseconds per second */
|
||||
#define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue