Note: this an unofficial early draft of a work in progress specification. The LLVLIR specification has moved...
Low Level Variable Length Intermediate Representation is a succinct target independent byte-code for deferred translation.
| #!/usr/bin/env python3 | |
| # phydate128 — a 128-bit variable width datetime format | |
| # | |
| # struct { int<4> timebase; uint<4> length; bytes<length> counter; } | |
| # | |
| # prefix byte is composed of a 4-bit signed frequency base and 4-bit length | |
| # frequency base is signed two's complement where 0b0000 is femtoseconds | |
| # length indicates the size of the variable length counter field in bytes. | |
| # |
Note: this an unofficial early draft of a work in progress specification. The LLVLIR specification has moved...
Low Level Variable Length Intermediate Representation is a succinct target independent byte-code for deferred translation.
| /* | |
| * ftload.cc loads TrueType Bézier curves for codepoint using FreeType | |
| * | |
| * Compile: c++ -std=c++17 -o ftload ftload.cc -Ithird_party/glm \ | |
| * $(pkg-config --cflags --libs freetype2) | |
| * | |
| * Usage: ./ftload <ttf-file> <dpi> <size> <code-point> | |
| * | |
| * Example: ./ftload DejaVuSans.ttf 72 32 99 | |
| */ |
| /* | |
| * maj2_random | |
| * | |
| * maj2_random is a simplified floating point hash function derived from SHA-2, | |
| * retaining its high quality entropy compression function modified to permute | |
| * entropy from a vec2 (designed for UV coordinates) returning float values | |
| * between 0.0 and 1.0. since maj2_random is a hash function it will return | |
| * coherent noise. vector argument can be truncated prior to increase grain. | |
| */ |
| # GitHub workflow to merge commits > n-days from a work branch to trunk. | |
| # | |
| # this is a low-overhead workflow implementing a time lock intended to | |
| # allow people to rebase on a work branch but avoid rebases on trunk. | |
| # | |
| # the workflow is scheduled to fast-forward the target branch to the | |
| # most recent commit in the source branch that is older than n-days. | |
| # | |
| # if there is a commit older than n-days common to both branches, the | |
| # action will do nothing. the action will error in the case of commits |
| Dear All, | |
| I am sharing a patch for ld.so to show relative addresses and add | |
| justified output. The goal of this patch is to increase `ldd` readability: | |
| - modify trace output to use relative addresses by default. | |
| - add alternative trace output mode with left-justified addresses. | |
| The relative addresses are composed by subtracting the ELF ehdr address | |
| which makes the output constant under address space layout randomization. |
| #!/bin/sh | |
| T=$(mktemp fooXXXXXX) | |
| echo $* | xxd -r -p - > ${T} | |
| objdump -D -bbinary -mi386:x86-64 -Mintel ${T} | \ | |
| sed -n '/<.data>:/{n;s/0://g p}' | |
| rm -f ${T} |
| diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h | |
| index 7160bc474a71..3970e35a2c25 100644 | |
| --- a/include/mimalloc-internal.h | |
| +++ b/include/mimalloc-internal.h | |
| @@ -114,6 +114,8 @@ void _mi_heap_set_default_direct(mi_heap_t* heap); | |
| // "stats.c" | |
| void _mi_stats_done(mi_stats_t* stats); | |
| +void _mi_hist_log(size_t size); | |
| +void _mi_hist_dump(mi_output_fun* out); |
| #!/usr/bin/perl | |
| # | |
| # usage ./ISO-6093-NR3.pl (relaxed|stric) <float> | |
| # | |
| # parse ISO 6093 floating point decimal representation NR3 | |
| # | |
| # 'relaxed' | |
| # | |
| # - prohibits missing decimal point. e.g. '1' ERROR | |
| # - permits leading zeros on integer. e.g. '01.23e10' OK |
| # | |
| # clang modules-ts example | |
| # | |
| source = src | |
| modules = build/modules | |
| objects = build/objects | |
| output = build/output | |
| CXX = clang++ |