2023-10-06 11:19:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <types.h>
|
2023-10-06 13:05:34 +00:00
|
|
|
|
2023-10-06 11:19:09 +00:00
|
|
|
#include "printf.h"
|
|
|
|
|
|
|
|
namespace Emulator::HLE::Libraries::LibC {
|
|
|
|
|
2023-10-06 13:05:34 +00:00
|
|
|
// HLE functions
|
|
|
|
PS4_SYSV_ABI int printf(VA_ARGS);
|
2023-10-16 05:55:07 +00:00
|
|
|
int PS4_SYSV_ABI vsnprintf(char* s, size_t n, const char* format, VaList* arg);
|
2023-10-06 13:05:34 +00:00
|
|
|
PS4_SYSV_ABI void exit(int code);
|
|
|
|
PS4_SYSV_ABI int atexit(void (*func)());
|
|
|
|
int PS4_SYSV_ABI memcmp(const void* s1, const void* s2, size_t n);
|
|
|
|
void* PS4_SYSV_ABI memcpy(void* dest, const void* src, size_t n);
|
2023-10-06 18:49:53 +00:00
|
|
|
void* PS4_SYSV_ABI memset(void* s, int c, size_t n);
|
2023-10-14 21:23:01 +00:00
|
|
|
void* PS4_SYSV_ABI malloc(size_t size);
|
2023-10-15 13:03:55 +00:00
|
|
|
void PS4_SYSV_ABI free(void* ptr);
|
2023-10-14 21:23:01 +00:00
|
|
|
int PS4_SYSV_ABI strcmp(const char* str1, const char* str2);
|
|
|
|
size_t PS4_SYSV_ABI strlen(const char* str);
|
2023-10-15 13:03:55 +00:00
|
|
|
char* PS4_SYSV_ABI strncpy(char* dest, const char* src, size_t count);
|
|
|
|
void* PS4_SYSV_ABI memmove(void* dest, const void* src, std::size_t count);
|
2023-10-17 15:30:09 +00:00
|
|
|
char* PS4_SYSV_ABI strcpy(char* destination, const char* source);
|
|
|
|
char* PS4_SYSV_ABI strcat(char* dest, const char* src);
|
2023-10-17 14:15:08 +00:00
|
|
|
float PS4_SYSV_ABI atan2f(float y, float x);
|
2023-10-17 15:30:09 +00:00
|
|
|
float PS4_SYSV_ABI acosf(float num);
|
|
|
|
float PS4_SYSV_ABI tanf(float num);
|
|
|
|
float PS4_SYSV_ABI asinf(float num);
|
2023-10-19 09:27:28 +00:00
|
|
|
double PS4_SYSV_ABI pow(double base, double exponent);
|
|
|
|
double PS4_SYSV_ABI _Sin(double x);
|
2023-10-17 14:15:08 +00:00
|
|
|
|
2023-10-06 13:05:34 +00:00
|
|
|
} // namespace Emulator::HLE::Libraries::LibC
|