The longname function has variants named _longname32 and _longname64 for use with 32-bit and 64-bit pointer sizes, respectively.