1/* 2 * Copyright 2016, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the GNU General Public License version 2. Note that NO WARRANTY is provided. 8 * See "LICENSE_GPLv2.txt" for details. 9 * 10 * @TAG(DATA61_GPL) 11 */ 12#ifndef __MODE_UTIL_H 13#define __MODE_UTIL_H 14 15#include <config.h> 16#include <types.h> 17#include <arch/model/statedata.h> 18 19static inline CONST uint64_t 20div64(uint64_t numerator, uint32_t denominator) 21{ 22 return numerator / denominator; 23} 24 25#endif /* __MODE_UTIL_H */ 26