Skip to content

Commit

Permalink
fix compilation errors on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Yifei Teng committed Dec 7, 2015
1 parent a5bdb79 commit 15ac193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mp3/student-distrib/klibs/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ memset(void* s, int32_t c, uint32_t n)
*/

/* Optimized memset_word */
void*
void* __attribute__((used))
memset_word(void* s, int32_t c, uint32_t n)
{
asm volatile(" \n\
Expand All @@ -417,7 +417,7 @@ memset_word(void* s, int32_t c, uint32_t n)
* Function: set n consecutive memory locations of pointer s to value c
*/

void*
void* __attribute__((used))
memset_dword(void* s, int32_t c, uint32_t n)
{
asm volatile(" \n\
Expand All @@ -443,7 +443,7 @@ memset_dword(void* s, int32_t c, uint32_t n)
* Function: copy n bytes of src to dest
*/

void*
void* __attribute__((used))
memcpy(void* dest, const void* src, uint32_t n)
{
asm volatile(" \n\
Expand Down Expand Up @@ -495,7 +495,7 @@ memcpy(void* dest, const void* src, uint32_t n)
*/

/* Optimized memmove (used for overlapping memory areas) */
void*
void* __attribute__((used))
memmove(void* dest, const void* src, uint32_t n)
{
asm volatile(" \n\
Expand Down

0 comments on commit 15ac193

Please sign in to comment.