Files
mirror_zfs/include/os/freebsd/spl/sys
chenqiuhao1997 9edf6af4ae Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN.
In P2ALIGN, the result would be incorrect when align is unsigned
integer and x is larger than max value of the type of align.
In that case, -(align) would be a positive integer, which means
high bits would be zero and finally stay zero after '&' when
align is converted to a larger integer type.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Qiuhao Chen <chenqiuhao1997@gmail.com>
Closes #15940
2024-05-13 10:27:38 -05:00
..
2024-04-29 13:50:05 -07:00
2020-04-14 11:36:28 -07:00
2022-11-07 15:55:33 -08:00
2020-07-29 16:35:33 -07:00
2020-04-14 11:36:28 -07:00
2022-11-07 15:55:37 -08:00
2020-04-14 11:36:28 -07:00
2022-05-13 10:15:31 -07:00
2020-04-14 11:36:28 -07:00
2022-01-26 11:38:52 -08:00
2022-03-18 06:47:57 -06:00
2023-03-02 13:51:56 -08:00
2020-04-14 11:36:28 -07:00
2022-05-13 10:15:31 -07:00
2020-04-14 11:36:28 -07:00
2023-11-06 16:33:18 -08:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2024-02-20 15:53:02 -08:00
2020-04-14 11:36:28 -07:00
2022-09-20 14:50:16 -07:00
2023-11-28 15:19:07 -08:00
2021-05-27 14:27:29 -06:00
2020-08-31 19:43:08 -07:00