[PATCH] D81408: [builtins] Improve compatibility with 16 bit targets

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 09:56:50 PDT 2020


MaskRay added inline comments.


================
Comment at: compiler-rt/lib/builtins/fp_lib.h:49
 
-static __inline int rep_clz(rep_t a) { return __builtin_clz(a); }
+static __inline int rep_clz(rep_t a) { return clzsi(a); }
 
----------------
Why is this needed?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81408/new/

https://reviews.llvm.org/D81408





More information about the cfe-commits mailing list