Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
AuxConvert.c File Reference

Utilities for encoding format conversion. More...

#include "fasp.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

unsigned long fasp_aux_change_endian4 (const unsigned long x)
 Swap order for different endian systems. More...
 
double fasp_aux_change_endian8 (const double x)
 Swap order for different endian systems. More...
 
double fasp_aux_bbyteToldouble (const unsigned char bytes[])
 Swap order of double-precision float for different endian systems. More...
 

Detailed Description

Utilities for encoding format conversion.

Note
This file contains Level-0 (Aux) functions.

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file AuxConvert.c.

Function Documentation

◆ fasp_aux_bbyteToldouble()

double fasp_aux_bbyteToldouble ( const unsigned char  bytes[])

Swap order of double-precision float for different endian systems.

Parameters
bytesA unsigned char
Returns
Unsigend long ineger after swapping
Author
Chensong Zhang
Date
11/16/2009

Definition at line 81 of file AuxConvert.c.

◆ fasp_aux_change_endian4()

unsigned long fasp_aux_change_endian4 ( const unsigned long  x)

Swap order for different endian systems.

Parameters
xAn unsigned long integer
Returns
Unsigend long ineger after swapping
Author
Chensong Zhang
Date
11/16/2009

Definition at line 32 of file AuxConvert.c.

◆ fasp_aux_change_endian8()

double fasp_aux_change_endian8 ( const double  x)

Swap order for different endian systems.

Parameters
xA unsigned long integer
Returns
Unsigend long ineger after swapping
Author
Chensong Zhang
Date
11/16/2009

Definition at line 50 of file AuxConvert.c.