Nekotekina
|
03332c340d
|
Implement utils::bless (pointer cast)
Tries to workaround strict aliasing troubles.
Don't confuse with std::bless which works differently.
|
2021-03-10 16:02:00 +03:00 |
|
Nekotekina
|
9dc238187f
|
Simplify utils::align() a bit
std::is_unsigned implies std::is_integral I believe.
|
2021-02-22 13:00:01 +03:00 |
|
Eladash
|
b86ec2ffcf
|
Fix potential overflows in utils::aligned_div, utils::rounded_div
|
2021-02-19 16:10:03 +03:00 |
|
Nekotekina
|
6b96807112
|
Reimplement utils::popcnt64
Implement utils::popcnt128
|
2020-12-29 15:28:02 +03:00 |
|
Nekotekina
|
bd269bccaf
|
types.hpp: remove intrinsic includes
Replace v128 with u128 in some places.
Removed some unused files.
|
2020-12-21 21:11:25 +03:00 |
|
Nekotekina
|
eec11bfba9
|
Move align helpers to util/asm.hpp
Also add some files:
GLTextureCache.cpp
VKTextureCache.cpp
|
2020-12-18 18:07:42 +03:00 |
|
Nekotekina
|
fb29933d3d
|
Add usz alias for std::size_t
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
4cfa9b11f3
|
Move busy_wait() to asm.hpp
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
b59f142d4e
|
Move types.h to util/types.hpp
|
2020-12-12 15:12:01 +03:00 |
|
RipleyTom
|
51dcb4a79d
|
Remove bom from .hpp files
|
2020-12-07 20:03:44 +03:00 |
|
Nekotekina
|
d8e9382573
|
asm.hpp: constexpr refactoring
Removed asm (what an irony), made many functions constexpr.
Removed some unused function, readding them should be trivial.
|
2020-11-24 13:20:40 +03:00 |
|
Nekotekina
|
43952e18e2
|
Implement prefetch_write() and prefetch_exec() wrappers
Do some refactoring to prefetch_read() in util/asm.hpp as well.
Make all these function constexpr because they are no-ops.
|
2020-11-24 12:31:11 +03:00 |
|
Nekotekina
|
ab365fe494
|
Fixed thread pool a bit
Use 128-bit allocator instead of queue.
When pool is full (128), threads just terminate as before.
|
2020-11-13 13:32:44 +03:00 |
|
Nekotekina
|
1c99a2e7fb
|
vm: add map_self() method to utils::shm
Add complementary unmap_self() method.
Move VirtualMemory to util/vm.hpp
Minor associated include cleanup.
Move asm.h to util/asm.hpp
|
2020-11-08 16:43:15 +03:00 |
|