Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

core.sys.linux.perf_event: Remove import of std.bitmanip #3620

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/core/sys/linux/perf_event.d
Original file line number Diff line number Diff line change
Expand Up @@ -2073,8 +2073,6 @@ else

struct
{
import std.bitmanip : bitfields;

/* mixin(bitfields!(ulong, "mem_rsvd", 24, ulong, "mem_snoopx", 2, ulong,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have just moved the /* before the import, as the bitfields comment is just for easier maintenance (if you need to regenerate the code for some reason).

"mem_remote", 1, ulong, "mem_lvl_num", 4, ulong, "mem_dtlb", 7, ulong,
"mem_lock", 2, ulong, "mem_snoop", 5, ulong, "mem_lvl",
Expand Down