Skip to content

Instantly share code, notes, and snippets.

damageboy

Block or report user

Report or block damageboy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@damageboy
damageboy / stuff.cs
Created Dec 14, 2019
Intel Intrinsics <-> CS Intrinsics convertors
View stuff.cs
// ReSharper disable UnusedMember.Local
static V _mm512_set_epi64(int e7, int e6, int e5, int e4, int e3, int e2, int e1, int e0)
=> Vector256.Create(e0, e1, e2, e3, e4, e5, e6, e7);
static V _mm512_permutexvar_pd(V permutation, V data)
=> PermuteVar8x32(data, permutation);
static V _mm512_min_pd(V v1, V v2)
=> Min(v1, v2);
View cpuid.txt
CPU 0:
vendor_id = "GenuineIntel"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
model = 0xe (14)
stepping id = 0x9 (9)
extended family = 0x0 (0)
extended model = 0x9 (9)
(simple synth) = Intel Core i5-7000 / i5-7000K / i5-7000T / i7-7000 / E3-15x5MV6 / i3-7100H / i5-7000HQ / i7-7000HQ (Kaby Lake), 14nm
View bdn-dotnet-build.log
This file has been truncated, but you can view the full file.
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 302.02 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Disassembler.x86/BenchmarkDotNet.Disassembler.x86.csproj.
Restore completed in 300.16 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Annotations/BenchmarkDotNet.Annotations.csproj.
Restore completed in 302.32 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Disassembler.x64/BenchmarkDotNet.Disassembler.x64.csproj.
Restore completed in 2.39 ms for /home/dmg/projects/public/BenchmarkDotNet/templates/BenchmarkDotNet.Templates.csproj.
Restore completed in 356.89 ms for /home/dmg/projects/public/BenchmarkDotNet/src/BenchmarkDotNet.Diagnostics.Windows/BenchmarkDotNet.Diagnostics.Windows.csproj.
@damageboy
damageboy / native-linux.md
Last active Jan 31, 2019
WSL / Native Ubuntu process creation times
View native-linux.md
damageboy@native-linux $ lscpu

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
View POPCNTAndBMI2Unrolled.fixed.txt
****** START compiling Program:POPCNTAndBMI2Unrolled(int):int (MethodHash=8edbbc1e)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import:
View IntrinsicsUnrolled.jitdump.txt
****** START compiling Program:IntrinsicsUnrolled(int):int (MethodHash=6b9d3a1b)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import:
View Intrinsics.jitdump.txt
****** START compiling Program:Intrinsics(int):int (MethodHash=7ba20f7c)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import:
View POPCNTButNoBMI2.jitdump.txt
****** START compiling Program:POPCNTButNoBMI2(int):int (MethodHash=622404b0)
Generating code for Unix x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Stack probing is DISABLED
IL to import:
View keybase.md

Keybase proof

I hereby claim:

  • I am damageboy on github.
  • I am damageboy (https://keybase.io/damageboy) on keybase.
  • I have a public key ASB0psYb9CtXzvy4ngGGmcrUTogcJit2ezqEzSMS67a2iwo

To claim this, I am signing this object:

View tlp-stat
--- TLP 1.1 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
You can’t perform that action at this time.