Hi,
The lib folder is something created when compiling and in particular you are only getting the headers here.
The histc cpu implementation is here 79. The THTensorApply macros are defined here 18 but are quite involved to read.