Skip to content

Commit 786ae36

Browse files
committed
Calculate SDL_fmod
1 parent 4a59633 commit 786ae36

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

units/sdlstdinc.inc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,22 @@ function SDL_floor(x: cdouble): cdouble; cdecl;
314314
function SDL_floorf(x: cfloat): cfloat; cdecl;
315315
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_floorf' {$ENDIF} {$ENDIF};
316316

317+
(**
318+
* Calculate the floating-point remainder of dividing x by y.
319+
*
320+
* \since This function is available since SDL 2.0.8.
321+
*)
322+
function SDL_fmod(x, y: cdouble): cdouble; cdecl;
323+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_fmod' {$ENDIF} {$ENDIF};
324+
325+
(**
326+
* Calculate the floating-point remainder of dividing x by y.
327+
*
328+
* \since This function is available since SDL 2.0.8.
329+
*)
330+
function SDL_fmodf(x, y: cfloat): cfloat; cdecl;
331+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_fmodf' {$ENDIF} {$ENDIF};
332+
317333
(**
318334
* Calculate the natural logarithm of x.
319335
*

0 commit comments

Comments
 (0)