14#include "fasp_functs.h"
34 unsigned char *ptr = (
unsigned char *)&x;
35 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3];
53 unsigned char *bytes, *buffer;
55 buffer=(
unsigned char *)&dbl;
56 bytes=(
unsigned char *)&x;
84 unsigned char *buffer;
85 buffer=(
unsigned char *)&dbl;
unsigned long fasp_aux_change_endian4(const unsigned long x)
Swap order for different endian systems.
double fasp_aux_bbyteToldouble(const unsigned char bytes[])
Swap order of double-precision float for different endian systems.
double fasp_aux_change_endian8(const double x)
Swap order for different endian systems.
Main header file for the FASP project.