Files
mesa/src/util
Chia-I Wu 6e2bb716b0 util: improve BITFIELD_MASK and BITFIELD64_MASK on clang
gcc is able to optimize away either the modulo or the logical and.  This
makes no difference to gcc.

clang is only able to optimize away the logical and.  This allows clang
to generate faster code for BITFIELD_MASK.

As for BITFIELD64_MASK, this also makes no difference to clang except it
fixes a compile error for BITFIELD64_MASK(64):

  error: shift count >= width of type [-Werror,-Wshift-count-overflow]

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9989
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25757>
2023-10-18 03:20:24 +00:00
..
2023-10-14 01:01:16 +00:00
2023-07-03 19:51:04 +00:00
2022-04-22 19:38:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2023-10-09 23:37:52 +00:00
2022-06-02 13:09:16 +00:00
2023-01-19 03:25:55 +00:00
2023-03-05 16:31:51 +00:00
2022-11-14 20:13:20 +00:00
2023-04-24 22:42:04 +00:00
2023-02-12 17:11:16 +00:00
2023-09-14 22:31:22 +00:00
2023-09-14 22:31:22 +00:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2023-05-19 16:30:44 +00:00
2022-08-04 23:53:49 +00:00
2022-11-24 04:33:07 +00:00
2022-12-17 19:14:12 +00:00
2023-10-16 07:59:38 +00:00