[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Rethinking race-free process signaling

Rethinking race-free process signaling

Posted May 6, 2019 18:25 UTC (Mon) by mgedmin (guest, #34497)
In reply to: Rethinking race-free process signaling by kmweber
Parent article: Rethinking race-free process signaling

> The 255-point limit was annoying but straightforward enough to understand, but for the life of me I couldn't understand why accumulated rushing yards was limited at 1023. This was in the mid-to-late 2000s; it wasn't *that* long ago, and memory certainly wasn't scarce enough that it was worth the extra trouble of using bitfields or implementing an explicit limit in code that was less than the max value of the data type used.

16-bit fixed point numbers maybe, with 6 bits reserved for the fractional value?


to post comments

Rethinking race-free process signaling

Posted Sep 5, 2019 21:43 UTC (Thu) by kmweber (guest, #114635) [Link]

There is no fractional member. American football statistics are counted in whole numbers, and the game reflected that.

Essentially, the number of yards you've gained is equal to the number of yard lines you've crossed. So if you start from barely past the one yard line and get to just short of the four yard line, you've only officially gained two yards for statistics purposes even though you've actually gained very nearly three. And on the flip side, if you start from just short of the two yard line and end just past the three yard line, you're credited with a two-yard gain even though you've really covered barely more than one.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds