All the kernel header files now use pargma once rather than the ifndef, as the pre-processed C files do not change while header files are protected with pargma once. This will also solve any naming issues caused by ifndef.
17 lines
312 B
C
17 lines
312 B
C
/*
|
|
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <config.h>
|
|
#include <types.h>
|
|
#include <arch/model/statedata.h>
|
|
|
|
static inline CONST uint64_t div64(uint64_t numerator, uint32_t denominator)
|
|
{
|
|
return numerator / denominator;
|
|
}
|
|
|