summaryrefslogtreecommitdiffhomepage
path: root/src/rmem.h
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-03 19:26:28 +0100
committerRay <[email protected]>2020-02-03 19:26:28 +0100
commitc3f06b7470b2654c4cce20c3e18c46ad81330b3f (patch)
tree0497e56ed1915773ce76d318fb3934aa7674124e /src/rmem.h
parenta7afd8de99f74139647845c8a20513a4bc217767 (diff)
downloadraylib-c3f06b7470b2654c4cce20c3e18c46ad81330b3f.tar.gz
raylib-c3f06b7470b2654c4cce20c3e18c46ad81330b3f.zip
Remove all trail spaces
Diffstat (limited to 'src/rmem.h')
-rw-r--r--src/rmem.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rmem.h b/src/rmem.h
index 9c7d0a70..6ea6ffaa 100644
--- a/src/rmem.h
+++ b/src/rmem.h
@@ -694,7 +694,7 @@ BiStack CreateBiStack(const size_t len)
{
BiStack destack = { 0 };
if (len == 0UL) return destack;
-
+
destack.size = len;
destack.mem = malloc(len*sizeof *destack.mem);
if (destack.mem==NULL) destack.size = 0UL;
@@ -726,11 +726,11 @@ void DestroyBiStack(BiStack *const destack)
void *BiStackAllocFront(BiStack *const destack, const size_t len)
{
if ((destack == NULL) || (destack->mem == NULL)) return NULL;
-
+
const size_t ALIGNED_LEN = __AlignSize(len, sizeof(uintptr_t));
// front end stack is too high!
if (destack->front + ALIGNED_LEN >= destack->back) return NULL;
-
+
uint8_t *ptr = destack->front;
destack->front += ALIGNED_LEN;
return ptr;
@@ -739,11 +739,11 @@ void *BiStackAllocFront(BiStack *const destack, const size_t len)
void *BiStackAllocBack(BiStack *const destack, const size_t len)
{
if ((destack == NULL) || (destack->mem == NULL)) return NULL;
-
+
const size_t ALIGNED_LEN = __AlignSize(len, sizeof(uintptr_t));
// back end stack is too low
if (destack->back - ALIGNED_LEN <= destack->front) return NULL;
-
+
destack->back -= ALIGNED_LEN;
return destack->back;
}