commit | 783b20712ea0155f1881a6bd0bf8e2717a717db5 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Fri Apr 23 20:52:38 2021 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri May 07 13:36:22 2021 -0400 |
tree | cf49ce9c0d5b693f30f5e35b02fbdb856d2e0e09 | |
parent | 3b2fd1ca0d951ee06279afca0a8f565459d5550b [diff] |
arch: implement brute force find_lsb_set() On RISC-V 64-bit, GCC complains about undefined reference to 'ffs' via __builtin_ffs(). So implement a brute force way to do it. Once the toolchain has __builtin_ffs(), this can be reverted. Signed-off-by: Daniel Leung <daniel.leung@intel.com>