https://github.com/saksham-joshi closed
https://github.com/llvm/llvm-project/pull/138713
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
saksham-joshi wrote:
> > Yeah! you are right that the size depends on the variable, but I never said
> > to create a variable.
> > Suppose I have two functions performing same process but one is returning
> > bool and other one is returning int.
> >
> > 1. bool fnc1() { return (_Bool)true; }
>
https://github.com/saksham-joshi closed
https://github.com/llvm/llvm-project/pull/138649
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/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/3] FEAT: one byte for "true" & "false"
In C programming l
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
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,
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
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
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