We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5404 - [PATCH] stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf
Summary: [PATCH] stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2020-12-18 18:44 UTC by Cameron Cawley
Modified: 2020-12-23 21:48 UTC (History)
0 users

See Also:


Attachments
stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf (12.77 KB, patch)
2020-12-18 18:44 UTC, Cameron Cawley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Cawley 2020-12-18 18:44:28 UTC
Created attachment 4589 [details]
stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf

The default implementation is based on the one used in the Windows RT video driver.
Comment 1 Sam Lantinga 2020-12-23 21:48:42 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/f0d07ca25fc6