mupdf
Loading...
Searching...
No Matches
system.h File Reference
#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"
Include dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

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)

Macro Definition Documentation

◆ ARCH_HAS_NEON

#define ARCH_HAS_NEON   0

Spot architectures where we have optimisations.

◆ ARCH_HAS_SSE

#define ARCH_HAS_SSE   0

◆ EOF

#define EOF   (-1)

◆ FZ_DEGREE

#define FZ_DEGREE   0.017453292f

◆ FZ_FLEXIBLE_ARRAY

#define FZ_FLEXIBLE_ARRAY

Include the standard libc headers.

◆ fz_forceinline

#define fz_forceinline   inline

◆ FZ_LN2

#define FZ_LN2   0.69314718f

◆ fz_longjmp

#define fz_longjmp ( BUF,
VAL )
Value:
longjmp(BUF,VAL)

◆ FZ_MEMORY_BLOCK_ALIGN_MOD

#define FZ_MEMORY_BLOCK_ALIGN_MOD   sizeof(void *)

◆ FZ_NORETURN

#define FZ_NORETURN

◆ FZ_PI

#define FZ_PI   3.14159265f

◆ FZ_POINTER_ALIGN_MOD

#define FZ_POINTER_ALIGN_MOD   FZ_MEMORY_BLOCK_ALIGN_MOD

◆ FZ_PRINTFLIKE

#define FZ_PRINTFLIKE ( F,
V )

◆ FZ_RADIAN

#define FZ_RADIAN   57.2957795f

◆ FZ_RESTRICT

#define FZ_RESTRICT

◆ fz_setjmp

#define fz_setjmp ( BUF)
Value:
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.

◆ FZ_SQRT2

#define FZ_SQRT2   1.41421356f

◆ FZ_UNUSED

#define FZ_UNUSED

◆ HAVE_SIGSETJMP

#define HAVE_SIGSETJMP   0

Some differences in libc can be smoothed over

◆ inline

#define inline

◆ nelem

#define nelem ( x)
Value:
(sizeof(x)/sizeof((x)[0]))

◆ PACIFY_VALGRIND

#define PACIFY_VALGRIND

◆ PATH_MAX

#define PATH_MAX   4096

◆ S_ISDIR

#define S_ISDIR ( mode)
Value:
((mode) & S_IFDIR)

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_END

#define SEEK_END   2

◆ SEEK_SET

#define SEEK_SET   0

Typedef Documentation

◆ fz_jmp_buf

typedef jmp_buf fz_jmp_buf

Function Documentation

◆ fz_mkdir()

int fz_mkdir ( char * path)

◆ fz_stat_ctime()

int64_t fz_stat_ctime ( const char * path)

◆ fz_stat_mtime()

int64_t fz_stat_mtime ( const char * path)