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 <stdint.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
// Solver for FBX FileId and footer hashes. | |
// The hash construction is based on @hamish-milne's FbxWriter | |
// https://github.com/hamish-milne/FbxWriter |
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 <stdint.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <string.h> | |
#define array_count(arr) (sizeof(arr) / sizeof(*(arr))) | |
struct original_entry { | |
const char *date; | |
const char *hashes[2]; |
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
from amaranth import * | |
from amaranth.lib import wiring | |
from amaranth.lib.wiring import In, Out | |
from amaranth.sim import Simulator, SimulatorContext | |
from dataclasses import dataclass | |
@dataclass | |
class SdramSpec: | |
row_bits: int | |
col_bits: int |
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
from nmigen import * | |
from enum import Enum, unique | |
from nmigen.cli import main | |
from nmigen.back.pysim import Simulator, Delay, Settle | |
@unique | |
class Op(Enum): | |
NOP = 0 | |
MOVE = 1 | |
UPDATE = 2 |
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
#if 1 | |
#include <atomic> | |
#include <vector> | |
#include <mutex> | |
#include <unordered_set> | |
__declspec(noinline) void ebi_assert(bool cond) | |
{ | |
if (!cond) | |
{ |
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 _CRT_SECURE_NO_WARNINGS | |
#include "ufbx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
void print_indent(FILE *f, int indent) | |
{ | |
for (int i = 0; i < indent; i++) { |
This file has been truncated, but you can view the full file.
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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
This file has been truncated, but you can view the full file.
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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
This file has been truncated, but you can view the full file.
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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
NewerOlder