Skip to content

Instantly share code, notes, and snippets.

View euikook's full-sized avatar
🎯
Focusing

euikook euikook

🎯
Focusing
View GitHub Profile
@euikook
euikook / README.md
Last active February 18, 2021 04:24 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Foo Bar

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

// float->half variants.
// by Fabian "ryg" Giesen.
//
// I hereby place this code in the public domain, as per the terms of the
// CC0 license:
//
// https://creativecommons.org/publicdomain/zero/1.0/
//
// float_to_half_full: This is basically the ISPC stdlib code, except
// I preserve the sign of NaNs (any good reason not to?)
@euikook
euikook / list.h
Created July 1, 2020 06:23 — forked from bittorrent3389/list.h
Linux kernel linked list, modified for userspace
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
#include <stdio.h>
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.