From: jsg Date: Mon, 9 Oct 2023 02:15:40 +0000 (+0000) Subject: use shifts for size defines X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0f7c7d20c93b715982b9d6b733997b5bdb2d050c;p=openbsd use shifts for size defines --- diff --git a/sys/dev/pci/drm/include/linux/sizes.h b/sys/dev/pci/drm/include/linux/sizes.h index 8aacace765a..f1d97cc42f8 100644 --- a/sys/dev/pci/drm/include/linux/sizes.h +++ b/sys/dev/pci/drm/include/linux/sizes.h @@ -3,21 +3,21 @@ #ifndef _LINUX_SIZES_H #define _LINUX_SIZES_H -#define SZ_1K (1024 * 1) -#define SZ_2K (1024 * 2) -#define SZ_4K (1024 * 4) -#define SZ_8K (1024 * 8) -#define SZ_16K (1024 * 16) -#define SZ_32K (1024 * 32) -#define SZ_64K (1024 * 64) -#define SZ_128K (1024 * 128) -#define SZ_256K (1024 * 256) -#define SZ_512K (1024 * 512) -#define SZ_1M (1024 * 1024 * 1) -#define SZ_2M (1024 * 1024 * 2) -#define SZ_4M (1024 * 1024 * 4) -#define SZ_8M (1024 * 1024 * 8) -#define SZ_16M (1024 * 1024 * 16) -#define SZ_1G (1024 * 1024 * 1024 * 1) +#define SZ_1K (1 << 10) +#define SZ_2K (2 << 10) +#define SZ_4K (4 << 10) +#define SZ_8K (8 << 10) +#define SZ_16K (16 << 10) +#define SZ_32K (32 << 10) +#define SZ_64K (64 << 10) +#define SZ_128K (128 << 10) +#define SZ_256K (256 << 10) +#define SZ_512K (512 << 10) +#define SZ_1M (1 << 20) +#define SZ_2M (2 << 20) +#define SZ_4M (4 << 20) +#define SZ_8M (8 << 20) +#define SZ_16M (16 << 20) +#define SZ_1G (1 << 30) #endif