lib: Create a separate math helper function file
authorAtish Patra <atish.patra@wdc.com>
Sat, 9 May 2020 23:47:25 +0000 (16:47 -0700)
committerAnup Patel <anup@brainfault.org>
Sun, 10 May 2020 04:29:24 +0000 (09:59 +0530)
commit13ca20d8df3b402d12e5701c651a53409db167d8
treec7afbf73b0047ab7534379f64f465c86ea1fcea6
parentaef9a60d521a7810557d1caf826311bc349691ac
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>
include/sbi/sbi_math.h [new file with mode: 0644]
lib/sbi/objects.mk
lib/sbi/sbi_hart.c
lib/sbi/sbi_math.c [new file with mode: 0644]