Add intrinsics.
This commit is contained in:
+1
-13
@@ -2,7 +2,7 @@
|
||||
#include "handmade.h"
|
||||
#include "sdl_handmade.h"
|
||||
|
||||
#include <math.h>
|
||||
#include "handmade_intrinsics.h"
|
||||
#include <string.h> /* memset */
|
||||
|
||||
static void GameOutputSound(game_state *GameState,
|
||||
@@ -51,18 +51,6 @@ static void ClearBackground(game_offscreen_buffer *Buffer)
|
||||
}
|
||||
}
|
||||
|
||||
static S32 RoundF32toS32(F32 Real32)
|
||||
{
|
||||
S32 Result = (S32)(Real32 + 0.5f);
|
||||
return Result;
|
||||
}
|
||||
|
||||
static S32 FloorF32toS32(F32 Real32)
|
||||
{
|
||||
S32 Result = (S32)floorf(Real32);
|
||||
return Result;
|
||||
}
|
||||
|
||||
static void DrawRectangle(game_offscreen_buffer *Buffer,
|
||||
F32 RealMinX, F32 RealMinY,
|
||||
F32 RealMaxX, F32 RealMaxY,
|
||||
|
||||
Reference in New Issue
Block a user