banderlog 1 Posted 2012-01-09 21:07:40 Share Posted 2012-01-09 21:07:40 это актуально для stg-2.408-rc2? Link to post Share on other sites
madf 279 Posted 2012-01-10 12:54:59 Share Posted 2012-01-10 12:54:59 это актуально для stg-2.408-rc2? Теоретически BE поддерживается. Но т.к. у меня негде єто тестировать то может уже и сломалось. Link to post Share on other sites
banderlog 1 Posted 2012-01-10 17:29:16 Share Posted 2012-01-10 17:29:16 (edited) таки BE, тестил этим: #include <iostream> using namespace std; int main (int argc, char *argv[]) { unsigned int i; unsigned char *p = (unsigned char *)&i; cout<<"Enter an unsigned integer value: "; cin>>i; cout<<"i = "<<i<<endl <<"Comparison: &i = "<<&i<<endl <<" *p = "<<(int *)p<<endl<<endl <<"Byte 1: "<<(int)p[0]<<endl <<"Byte 2: "<<(int)p[1]<<endl <<"Byte 3: "<<(int)p[2]<<endl <<"Byte 4: "<<(int)p[3]<<endl; unsigned int foo = ((i % (1 << 24)) % (1 << 16)) % (1 << 8); if ((unsigned int)p[0] == foo) cout<<endl<<" === Little Endian ==="<<endl; else cout<<endl<<" === Big Endian ==="<<endl; cout<<endl; return 0; } root@OpenWrt:~# /tmp/test3 Enter an unsigned integer value: 6 i = 6 Comparison: &i = 0x7fdc1a60 *p = 0x7fdc1a60 Byte 1: 0 Byte 2: 0 Byte 3: 0 Byte 4: 6 === Big Endian === проц Atheros AR7240 rev2. на ноутбуке LE Edited 2012-01-10 19:35:10 by banderlog Link to post Share on other sites
banderlog 1 Posted 2012-01-10 19:39:04 Share Posted 2012-01-10 19:39:04 так что теперь оно опять поломалось. хотя конечно хз что за версия сервака стоит у них. или можно пропатчить только клиента? Link to post Share on other sites
madf 279 Posted 2012-01-11 08:09:35 Share Posted 2012-01-11 08:09:35 так что теперь оно опять поломалось. хотя конечно хз что за версия сервака стоит у них. или можно пропатчить только клиента? Ну оно могло и не работать. Мы тогда проверяли работу в случае когда сам сервер находится на платформе BE. Так что скорее всего достаточно будет пропатчить клиента. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now