| 1 | #pragma once |
| 2 | |
| 3 | #ifdef UACPI_OVERRIDE_LIBC |
| 4 | #include "uacpi_libc.h" |
| 5 | #else |
| 6 | /* |
| 7 | * The following libc functions are used internally by uACPI and have a default |
| 8 | * (sub-optimal) implementation: |
| 9 | * - strcmp |
| 10 | * - strnlen |
| 11 | * - strlen |
| 12 | * - snprintf |
| 13 | * - vsnprintf |
| 14 | * |
| 15 | * The following use a builtin implementation only if UACPI_USE_BUILTIN_STRING |
| 16 | * is defined (more information can be found in the config.h header): |
| 17 | * - memcpy |
| 18 | * - memmove |
| 19 | * - memset |
| 20 | * - memcmp |
| 21 | * |
| 22 | * In case your platform happens to implement optimized verisons of the helpers |
| 23 | * above, you are able to make uACPI use those instead by overriding them like so: |
| 24 | * |
| 25 | * #define uacpi_memcpy my_fast_memcpy |
| 26 | * #define uacpi_snprintf my_fast_snprintf |
| 27 | */ |
| 28 | #endif |
| 29 | |