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.
2bytes
Hi, I'm working with the 0.3.7.1 version at the moment - great program by the way. On newer versio…
»
Christoffer Lernö
Another month and another C3 0.5.x release (read the 0.5.4 announcement here), grab it here: https…
»
Mārtiņš Možeiko
For doubles you can do SSE1 way, with repeated add/sub's. Or you can unpack exponent & mantissa an…
»
longtran2904
I've been using SSE2 for my function based on your gist. How can I do the same thing for 64-bit in…
»
sam_windell
I did a little write up of something I've been working on. A solution to a shared-memory problem.
»
Mārtiņš Možeiko
It was either that part, of the other UB. I'm not saying that leaving other UB is fine. It just ha…
»
longtran2904
So how did you know commenting out the "probably UB" line would make it generate the correct code?…
»
Mārtiņš Možeiko
It affects everything. That comes after, that comes before. Related variable, unrelated variables.…
»
longtran2904
Huh, interesting. So UB affects not only that one line but also the code that comes after it. But …
»
Mārtiņš Možeiko
Once you have UB in code, you cannot rely any calculations. Comment out "This is probably UB" sect…
»
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…
»