Files
mirror_zfs/module/os/freebsd/zfs
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-03-28 13:29:46 -07:00
2023-11-08 12:15:41 -08:00
2024-02-20 15:53:02 -08:00
2022-03-15 15:13:42 -07:00
2023-03-22 09:24:41 -07:00
2023-01-19 16:59:05 -08:00
2024-04-19 10:13:38 -07:00
2023-09-19 08:52:06 -07:00