log ... add_idle_callback x7ffb339f8040 , x0 <==== here in perl the pointer to function is 64bits ... <=========== but then swig- SvUV() or SvIV() cast it to 32 bits :: x339f8040 to x339f8040 ::DPTR2FPTR x339f8040 to x339f8040 ....