PCLMULQDQ CRC32

i'll be porting the not bit-reflected version of that PCLMULQDQ CRC algo to c#
27 Replies
TechPizza
TechPizza14mo ago
oh cool, this will allow me to get rid of the lookup table
Maxine
Maxine14mo ago
lookup tables are bad for CPU cache
TechPizza
TechPizza14mo ago
u wot m8
Maxine
Maxine14mo ago
it's true it has to store the whole table in the cache or else you're getting cache misses all over the place
TechPizza
TechPizza14mo ago
a 8kB table was better than a 4kB table than having no table at all also the cpu doesnt know the length of tables
Maxine
Maxine14mo ago
well it depends
TechPizza
TechPizza14mo ago
it caches whatever is looked up
Maxine
Maxine14mo ago
sometimes the algorithm is helped by it it caches in blocks but yeah if you can get rid of the need for the lookup table without making it slower you make it faster
TechPizza
TechPizza14mo ago
in this case SIMD blasts through the algorithm ok, i tried porting two C implementations to c# neither gives me what i want i will have to port the assembly version <a:SKULL_IS_ANIM:968366113127796786>
TechPizza
TechPizza14mo ago
what is this formatting
No description
TechPizza
TechPizza14mo ago
who did this
TechPizza
TechPizza14mo ago
oh hey, it worked first try
No description
TechPizza
TechPizza14mo ago
aaaand it went to the code path i didn't want it to go this will be FUN
TechPizza
TechPizza14mo ago
holy shit
No description
TechPizza
TechPizza14mo ago
my assembly port was right all along
Want results from more Discord servers?
Add your server