This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Implement POPCNT and POPPAR
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Fortran List <fortran at gcc dot gnu dot org>, FX <fxcoudert at gmail dot com>
- Date: Tue, 31 Aug 2010 13:54:01 +0200
- Subject: 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.,