Files
kernel_xiaomi_raphael/lib
Sultan Alsawaf 2e57085d1e cpumask: Add optimized helpers when NR_CPUS fits in a long
When NR_CPUS fits in a long, it's possible to use compiler built-ins to
produce much faster code when operating on cpumasks compared to just using
the generic bitops APIs.

Therefore, add optimized helpers using compiler built-ins when NR_CPUS fits
in a long. This also turns nr_cpu_ids into a compile-time constant for
further optimization potential.

Note that compared to the upstream cpumask rewrite with this feature, these
optimized helpers perfectly preserve the semantics of the helpers they
replace. And this change is much smaller than the upstream version.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2023-09-27 18:05:39 +03:00
..
2022-05-27 08:51:18 +00:00
2022-09-22 17:33:54 +03:00
2022-05-27 08:51:18 +00:00
2017-06-09 11:52:07 +02:00
2022-04-11 08:52:28 +00:00
2019-04-20 09:15:07 +02:00
2023-03-16 18:11:12 +02:00
2022-10-07 11:19:36 +03:00
2018-12-08 13:03:35 +01:00
2022-10-07 11:26:56 +03:00
2017-08-15 09:02:07 -07:00