* in the COPYING file in the root directory of this source tree).
*/
#include "Pzstd.h"
-extern "C" {
#include "datagen.h"
-}
#include "test/RoundTrip.h"
#include "utils/ScopeGuard.h"
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
*/
-extern "C" {
#include "datagen.h"
-}
#include "Options.h"
#include "test/RoundTrip.h"
#include "utils/ScopeGuard.h"
/* === Dependencies === */
#include <stddef.h> /* size_t */
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* ==== Benchmark any function, iterated on a set of blocks ==== */
/* BMK_runTime_t: valid result return type */
} BMK_timedFnState_shell;
BMK_timedFnState_t* BMK_initStatic_timedFnState(void* buffer, size_t size, unsigned total_ms, unsigned run_ms);
-
#endif /* BENCH_FN_H_23876 */
-
-#if defined (__cplusplus)
-}
-#endif
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */
#include "../lib/zstd.h" /* ZSTD_compressionParameters */
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* === Constants === */
#define MB_UNIT 1000000
#endif /* BENCH_ZSTD_H_3242387 */
-
-#if defined (__cplusplus)
-}
-#endif
#include <stddef.h> /* size_t */
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
void RDG_genStdout(unsigned long long size, double matchProba, double litProba, unsigned seed);
void RDG_genBuffer(void* buffer, size_t size, double matchProba, double litProba, unsigned seed);
/*!RDG_genBuffer
Same as RDG_genBuffer, but generates data into stdout
*/
+#if defined (__cplusplus)
+} /* extern "C" */
+#endif
+
#endif
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */
#include "../lib/zstd.h" /* ZSTD_* */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
/* *************************************
* Special i/o constants
**************************************/
char const* FIO_lz4Version(void);
char const* FIO_lzmaVersion(void);
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* FILEIO_H_23981798732 */
#define MAX_IO_JOBS (10)
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
typedef struct {
/* These struct fields should be set only on creation and not changed afterwards */
POOL_ctx* threadPool;
* Closes the current set file. Waits for all current enqueued tasks to complete and resets state. */
int AIO_ReadPool_closeFile(ReadPoolCtx_t *ctx);
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_FILEIO_ASYNCIO_H */
# include <windows.h>
#endif
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/*-*************************************
* Macros
***************************************/
# define LONG_TELL ftell
#endif
-#if defined (__cplusplus)
-}
-#endif
#endif /* ZSTD_FILEIO_COMMON_H */
typedef unsigned long long PTime; /* does not support compilers without long long support */
#endif
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* UTIL_time_t contains a nanosecond time counter.
* The absolute value is not meaningful.
* It's only valid to compute the difference between 2 measurements. */
#define SEC_TO_MICRO ((PTime)1000000) /* nb of microseconds in a second */
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* TIME_FN_H_MODULE_287987 */