mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-22 06:08:54 +00:00
There may be few common mathematics helper functions which can be used anywhere in OpenSBI project. Add a separate math helper function file to add these functions. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
15 lines
274 B
C
15 lines
274 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2020 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Atish Patra <atish.patra@wdc.com>
|
|
*/
|
|
|
|
#ifndef __SBI_MATH_H__
|
|
#define __SBI_MATH_H__
|
|
|
|
unsigned long log2roundup(unsigned long x);
|
|
|
|
#endif
|