================
@@ -0,0 +1,73 @@
+#if __CLC_FPSIZE == 32
+
+_CLC_OVERLOAD _CLC_DEF __CLC_INTN __clc_ilogb(__CLC_GENTYPE x) {
+  __CLC_UINTN ux = __CLC_AS_UINTN(x);
----------------
arsenm wrote:

although I guess this better if you have a dedicated frexp_exp instruction. 
Could factor out the frexp_exp part into a utility function, which does the 
bithacking or the intrinsic 

https://github.com/llvm/llvm-project/pull/128028
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to