These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.
Modern operating systems, booted inside Real
mode,
;;; WEB -- 18 June 2016 | |
;; Type inferencer in miniKanren, adapted from Oleg's Kanren polymorphic type inferencer | |
;; | |
;; http://kanren.cvs.sourceforge.net/viewvc/kanren/kanren/examples/type-inference.scm?view=markup | |
;; | |
;; Unlike the Kanren inferencer, this definition of !- is a pure | |
;; relation, with no cuts and no uses of project. This inferencer | |
;; also does not require a parser/unparser, and allows shadowing. |
#include <iostream> | |
#include <complex> | |
#define PI 3.141592653589793 | |
#define SAMPLE_RATE 64 | |
using namespace std; | |
// This lowpass is a weighted moving average | |
// If you change the + to - it will become a highpass filter |
#include "TransparentOpenGLComponent.h" | |
using namespace juce; | |
TransparentOpenGLComponent::TransparentOpenGLComponent() | |
{ | |
openGLContext.setComponentPaintingEnabled (true); | |
openGLContext.setRenderer (this); | |
openGLContext.setContinuousRepainting (true); | |
openGLContext.attachTo (*this); |
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <windows.h> | |
#include <stdint.h> | |
#define Assert(x) \ | |
if (!(x)) { MessageBoxA(0, #x, "Assertion Failure", MB_OK); __debugbreak(); } | |
enum Register { | |
RAX = 0, |
#define _CRT_SECURE_NO_WARNINGS | |
#include <string.h> | |
#include <stdio.h> | |
#include <windows.h> | |
#pragma warning (disable: 4146) | |
#include <stdint.h> | |
#ifdef _DEBUG | |
#define Assert(x) \ | |
if (!(x)) { MessageBoxA(0, #x, "Assertion Failure", MB_OK); __debugbreak(); } |
/* | |
* Module Name: | |
* WorkingSetWatch.cpp | |
* | |
* Abstract: | |
* Tracks page faults that occur within the process. | |
* | |
* NOTE: This is not compatible with Wow64 and must be run as a 64-bit | |
* program on x64 and a 32-bit program on x86. | |
* |
import os | |
# We'll render HTML templates and access data sent by POST | |
# using the request object from flask. Redirect and url_for | |
# will be used to redirect the user once the upload is done | |
# and send_from_directory will help us to send/show on the | |
# browser the file that the user just uploaded | |
from flask import Flask, render_template, request, redirect, url_for, send_from_directory | |
from werkzeug import secure_filename | |
# Initialize the Flask application |
float r = sample.r; | |
float g = sample.g; | |
float b = sample.b; | |
float median = max(min(r, g), min(max(r, g), b)); | |
float signed_dist = median - 0.5; | |
float d = fwidth(signed_dist); | |
float opacity = smoothstep(-d, d, signed_dist); | |
//apply opacity to final alpha | |
color.a *= opacity; |
#include "CustomCallOutBox.h" | |
CustomCallOutBox::CustomCallOutBox (Component &contentComponent, | |
const Rectangle< int > &areaToPointTo, | |
Component *parentComponent, | |
bool drawArrow) | |
: CallOutBox (contentComponent, areaToPointTo, parentComponent), drawArrow (drawArrow) | |
{ |