From 95b9e4558a64311636a594eae5a4c658a38e11e7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 5 Nov 2022 22:06:18 -0400 Subject: [PATCH] Move hulk.writef buffer variables to stack Previously ldc2 was emitting AVX/SSE instructions to initialize these buffers. --- src/hulk/writef.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hulk/writef.d b/src/hulk/writef.d index f305622..7dff686 100644 --- a/src/hulk/writef.d +++ b/src/hulk/writef.d @@ -90,7 +90,7 @@ private size_t write_hex(ulong v, bool upper, char pad, size_t width, ch_out_fn { static __gshared const(char)[16] hex_chars_lower = "0123456789abcdef"; static __gshared const(char)[16] hex_chars_upper = "0123456789ABCDEF"; - static __gshared char[16] buf; + char[16] buf; size_t i; do { @@ -126,7 +126,7 @@ private size_t write_hex(ulong v, bool upper, char pad, size_t width, ch_out_fn */ private size_t write_udec(ulong v, char pad, size_t width, ch_out_fn ch_out) { - static __gshared char[20] buf; + char[20] buf; size_t i; do {