Is there a way to tell if your system is big endian or little endian with out running a program cuz I dont have gcc install? either sudo so i cant sudo install it.
Is there a way to tell if your system is big endian or little endian with out running a program cuz I dont have gcc install? either sudo so i cant sudo install it.
Well I can tell you that if you are using an Intel x86 based system, it is little endian. If you have a PowerPC, (old Apple machines) it is big endian (Apparently that architecture can do both).
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Google says: Bash Tips