1.0 KiB
1.0 KiB
title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
| title | type | source | source_url | author | handle | post_id | date | archived | draft | tags | description | in_reply_to | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Remember that integer range checks can always be done with only one comparison: (unsigned) (x - min) <= (unsigned) (max - min) | archive | https://x.com/EricLengyel/status/546120250450653184 | Eric Lengyel | EricLengyel | 546120250450653184 | 2014-12-20 | 2026-08-27 | false |
|
Remember that integer range checks can always be done with only one comparison: (unsigned) (x - min) <= (unsigned) (max - min) |
Source
- URL: https://x.com/EricLengyel/status/546120250450653184
- Author: Eric Lengyel (@EricLengyel)
- Posted: 2014-12-20 01:49:48
Thread
1/ @EricLengyel ^546120250450653184
Remember that integer range checks can always be done with only one comparison: (unsigned) (x - min) <= (unsigned) (max - min)