This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran, patch] Implement POPCNT and POPPAR


Hello!

> Please find attached a patch implementing the Fortran 2008 intrinsics POPCNT and POPPAR. They're implemented by using the existing popcount(), popcountl() and popcountll() builtins. For types larger than 'long long int' (i.e. 128 bit integer on x86_64), we call the long long variant twice on two 64-bit parts, and add the results.

Hm, why you don't also use __buitlin_parity and friends?

Uros.,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]