diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-05-09 16:47:25 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-10 09:59:24 +0530 |
commit | 13ca20d8df3b402d12e5701c651a53409db167d8 (patch) | |
tree | c7afbf73b0047ab7534379f64f465c86ea1fcea6 /include/sbi/sbi_math.h | |
parent | aef9a60d521a7810557d1caf826311bc349691ac (diff) |
lib: Create a separate math helper function file
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>
Diffstat (limited to 'include/sbi/sbi_math.h')
-rw-r--r-- | include/sbi/sbi_math.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/sbi/sbi_math.h b/include/sbi/sbi_math.h new file mode 100644 index 0000000..564fd58 --- /dev/null +++ b/include/sbi/sbi_math.h @@ -0,0 +1,15 @@ +/* + * 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 |