mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
7 lines
190 B
C
Executable File
7 lines
190 B
C
Executable File
#pragma once
|
|
#include_next <math.h>
|
|
/* "Old" (Pre-2015) Windows headers/libc don't have round. */
|
|
static inline double round(double f)
|
|
{
|
|
return f >= 0? (int)(f + 0.5) : (int)(f - 0.5);
|
|
} |