Add maxmind demo to redbean-demo.com

This commit is contained in:
Justine Tunney 2022-03-18 15:31:54 -07:00
parent c4d8f40422
commit c541225af0
9 changed files with 355 additions and 30 deletions

View file

@ -18,6 +18,7 @@
*/
#include "libc/bits/popcnt.h"
#include "libc/testlib/ezbench.h"
#include "libc/testlib/hyperion.h"
#include "libc/testlib/testlib.h"
TEST(popcnt, test) {
@ -31,4 +32,5 @@ BENCH(popcnt, bench) {
EXPROPRIATE(popcnt(VEIL("r", 0x5555555555555555))));
EZBENCH2("(popcnt)", donothing,
EXPROPRIATE((popcnt)(VEIL("r", 0x5555555555555555))));
EZBENCH_N("_countbits", kHyperionSize, _countbits(kHyperion, kHyperionSize));
}