| ... | ... | @@ -3263,3 +3263,21 @@ pub const gnu_hash = struct { |
| 3263 | 3263 | try std.testing.expectEqual(0x8ae9f18e, calculate("flapenguin.me")); |
| 3264 | 3264 | } |
| 3265 | 3265 | }; |
| 3266 | |
| 3267 | pub const loongarch = struct { |
| 3268 | /// Ehdr.e_flags bits of LoongArch |
| 3269 | pub const EFlags = packed struct(Word) { |
| 3270 | base_abi_modifier: BaseAbiModifier, |
| 3271 | abi_extension: AbiExtension, |
| 3272 | abi_version: u2, |
| 3273 | reserved: u24 = 0, |
| 3274 | |
| 3275 | pub const BaseAbiModifier = enum(u3) { |
| 3276 | s = 1, |
| 3277 | f = 2, |
| 3278 | d = 3, |
| 3279 | _, |
| 3280 | }; |
| 3281 | pub const AbiExtension = enum(u3) { base = 0, _ }; |
| 3282 | }; |
| 3283 | }; |