Commit a937907f by Francois Gygi

use PLT_BIG_ENDIAN macro


git-svn-id: http://qboxcode.org/svn/qb/trunk@365 cba15fb0-1239-40c8-b417-11db7ca47a34
parent ce412ecf
......@@ -3,7 +3,7 @@
// SlaterDet.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SlaterDet.C,v 1.34 2005-02-08 19:32:22 fgygi Exp $
// $Id: SlaterDet.C,v 1.35 2005-03-17 17:18:27 fgygi Exp $
#include "SlaterDet.h"
#include "FourierTransform.h"
......@@ -1117,7 +1117,7 @@ void SlaterDet::print(ostream& os, string encoding)
if ( encoding == "base64" )
{
#if AIX
#if PLT_BIG_ENDIAN
xcdr.byteswap_double(ft.np012(),&wftmpr[0]);
#endif
int nbytes = ft.np012()*sizeof(double);
......@@ -1271,7 +1271,7 @@ void SlaterDet::write(FILE* outfile, string encoding)
if ( encoding == "base64" )
{
#if AIX
#if PLT_BIG_ENDIAN
xcdr.byteswap_double(ft.np012(),&wftmpr[0]);
#endif
......
......@@ -3,7 +3,7 @@
// WavefunctionHandler.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: WavefunctionHandler.C,v 1.10 2004-09-14 22:24:11 fgygi Exp $
// $Id: WavefunctionHandler.C,v 1.11 2005-03-17 17:16:15 fgygi Exp $
#if USE_XERCES
......@@ -402,7 +402,7 @@ void WavefunctionHandler::endElement(const XMLCh* const uri,
assert(length/sizeof(double)==ft->np012());
double* d = (double*) b;
#if AIX
#if PLT_BIG_ENDIAN
tm.reset();
tm.start();
byteswap_double(ft->np012(),d);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment