[clang] FEAT: 1 byte for "true" & "false" (PR #138713)

2025-05-06 Thread SAKSHAM JOSHI via cfe-commits
https://github.com/saksham-joshi created https://github.com/llvm/llvm-project/pull/138713 # In C language, - the size of "true" and "false" macro is 4 bytes (for x64 arch) - but the size of "bool" (typedef _Bool) is 1 byte. - In order to decrease the memory usage, we can set the size of "true

[clang] FEAT: one byte for "true" & "false" (PR #138649)

2025-05-06 Thread SAKSHAM JOSHI via cfe-commits
https://github.com/saksham-joshi updated https://github.com/llvm/llvm-project/pull/138649 Rate limit ยท GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,

[clang] FEAT: one byte for "true" & "false" (PR #138649)

2025-05-06 Thread SAKSHAM JOSHI via cfe-commits
https://github.com/saksham-joshi updated https://github.com/llvm/llvm-project/pull/138649 >From 8bba07d817d4dd583122d7ed831de276da8801e0 Mon Sep 17 00:00:00 2001 From: SAKSHAM JOSHI Date: Tue, 6 May 2025 12:43:34 +0530 Subject: [PATCH 1/2] FEAT: one byte for "true" & "false" In C programming l

[clang] FEAT: one byte for "true" & "false" (PR #138649)

2025-05-06 Thread SAKSHAM JOSHI via cfe-commits
https://github.com/saksham-joshi updated https://github.com/llvm/llvm-project/pull/138649 >From 8bba07d817d4dd583122d7ed831de276da8801e0 Mon Sep 17 00:00:00 2001 From: SAKSHAM JOSHI Date: Tue, 6 May 2025 12:43:34 +0530 Subject: [PATCH] FEAT: one byte for "true" & "false" In C programming langu

[clang] FEAT: one byte for "true" & "false" (PR #138649)

2025-05-06 Thread SAKSHAM JOSHI via cfe-commits
https://github.com/saksham-joshi created https://github.com/llvm/llvm-project/pull/138649 ### 1 byte is enough for bool - In C programming language, - the size of **"true"** and **"false"** macros is 4 byte and size of macro "bool" (typedef of _Bool) is 1 byte. - By this simple change, we ca