~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to src/adios_endianness.h

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * ADIOS is freely available under the terms of the BSD license described
3
 
 * in the COPYING file in the top level directory of this source distribution.
4
 
 *
5
 
 * Copyright (c) 2008 - 2009.  UT-BATTELLE, LLC. All rights reserved.
6
 
 */
7
 
 
8
 
#ifndef ENDIANNESS_H 
9
 
#define ENDIANNESS_H 1
10
 
 
11
 
#include "adios_types.h"
12
 
 
13
 
void show_bytes(unsigned char * start, int len);
14
 
 
15
 
void swap_ptr(void * data, int size);
16
 
 
17
 
void swap_16_ptr(void *data);
18
 
 
19
 
void swap_32_ptr(void *data);
20
 
 
21
 
void swap_64_ptr(void *data);
22
 
 
23
 
void swap_128_ptr(void *data);
24
 
 
25
 
#define swap_16(data) swap_16_ptr(&(data))
26
 
 
27
 
#define swap_32(data) swap_32_ptr(&(data))
28
 
 
29
 
#define swap_64(data) swap_64_ptr(&(data))
30
 
 
31
 
#define swap_128(data) swap_128_ptr(&(data))
32
 
 
33
 
void swap_adios_type(void *data, enum ADIOS_DATATYPES type);
34
 
 
35
 
void swap_adios_type_array(void *payload, enum ADIOS_DATATYPES type, uint64_t payload_size);
36
 
 
37
 
#endif