Skip to content

Instantly share code, notes, and snippets.

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
#if 1
#include <atomic>
#include <vector>
#include <mutex>
#include <unordered_set>
__declspec(noinline) void ebi_assert(bool cond)
{
if (!cond)
{
#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.
#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.
#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.
#ifndef UFBX_UFBX_C_INCLUDED
#define UFBX_UFBX_C_INCLUDED
#if defined(UFBX_HEADER_PATH)
#include UFBX_HEADER_PATH
#else
#include "ufbx.h"
#endif
static const uint32_t ufbxi_number_start_mask =
(((1u << 10) - 1) << ((uint32_t)'0' - 32u)) |
(1u << ((uint32_t)'-' - 32u)) |
(1u << ((uint32_t)'+' - 32u)) |
(1u << ((uint32_t)'.' - 32u)) ;
ufbx_static_assert(ufbxi_number_start_codepoint,
((uint32_t)'9' - (uint32_t)'0') == 9 &&
(uint32_t)'0' >= 32u && (uint32_t)'0' < 64u &&
/** \file mikktspace/mikktspace.c
* \ingroup mikktspace
*/
/**
* Copyright (C) 2011 by Morten S. Mikkelsen
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
$ misc/check_dataset.py --exe build/check_fbx --root /mnt/fbx-files --host-url https://ufbx-dataset.b-cdn.net
== 'Autodesk Telescope' by 'Roberto Ziche' (CC BY 4.0) ==
source url: https://github.com/Autodesk/Aurora#sample-data
.json url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.json
-- github/autodesk/autodesk-telescope.ufbx.obj --
.fbx url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.ufbx.obj
#define _CRT_SECURE_NO_WARNINGS
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize.h"
#include <stdint.h>
#include <stdio.h>