Skip to content

Commit 4a59633

Browse files
committed
Add SDL_scalbn
1 parent 724704c commit 4a59633

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

units/sdlstdinc.inc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,24 @@ function SDL_round(x: cdouble): cdouble; cdecl;
396396
function SDL_roundf(x: cfloat): cfloat; cdecl;
397397
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_roundf' {$ENDIF} {$ENDIF};
398398

399+
(**
400+
* Calculate x multiplied by the floating-point radix to the power of n.
401+
* On most systems, the radix is 2, making this equivalent to x*(2**n).
402+
*
403+
* \since This function is available since SDL 2.0.4.
404+
*)
405+
function SDL_scalbn(x: cdouble; n: cint): cdouble; cdecl;
406+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_scalbn' {$ENDIF} {$ENDIF};
407+
408+
(**
409+
* Calculate x multiplied by the floating-point radix to the power of n.
410+
* On most systems, the radix is 2, making this equivalent to x*(2**n).
411+
*
412+
* \since This function is available since SDL 2.0.8.
413+
*)
414+
function SDL_scalbnf(x: cfloat; n: cint): cfloat; cdecl;
415+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_scalbnf' {$ENDIF} {$ENDIF};
416+
399417
(**
400418
* Calculate the sine of x, where x is given in radians.
401419
*

0 commit comments

Comments
 (0)