MikroKopter.de
Wiki
SHOP
Datenschutz
Impressum
Projects
BL-Ctrl
FlightCtrl
MK3Mag
NaviCtrl
Català-Valencià – Catalan
中文 – Chinese (Simplified)
中文 – Chinese (Traditional)
Česky – Czech
Dansk – Danish
Nederlands – Dutch
English – English
Suomi – Finnish
Français – French
Deutsch – German
עברית – Hebrew
हिंदी – Hindi
Magyar – Hungarian
Bahasa Indonesia – Indonesian
Italiano – Italian
日本語 – Japanese
한국어 – Korean
Македонски – Macedonian
मराठी – Marathi
Norsk – Norwegian
Polski – Polish
Português – Portuguese
Português – Portuguese (Brazil)
Русский – Russian
Slovenčina – Slovak
Slovenščina – Slovenian
Español – Spanish
Svenska – Swedish
Türkçe – Turkish
Українська – Ukrainian
Oëzbekcha – Uzbek
Subversion Repositories
Projects
(root)
/
DUBwise
/
tags
/
v0.51
/
shared
/
src
/
MKHelper.java
@ 538
- Rev 223
Rev
Go to most recent revision
|
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
RSS feed
package
org.ligi.ufo
;
public
final
class
MKHelper
{
public
final
static
int
parse_signed_int_2
(
int
i1,
int
i2
)
{
int
res=
(
int
)
(
(
i2
<<
8
)
|i1
)
;
if
(
(
res
&
(
1
<<
15
)
)
!
=
0
)
return
-
(
res
&
(
0xFFFF-
1
)
)
^
(
0xFFFF-
1
)
;
else
return
res
;
}
public
final
static
int
parse_unsigned_int_2
(
int
i1,
int
i2
)
{
return
(
int
)
(
(
i2
<<
8
)
|i1
)
;
}
}