All these companies in this realm are vultures. They add nothing - they just take their cut to do something that should be easy.
Dead Comment
All these companies in this realm are vultures. They add nothing - they just take their cut to do something that should be easy.
Once it actually is usable, sure, I'll take a look.
if (a < b)
return a + (b - a) / 2;
else return b + (a - b) / 2;
This method is just more efficient (for places where it matters) as it avoids divisions and branches. But for a vast, vast majority of use-case that tiny efficiency gain doesn’t really matter.min(a,b) + (max(a,b) - min(a,b))>>1
min(x, y)+( ((unsigned int)abs(x-y))>>1);
with no issue.
abs(x-y)is the distance between points x and y. We don't care about order here because of the absolute value. And by its nature, it will always be positive - hence unsigned.
We divide the distance between the points by 2. This always provides a solution that fits in the signed bounds of X and Y once you add to min(x,y).
And it costs an ABS, a subtract, a non-negative bitshift, and a min().
To make it more complete, a switch statement depending on type of input function would be needed to handle the various sizes of numbers. And then it'd be doing the same but for long int->unsigned long int etc.
https://www.reddit.com/r/linux_gaming/comments/nfeupc/modern...
I emailed Activision support back and forth more than a dozen times explaining the issue, finally resulting in them saying they were escalating to another team. I sent them another four emails over three months, asking if there was any update, before asking if there was even anybody left alive at the company that my emails were reaching, with no response.
I really enjoyed the MW2019 campaign, but I won't be buying another game from Activision.
The perfluro- line of chemicals are quite amazing.. if it werent for them being completely obnoxious and stay in the body like lead.
Snap is closed source garbage ware, with MS Windows forced updating and the terribleness of being 10x slower....
So here's how to "Snap-Off" your system https://haydenjames.io/remove-snap-ubuntu-22-04-lts/
https://news.ycombinator.com/newsguidelines.html
Edit: you've been breaking the site guidelines repeatedly lately:
https://news.ycombinator.com/item?id=33821967
https://news.ycombinator.com/item?id=33766363
https://news.ycombinator.com/item?id=33682063
https://news.ycombinator.com/item?id=33671032
... and we've already asked you more than once to stop:
https://news.ycombinator.com/item?id=32808611 (Sept 2022)
https://news.ycombinator.com/item?id=31520523 (May 2022)
Would you mind reviewing https://news.ycombinator.com/newsguidelines.html and fixing this? I don't want to ban you, but if you can't or won't stop posting abusively, we'll end up having to.
I'll abandon this account and create another. It's not hard to game the "community" here.
And especially since you don't allow deletion of accounts, it's actually a good thing to regularly get new. Thank you for reminding me.