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

Summary: [PATCH] stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf
Product: SDL Reporter: Cameron Cawley <ccawley2011>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.16
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf

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