This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == zen2, 3900x | |
| buf_size=67108864 bytes, queries=65536, iters=500, seed=1 | |
| glibc_memchr time=2569793607 ns checksum=0x464af4d3c0d93dff | |
| simple_memchr time=4877482198 ns checksum=0x464af4d3c0d93dff | |
| memchr2 time=3978928453 ns checksum=0x464af4d3c0d93dff | |
| memchr_sse42 time=3745261520 ns checksum=0x464af4d3c0d93dff | |
| repne_scas time=6229297013 ns checksum=0x464af4d3c0d93dff | |
| memchr_sse2 time=3180128354 ns checksum=0x464af4d3c0d93dff | |
| memchr_avx2_simple time=2455712727 ns checksum=0x464af4d3c0d93dff | |
| memchr_sse2_bsf time=3195730838 ns checksum=0x464af4d3c0d93dff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| === zen2, 3900x | |
| buf_size=67108864 bytes, queries=65536, iters=500, seed=1 | |
| sse2_bmi1 time=11756063470 ns checksum=0x35d89b8eb4628bfb | |
| sse2_bmi1_fast time=12852861821 ns checksum=0x35d89b8eb4628bfb | |
| ssse3_bmi1 time=12899733198 ns checksum=0x35d89b8eb4628bfb | |
| avx2_bmi1 time=11357734198 ns checksum=0x35d89b8eb4628bfb | |
| avx2_bmi1_alt time=11012575169 ns checksum=0x35d89b8eb4628bfb | |
| Estimated throughput (GiB/s): | |
| sse2_bmi1 : 89.755 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TRAN = [2, 214, 158, 111, 249, 29, 4, 171, 208, 34, 22, 31, 216, 115, 161, 172, 59, 112, 98, 150, 30, 110, 143, 57, 157, 5, 20, 74, 166, 190, 174, 14, 207, 185, 156, 154, 199, 104, 19, 225, 45, 164, 235, 81, 141, 100, 107, 80, 35, 128, 3, 65, 236, 187, 113, 204, 122, 134, 127, 152, 242, 54, 94, 238, 142, 206, 79, 184, 50, 182, 95, 89, 220, 27, 49, 76, 123, 240, 99, 1, 108, 186, 7, 232, 18, 119, 73, 60, 218, 70, 254, 47, 121, 28, 155, 48, 227, 0, 6, 126, 46, 15, 56, 51, 33, 173, 165, 84, 202, 167, 41, 252, 90, 71, 105, 125, 197, 149, 181, 244, 11, 144, 163, 129, 109, 37, 85, 53, 245, 117, 116, 10, 38, 191, 25, 92, 26, 198, 255, 153, 93, 132, 170, 102, 62, 175, 120, 179, 32, 67, 193, 237, 36, 234, 230, 63, 24, 243, 160, 66, 87, 8, 83, 96, 195, 192, 131, 64, 130, 215, 9, 189, 68, 42, 103, 168, 147, 224, 194, 86, 159, 217, 221, 133, 21, 180, 138, 39, 40, 146, 118, 222, 239, 248, 178, 183, 201, 61, 69, 148, 75, 17, 13, 101, 213, 52, 139, 145, 12, 250, 135, 233, 124, 91, 177, 77, 229, 212, 203, 16, 162, 23, 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #8 0.241 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. | |
| #8 0.242 | |
| #8 0.442 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB] | |
| #8 0.524 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] | |
| #8 0.525 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB] | |
| #8 1.352 Get:4 http://deb.debian.org/debian bookworm/main s390x Packages [8458 kB] | |
| #8 2.105 Get:5 http://deb.debian.org/debian bookworm-updates/main s390x Packages [6928 B] | |
| #8 2.883 Get:6 http://deb.debian.org/debian-security bookworm-security/main s390x Packages [241 kB] | |
| #8 6.985 Fetched 8960 kB in 7s (1358 kB/s) | |
| #8 6.985 Reading package lists... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define f(k)if(k==a)\ | |
| do k+=*p;while(*p++==a*a+30) | |
| unsigned char*b,*m,*d,*p;k,c,y,x | |
| ,a=15,v,z=1<<31;g(){for(b=p;c=*p++ | |
| ,k=c>>4,x=c&a,1;){f(k);d=mempcpy(d, | |
| p,k);if(( p+=k)>=b+v) | |
| break;y=*p ++;y|=*p\ | |
| ++<<8;f(x) | |
| ;for(m=d-y | |
| ,x+=4;x--; *d++=*m++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: $0 <mode> [configure-args...]" | |
| exit 1 | |
| fi | |
| SCRIPT="$0" | |
| case "$SCRIPT" in | |
| /*) DIR=$(dirname "$SCRIPT") ;; | |
| *) DIR=$(cd "$(dirname "$SCRIPT")" && pwd) ;; | |
| esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <emmintrin.h> | |
| #include <stdint.h> | |
| #include <stddef.h> | |
| static const uint8_t matrix[16384] = { | |
| 0x66, 0xe9, 0x4b, 0xd4, 0xef, 0x8a, 0x2c, 0x3b, 0x88, 0x4c, 0xfa, 0x59, 0xca, 0x34, 0x2b, 0x2e, 0x47, 0x71, 0x18, 0x16, 0xe9, 0x1d, 0x6f, 0xf0, 0x59, 0xbb, 0xbf, 0x2b, 0xf5, 0x8e, 0x0f, 0xd3, 0xbc, 0xf1, 0x76, 0xa7, 0xea, 0xad, 0x80, 0x85, 0xeb, 0xac, 0xea, 0x36, 0x24, 0x62, 0xa2, 0x81, 0x4f, 0xfc, 0x69, 0x77, 0x2e, 0xd5, 0xa3, 0x36, 0xf4, 0x61, 0x5b, 0x45, 0x03, 0xc3, 0x48, 0x14, | |
| 0xf8, 0x32, 0x1c, 0xf1, 0x8e, 0xf5, 0xfe, 0x72, 0x7d, 0xd8, 0x2a, 0x5c, 0x1e, 0x94, 0x51, 0x41, 0x2f, 0x16, 0x48, 0xbc, 0x9d, 0x95, 0xc3, 0x7f, 0xee, 0x0f, 0xd7, 0x53, 0x79, 0xfb, 0x7e, 0x59, 0x97, 0x45, 0xd7, 0xb2, 0x19, 0x72, 0xb1, 0x0b, 0x39, 0x93, 0xcc, 0x5d, 0x2f, 0xdd, 0x78, 0x8c, 0xd2, 0x61, 0xfd, 0x7d, 0x57, 0x9b, 0x0d, 0x40, 0x33, 0xba, 0xf0, 0x6d, 0x4e, 0x35, 0xb9, 0x0e, | |
| 0x29, 0x2c, 0x02, 0xc5, 0xcb, 0x91, 0x63, 0xc8, 0x0a, 0xc0, 0xf6, 0xcf, 0x1d, 0xd8, 0xe9, 0x2d, 0xef, 0xcd, 0x22, 0x90, 0xb9, 0xae, 0xe1, 0x86, 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| void f(long u) { | |
| char*ms="SunMonTueWedThuFriSatJanFebMarAprMayJunJulAugSepOctNovDec"; | |
| int t=u%86400,od=u/86400,y,d=od,m,a,mp;if(d>11016)y=100,d++;y+=(d=(4 | |
| *d+2877875)%146097|3)/1461;a=(d=d%1461/4+1)-307;m=((d*=5)-3)/153;if( | |
| (mp=m+2)>11)mp-=12,y++;printf("%02d:%02d:%02d (UTC), %.3s %02d %.3s" | |
| " %d (day %d)",t/3600,(t/60)%60,t%60,ms+3*((od+4)%7),(d+2-153*m)/5-1 | |
| ,ms+21+3*m,y+1900,(a>=0?a:a+365)+(!(y&3)&&a<0)); } | |
| int main(void) { f(time(NULL)); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // --------------------------------------------------------------------------- | |
| // KCrypt3 - 3rd iteration of the KCrypt algorithm. | |
| // Written on Sunday, 26th of January 2025 by Kamila Szewczyk. | |
| // --------------------------------------------------------------------------- | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <errno.h> | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Feeling overwhelmed by "find the words in a grid" tasks for preschoolers? | |
| // Look no further! | |
| #include <leptonica/allheaders.h> | |
| #include <tesseract/baseapi.h> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; |
NewerOlder