hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
hce-node application
HCE project node model
Namespaces
Classes
Files
File List
sources
src
utils
algorithms
applicationFramework
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
src
citrusleaf
cf_alloc.h
cf_atomic.h
cf_average.h
cf_base_types.h
cf_byte_order.h
cf_clock.h
cf_digest.h
cf_errno.h
cf_hist.h
cf_hooks.h
cf_ll.h
cf_log.h
cf_log_internal.h
cf_packet_compression.h
cf_queue.h
cf_service.h
cf_shash.h
cf_socket.h
cf_vector.h
citrusleaf-internal.h
citrusleaf.h
cl_cluster.h
cl_request.h
cl_shm.h
proto.h
Exceptions
Aerospike.cpp
Aerospike.hpp
BaseDB.hpp
DataBaseDriverConfig.cpp
DataBaseDriverConfig.hpp
Errors.hpp
FakeDB.hpp
HCETimer.hpp
LevelDB.cpp
LevelDB.hpp
ORMFunctionalObject.cpp
ORMFunctionalObject.hpp
Response.hpp
Voldemort.cpp
Voldemort.hpp
tests
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
cf_byte_order.h
Go to the documentation of this file.
1
/*
2
* Copyright 2013 Aerospike. All rights reserved.
3
*/
4
5
#pragma once
6
7
#ifndef CF_WINDOWS
8
#ifdef OSX
9
//====================================================================
10
// Mac OS
11
//
12
13
#include <libkern/OSByteOrder.h>
14
15
#define cf_byteswap64p(_p) (OSSwapBigToHostInt64(*(_p)))
16
17
18
#else
19
//====================================================================
20
// Linux
21
//
22
23
#include <netinet/in.h>
24
#include <asm/byteorder.h>
25
26
#define htonll(_n) (__cpu_to_be64(_n))
27
#define ntohll(_n) (__be64_to_cpu(_n))
28
29
#define cf_byteswap64p(_p) (__swab64p((const __u64*)(_p)))
30
31
32
#endif
33
#else // CF_WINDOWS
34
//====================================================================
35
// Windows
36
//
37
38
#include <stdint.h>
39
#include <stdlib.h>
40
#include <WinSock2.h>
41
42
#define cf_byteswap64p(_p) (_byteswap_uint64(*(uint64_t*)(_p)))
43
44
45
#endif // CF_WINDOWS
sources
utils
kvdb
src
citrusleaf
cf_byte_order.h
Generated on Tue Jun 30 2015 19:42:13 for hce-node application by
1.8.1.2