Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Aug 17, 2024
1 parent 4feb478 commit 98e1846
Show file tree
Hide file tree
Showing 55 changed files with 242 additions and 84 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <algorithm>

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

namespace wjr {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define WJR_X86_FORMAT_CHARCONV_HPP__

#include <wjr/format/charconv-impl.hpp>
#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_FORMAT_UTF8_HPP__
#define WJR_X86_FORMAT_UTF8_HPP__

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

namespace wjr::utf8 {} // namespace wjr::utf8

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_JSON_LEXER_HPP__
#define WJR_X86_JSON_LEXER_HPP__

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#if WJR_HAS_SIMD(SSSE3)
#define WJR_HAS_BUILTIN_JSON_LEXER_READER_READ_BUF WJR_HAS_DEF
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_JSON_STRING_HPP__
#define WJR_X86_JSON_STRING_HPP__

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#if WJR_HAS_SIMD(SSE2)
#define WJR_HAS_BUILTIN_JSON_PARSE_STRING WJR_HAS_DEF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

#if WJR_HAS_BUILTIN(ASM_ADDC) == 2
#include <wjr/x86/simd/intrin.hpp>
#include <wjr/arch/x86/simd/intrin.hpp>
#endif

namespace wjr {
Expand Down Expand Up @@ -190,7 +190,7 @@ WJR_INTRINSIC_INLINE uint64_t asm_addc_cc(uint64_t a, uint64_t b, uint8_t c_in,

#if WJR_HAS_BUILTIN(ASM_ADDC_N)
#define WJR_ADDSUB_I 1
#include <wjr/x86/math/gen_addsub.hpp>
#include <wjr/arch/x86/math/gen_addsub.hpp>
#endif

#if WJR_HAS_BUILTIN(__ASM_ADD_128)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_MATH_COMPARE_HPP__
#define WJR_X86_MATH_COMPARE_HPP__

#include <wjr/x86/math/large-compare-impl.hpp>
#include <wjr/arch/x86/math/large-compare-impl.hpp>

namespace wjr {

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_MATH_FIND_HPP__
#define WJR_X86_MATH_FIND_HPP__

#include <wjr/x86/math/large-find-impl.hpp>
#include <wjr/arch/x86/math/large-find-impl.hpp>

namespace wjr {

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <wjr/math/clz.hpp>
#include <wjr/math/ctz.hpp>
#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <wjr/math/clz.hpp>
#include <wjr/math/ctz.hpp>
#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#define WJR_X86_MATH_MUL_HPP__

#include <wjr/assert.hpp>
#include <wjr/x86/math/mul-impl.hpp>
#include <wjr/arch/x86/math/mul-impl.hpp>

#if WJR_HAS_BUILTIN(MSVC_UMUL128)
#include <wjr/x86/simd/intrin.hpp>
#include <wjr/arch/x86/simd/intrin.hpp>
#endif

namespace wjr {
Expand Down Expand Up @@ -83,12 +83,12 @@ WJR_INTRINSIC_INLINE uint64_t asm_submul_1(uint64_t *dst, const uint64_t *src, s

#if WJR_HAS_BUILTIN(ASM_ADDLSH_N)
#define WJR_ADDSUB_I 1
#include <wjr/x86/math/gen_addrsblsh_n.hpp>
#include <wjr/arch/x86/math/gen_addrsblsh_n.hpp>
#endif

#if WJR_HAS_BUILTIN(ASM_RSBLSH_N)
#define WJR_ADDSUB_I 0
#include <wjr/x86/math/gen_addrsblsh_n.hpp>
#include <wjr/arch/x86/math/gen_addrsblsh_n.hpp>
#endif

#if WJR_HAS_BUILTIN(ASM_BASECASE_MUL_S)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define WJR_X86_MATH_NOT_HPP__

#include <wjr/math/detail.hpp>
#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define WJR_X86_MATH_PREFIX_XOR_HPP__

#include <wjr/preprocessor.hpp>
#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

namespace wjr {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <cstring>

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_MATH_SHIFT_HPP__
#define WJR_X86_MATH_SHIFT_HPP__

#include <wjr/x86/simd/simd.hpp>
#include <wjr/arch/x86/simd/simd.hpp>

#ifndef WJR_X86
#error "x86 required"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

#if WJR_HAS_BUILTIN(ASM_SUBC) == 2
#include <wjr/x86/simd/intrin.hpp>
#include <wjr/arch/x86/simd/intrin.hpp>
#endif

namespace wjr {
Expand Down Expand Up @@ -128,7 +128,7 @@ WJR_INTRINSIC_INLINE uint64_t asm_subc_cc(uint64_t a, uint64_t b, uint8_t c_in,

#if WJR_HAS_BUILTIN(ASM_SUBC_N)
#define WJR_ADDSUB_I 0
#include <wjr/x86/math/gen_addsub.hpp>
#include <wjr/arch/x86/math/gen_addsub.hpp>
#endif

#if WJR_HAS_BUILTIN(__ASM_SUB_128)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_SIMD_AVX_HPP__
#define WJR_X86_SIMD_AVX_HPP__

#include <wjr/x86/simd/sse.hpp>
#include <wjr/arch/x86/simd/sse.hpp>

namespace wjr {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_SIMD_SIMD_HPP__
#define WJR_X86_SIMD_SIMD_HPP__

#include <wjr/x86/simd/avx.hpp>
#include <wjr/arch/x86/simd/avx.hpp>

namespace wjr {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cstdint>

#include <wjr/simd/detail.hpp>
#include <wjr/x86/simd/intrin.hpp>
#include <wjr/arch/x86/simd/intrin.hpp>

namespace wjr {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef WJR_X86_SIMD_SSE_HPP__
#define WJR_X86_SIMD_SSE_HPP__

#include <wjr/x86/simd/simd_cast.hpp>
#include <wjr/arch/x86/simd/simd_cast.hpp>

#include <cstring>

Expand Down
2 changes: 1 addition & 1 deletion include/wjr/container/generic/bplus_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <wjr/memory/uninitialized.hpp>

#if defined(WJR_X86)
#include <wjr/x86/container/generic/bplus_tree.hpp>
#include <wjr/arch/x86/container/generic/bplus_tree.hpp>
#endif

namespace wjr {
Expand Down
2 changes: 1 addition & 1 deletion include/wjr/format/charconv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <wjr/string.hpp>

#if defined(WJR_X86)
#include <wjr/x86/format/charconv.hpp>
#include <wjr/arch/x86/format/charconv.hpp>
#endif

namespace wjr {
Expand Down
2 changes: 1 addition & 1 deletion include/wjr/format/utf8/utf8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <wjr/expected.hpp>

#if defined(WJR_X86)
#include <wjr/x86/format/utf8/utf8.hpp>
#include <wjr/arch/x86/format/utf8/utf8.hpp>
#endif

namespace wjr::utf8 {
Expand Down
Loading

0 comments on commit 98e1846

Please sign in to comment.