IssueRaiser

Note, in case someone blindly takes this as advice: This method of expressing it in C doesn't work for multiplication (you could wrap mor...

Note, in case someone blindly takes this as advice: This method of expressing it in C doesn't work for multiplication (you could wrap more than once). I'm not sure you can express an overflow check for multiplication purely in portable C (without library or intrinsic support), actually. Well, I guess you could break the multiplication into checked additions manually, but that's probably not a great idea.

Posted by stormbrew on Jun 4, 2014, 9:41 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,500 issues0 comments

support (Other)

Note, in case someone blindly takes this as advice: This method of expressing it in C doesn't work for multiplication (you could wrap mor...

stormbrewJun 4, 2014, 9:41 PM

Note, in case someone blindly takes this as advice: This method of expressing it in C doesn't work for multiplication (you could wrap more than once). I'm not sure you can express an overflow check for multiplication purely in portable C (without library or intrinsic support), actually. Well, I guess you could break the multiplication into checked additions manually, but that's probably not a great idea.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue