Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. const use_thumb_x = switch (builtin.arch) {
  2. builtin.Arch.arm,
  3. builtin.Arch.armeb,
  4. builtin.Arch.thumb,
  5. builtin.Arch.thumbeb,
  6. => |value| switch (value) {
  7. builtin.Arch.Arm32.v6,
  8. builtin.Arch.Arm32.v6m,
  9. builtin.Arch.Arm32.v6k,
  10. builtin.Arch.Arm32.v6t2,
  11. => true,
  12. else => false,
  13. },
  14. else => false,
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement