Skip to content

Instantly share code, notes, and snippets.

View ahota's full-sized avatar
🤖
Beep boop

Alok ahota

🤖
Beep boop
  • Intel
View GitHub Profile
@ahota
ahota / main_namespace.cpp
Created May 22, 2019 16:44
Compilable/runnable example of having main() in a namespace
#include <iostream>
#include <string>
#include <vector>
/**************************************************************************
* Example of having main() in a namespace *
* ----------------------------------------------------------------------- *
* By using extern "C", we avoid C++'s name mangling of main()'s symbol, *
* despite the fact that it is hidden in a bird's nest of namespaces in *
* our code. *
@ahota
ahota / git-update-fork
Created May 14, 2019 21:03
Git script for updating a fork
#!/bin/bash
USAGE="repository"
LONG_USAGE="git update-fork -h
print this help message.
git update-fork repository
Update current branch (assumed to be a fork's master branch) from the
provided upstream repository's master branch"
SUBDIRECTORY_OK=1
. "$(git --exec-path)/git-sh-setup"
@ahota
ahota / 0001-swr-rast-Clang-Format-most-rasterizer-source-code.patch
Created June 8, 2018 19:58
[PATCH 1/1] swr/rast: Clang-Format most rasterizer source code
This file has been truncated, but you can view the full file.
From 73aab39518a33cddc297029f169dc7b817b43bd5 Mon Sep 17 00:00:00 2001
From: Alok Hota <alok.hota@intel.com>
Date: Tue, 5 Jun 2018 13:59:53 -0500
Subject: [PATCH 1/1] swr/rast: Clang-Format most rasterizer source code
---
.../swr/rasterizer/archrast/archrast.cpp | 415 +-
.../swr/rasterizer/archrast/archrast.h | 59 +-
.../swr/rasterizer/archrast/eventmanager.h | 57 +-
.../codegen/templates/gen_ar_event.cpp | 65 +-