Commit b14e2e7
Cygwin: _endian.h: Add AArch64 implementations for
Add AArch64-specific implementations of __ntohl() and __ntohs() in
`winsup/cygwin/include/machine/_endian.h`.
For AArch64 targets, use the `REV` and `REV16` instructions to perform
byte swapping, with explicit zero-extension for 16-bit values to ensure
correct register semantics.
Signed-off-by: Thirumalai Nagalingam <thirumalai.nagalingam@multicorewareinc.com>ntohl and ntohs
1 parent b41e3b6 commit b14e2e7
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
0 commit comments