|
mupdf
|
#include <stddef.h>#include <stdarg.h>#include <setjmp.h>#include <stdio.h>#include "export.h"#include <stdint.h>#include "mupdf/memento.h"#include "mupdf/fitz/track-usage.h"

Go to the source code of this file.
Macros | |
| #define | PACIFY_VALGRIND |
| #define | FZ_FLEXIBLE_ARRAY |
| #define | nelem(x) |
| #define | PATH_MAX 4096 |
| #define | FZ_PI 3.14159265f |
| #define | FZ_RADIAN 57.2957795f |
| #define | FZ_DEGREE 0.017453292f |
| #define | FZ_SQRT2 1.41421356f |
| #define | FZ_LN2 0.69314718f |
| #define | ARCH_HAS_NEON 0 |
| #define | ARCH_HAS_SSE 0 |
| #define | HAVE_SIGSETJMP 0 |
| #define | fz_setjmp(BUF) |
| #define | fz_longjmp(BUF, VAL) |
| #define | EOF (-1) |
| #define | SEEK_SET 0 |
| #define | SEEK_CUR 1 |
| #define | SEEK_END 2 |
| #define | S_ISDIR(mode) |
| #define | inline |
| #define | fz_forceinline inline |
| #define | FZ_RESTRICT |
| #define | FZ_NORETURN |
| #define | FZ_UNUSED |
| #define | FZ_PRINTFLIKE(F, V) |
| #define | FZ_MEMORY_BLOCK_ALIGN_MOD sizeof(void *) |
| #define | FZ_POINTER_ALIGN_MOD FZ_MEMORY_BLOCK_ALIGN_MOD |
Typedefs | |
| typedef jmp_buf | fz_jmp_buf |
Functions | |
| int64_t | fz_stat_ctime (const char *path) |
| int64_t | fz_stat_mtime (const char *path) |
| int | fz_mkdir (char *path) |
| #define ARCH_HAS_NEON 0 |
Spot architectures where we have optimisations.
| #define ARCH_HAS_SSE 0 |
| #define EOF (-1) |
| #define FZ_DEGREE 0.017453292f |
| #define FZ_FLEXIBLE_ARRAY |
Include the standard libc headers.
| #define fz_forceinline inline |
| #define FZ_LN2 0.69314718f |
| #define fz_longjmp | ( | BUF, | |
| VAL ) |
| #define FZ_MEMORY_BLOCK_ALIGN_MOD sizeof(void *) |
| #define FZ_NORETURN |
| #define FZ_PI 3.14159265f |
| #define FZ_POINTER_ALIGN_MOD FZ_MEMORY_BLOCK_ALIGN_MOD |
| #define FZ_PRINTFLIKE | ( | F, | |
| V ) |
| #define FZ_RADIAN 57.2957795f |
| #define FZ_RESTRICT |
| #define fz_setjmp | ( | BUF | ) |
Where possible (i.e. on platforms on which they are provided), use sigsetjmp/siglongjmp in preference to setjmp/longjmp. We don't alter signal handlers within mupdf, so there is no need for us to store/restore them - hence we use the non-restoring variants. This makes a large speed difference on MacOSX (and probably other platforms too.
| #define FZ_SQRT2 1.41421356f |
| #define FZ_UNUSED |
| #define HAVE_SIGSETJMP 0 |
Some differences in libc can be smoothed over
| #define inline |
| #define nelem | ( | x | ) |
| #define PACIFY_VALGRIND |
| #define PATH_MAX 4096 |
| #define S_ISDIR | ( | mode | ) |
| #define SEEK_CUR 1 |
| #define SEEK_END 2 |
| #define SEEK_SET 0 |
| typedef jmp_buf fz_jmp_buf |
| int fz_mkdir | ( | char * | path | ) |
| int64_t fz_stat_ctime | ( | const char * | path | ) |
| int64_t fz_stat_mtime | ( | const char * | path | ) |