We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Handmade Network»Feed
longtran2904
I've been playing around with the compiler-generated output. For some reason, ab_int is UB in GCC …
»
smilima
Where is the new guide?
»
Mārtiņš Možeiko
For some reason, this will convert 2.6f to 3f. Yes, you're right. It will round. I wrote it wrong.…
»
longtran2904
f = f + 0x1p23f - 0x1p23f; For some reason, this will convert 2.6f to 3f. Why do you check for 0x1…
»
Mārtiņš Možeiko
Can you list a couple of meanings? 8-bit. 16-bit. 32-bit. It depends on computer architecture. The…
»
hiddenfrog
Thanks. Now it works. I missed the reupload.
»
longtran2904
What "word" actually means is up to architecture/cpu. They can mean different things. Can you list…
»
x13pixels
Please re-download 0.3.9.9. A fix for this was posted shortly after this was reported and a new bu…
»
Mārtiņš Možeiko
What is a word and how big is it? In Win32, there's a WORD type of 16 bytes. In Windows WORD is 16…
»
longtran2904
Yes, that's correct. uint8/int8 are exactly 8-bit wide types. How many bits are in "char" type is …
»
Mārtiņš Možeiko
Are there similar flags on MSVC or Clang? Clang has most of gcc flags. Not all of them are impleme…
»
hiddenfrog
In this new version I have a problem: "The initial directory used in the file open dialog for comm…
»
longtran2904
Yes, those flags are reliable (aside occasional compiler bugs). Afaik whole linux kernel is compil…
»
x13pixels
RemedyBG 0.3.9.9 is now available for download. Added a toggle "Keep Location Centered" to the dis…
»
Mārtiņš Možeiko
Yes, those flags are reliable (aside occasional compiler bugs). Afaik whole linux kernel is compil…
»
longtran2904
Compilers do not have "spec" in "C spec" of way. They have behavior that is different from version…
»
Mārtiņš Možeiko
If I want to fake overflow the number here, can I do this return b - (INT_MAX - a)? If by "fake it…
»
longtran2904
if (a > 0 && b > INT_MAX - a) { ERROR: overflow happens } If I want to fake overflow the number he…
»
Mārtiņš Možeiko
Then how can I check for it? Depends on operation. I showed example above for overflow check when …
»
longtran2904
For signed integers over/under-flow is undefined behavior Then how can I check for it? When castin…
»
ratchetfreak
6 and 7 in recent C++ versions have to do with strict aliasing which makes this kind of thing unde…
»
Mārtiņš Možeiko
For unsigned integers overflow/underflow is defined behavior. It performs operation % 2**n. For si…
»
longtran2904
A couple of questions regarding undefined behavior and integer math in C/C++:Is overflow/underflow…
»
@Mattias_G
Version 2.0 have now been officially released, more details here:
»
Mārtiņš Možeiko
The way that works is that debugger can look up virtual table pointer. That has a specific type - …
»
Simon Anciaux
You might have a faster answer by asking in the handmade network discord in the remedybg section.
»
vegust
Hello, I am working with a codebase that heavily utilizes virtual inheritance, and my debugging ex…
»
Christoffer Lernö
This is the first time I post anything here in "Work-in-Progress" about C3, so it's going to be a …
»
Christoffer Lernö
It's been about one month since C3 0.5.3 (announcement) was released. Since then there has been qu…
»
Mór
The larger the forum, the worse it is. Reddit is what you describe. This forum is one of the good …
»