Wireshark
4.3.0
The Wireshark network protocol analyzer
wsutil
type_util.h
Go to the documentation of this file.
1
11
#ifndef __TYPE_UTIL_H__
12
#define __TYPE_UTIL_H__
13
14
#include <inttypes.h>
15
#include "ws_symbol_export.h"
16
17
/*
18
* uint64_t to double conversions taken from gstutils.h of GStreamer project
19
*
20
* GStreamer
21
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
22
* 2000 Wim Taymans <wtay@chello.be>
23
* 2002 Thomas Vander Stichele <thomas@apestaart.org>
24
*
25
* gstutils.h: Header for various utility functions
26
*
27
* GNU GPL v2
28
*
29
*/
30
31
WS_DLL_PUBLIC
32
uint64_t type_util_gdouble_to_guint64(
double
value);
33
WS_DLL_PUBLIC
34
double
type_util_guint64_to_gdouble(uint64_t value);
35
36
#ifdef _WIN32
37
#define gdouble_to_guint64(value) type_util_gdouble_to_guint64(value)
38
#define guint64_to_gdouble(value) type_util_guint64_to_gdouble(value)
39
#else
40
#define gdouble_to_guint64(value) ((uint64_t)(value))
41
#define guint64_to_gdouble(value) ((double)(value))
42
#endif
43
44
#endif
/* __TYPE_UTIL_H__ */
Generated by
1.9.1