ReactOS 0.4.16-dev-1946-g52006dd
round.c File Reference
#include "math_helpers.h"
Include dependency graph for round.c:

Go to the source code of this file.

Macros

#define _CRTBLD
 

Functions

void Test_round (void)
 
void Test_roundf (void)
 
 START_TEST (round)
 

Variables

static TESTENTRY_DBL s_round_tests []
 
static TESTENTRY_FLT s_roundf_tests []
 

Macro Definition Documentation

◆ _CRTBLD

#define _CRTBLD

Definition at line 9 of file round.c.

Function Documentation

◆ START_TEST()

START_TEST ( round  )

Definition at line 128 of file round.c.

129{
130 Test_round();
131 Test_roundf();
132}
void Test_roundf(void)
Definition: round.c:116
void Test_round(void)
Definition: round.c:59

◆ Test_round()

void Test_round ( void  )

Definition at line 59 of file round.c.

60{
61 int i;
62
63 for (i = 0; i < _countof(s_round_tests); i++)
64 {
65 double x = u64_to_dbl(s_round_tests[i].x);
66 double z = round(x);
68 }
69}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLuint64EXT * result
Definition: glext.h:11304
GLdouble GLdouble z
Definition: glext.h:5874
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define ok_eq_dbl_exact(func, ullx, z, ullexp)
Definition: math_helpers.h:184
static __inline double u64_to_dbl(UINT64 x)
Definition: math_helpers.h:25
static TESTENTRY_DBL s_round_tests[]
Definition: round.c:13
#define round(x)
Definition: opentype.c:47
#define _countof(array)
Definition: sndvol32.h:70

Referenced by START_TEST().

◆ Test_roundf()

void Test_roundf ( void  )

Definition at line 116 of file round.c.

117{
118 int i;
119
120 for (i = 0; i < _countof(s_roundf_tests); i++)
121 {
122 float x = u32_to_flt(s_roundf_tests[i].x);
123 float z = roundf(x);
125 }
126}
_Check_return_ __CRT_INLINE float roundf(_In_ float x)
Definition: math.h:295
static __inline float u32_to_flt(UINT32 x)
Definition: math_helpers.h:41
#define ok_eq_flt_exact(func, ux, z, uexp)
Definition: math_helpers.h:194
static TESTENTRY_FLT s_roundf_tests[]
Definition: round.c:71

Referenced by START_TEST().

Variable Documentation

◆ s_round_tests

TESTENTRY_DBL s_round_tests[]
static

Definition at line 13 of file round.c.

Referenced by Test_round().

◆ s_roundf_tests

TESTENTRY_FLT s_roundf_tests[]
static

Definition at line 71 of file round.c.

Referenced by Test_roundf().