drop obsolete and unsupported big endian support - refs #2806

This commit is contained in:
Dane Springmeyer 2015-05-12 10:19:37 -07:00
parent 73dbec32fa
commit 613766b104
2 changed files with 0 additions and 21 deletions

View file

@ -157,11 +157,7 @@ public:
inline unsigned rgba() const
{
#ifdef MAPNIK_BIG_ENDIAN
return static_cast<unsigned>((alpha_) | (blue_ << 8) | (green_ << 16) | (red_ << 24)) ;
#else
return static_cast<unsigned>((alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_)) ;
#endif
}
private:
void swap(color & rhs)

View file

@ -220,30 +220,13 @@ public:
inline double read_double()
{
double val;
#ifndef MAPNIK_BIG_ENDIAN
file_.read(reinterpret_cast<char*>(&val), 8);
#else
char b[8];
file_.read(b, 8);
read_double_ndr(b, val);
#endif
return val;
}
inline void read_envelope(box2d<double>& envelope)
{
#ifndef MAPNIK_BIG_ENDIAN
file_.read(reinterpret_cast<char*>(&envelope), sizeof(envelope));
#else
char data[4 * 8];
file_.read(data,4 * 8);
double minx, miny, maxx, maxy;
read_double_ndr(data + 0 * 8, minx);
read_double_ndr(data + 1 * 8, miny);
read_double_ndr(data + 2 * 8, maxx);
read_double_ndr(data + 3 * 8, maxy);
envelope.init(minx, miny, maxx, maxy);
#endif
}
inline void skip(std::streampos bytes)