blob: 34522cd90bf787e0e966fd947aed99cd813f2d97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
function big_endian2:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be16(THIS->val);
%}
function big_endian4:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be32(THIS->val);
%}
function big_endian8:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be64(THIS->val);
%}
function little_endian2:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le16(THIS->val);
%}
function little_endian4:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le32(THIS->val);
%}
function little_endian8:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le64(THIS->val);
%}
|