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 <assert.h> | |
| #include <math.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define INLINE __attribute__((always_inline)) inline | |
| #if defined(_WIN32) | |
| #define EXPORT __declspec(dllexport) | |
| #else |
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
| digraph | |
| { | |
| rankdir=LR; | |
| I -> n; | |
| n -> v; | |
| v -> i; | |
| i -> z; | |
| I -> z; | |
| i -> i; | |
| v -> I |
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
| function download(filenamePtr, dataPtr, size) { | |
| const a = document.createElement('a') | |
| a.style = 'display:none' | |
| document.body.appendChild(a) | |
| const view = new Uint8Array(Module.HEAPU8.buffer, dataPtr, size) | |
| const blob = new Blob([view], { | |
| type: 'octet/stream' | |
| }) | |
| const url = window.URL.createObjectURL(blob) | |
| a.href = url |