2018-01-30
root# dd if=/dev/zero of=/dev/vbd0 bs=32k count=16
root# fdisk -IB /dev/vbd0
class Option: | |
def __init__(self, *args): | |
if len(args) == 0: | |
self._tag = "None" | |
self._value = None | |
elif len(args) == 1: | |
self._tag = "Some" | |
self._value = args[0] | |
else: | |
raise RuntimeError("Invalid arity") |
# Convert number into decimal representation intermediate packed BCD. | |
# Uses two 64-bit integers | |
def assert_eq(a, b) | |
raise "#{a} != #{b}" unless a == b | |
end | |
def number_to_packed_bcd_int(n) | |
raise if n > (10**32) - 1 | |
# Use two u64 |
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp | |
index 7305696..d40435f 100644 | |
--- a/src/gpu/gl/GrGLAssembleInterface.cpp | |
+++ b/src/gpu/gl/GrGLAssembleInterface.cpp | |
@@ -78,6 +78,9 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { | |
return nullptr; | |
} | |
+ // GET_PROC returns nullptr on Vivante GC880, so remove it. | |
+ extensions.remove("GL_EXT_draw_instanced"); |
#!/bin/sh | |
# Run from cargo git directory | |
CARGO_BIN=`pwd`/mycargo # an existing cargo binary | |
OPENSSL_VERSION=1.0.2j | |
export OPENSSL_ROOT_DIR=`pwd`/openssl | |
export OPENSSL_LIB_DIR=${OPENSSL_ROOT_DIR}/lib | |
export OPENSSL_INCLUDE_DIR=${OPENSSL_ROOT_DIR}/include | |
export OPENSSL_STATIC=1 |
#!/bin/sh | |
# Run from cargo git directory | |
OPENSSL_VERSION=1.0.2j | |
export OPENSSL_ROOT_DIR=`pwd`/openssl | |
export OPENSSL_LIB_DIR=${OPENSSL_ROOT_DIR}/lib | |
export OPENSSL_INCLUDE_DIR=${OPENSSL_ROOT_DIR}/include | |
export OPENSSL_STATIC=1 |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/sysctl.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
int main() { | |
{ | |
char buf[1024]; |
extern mod extra; | |
use std::hashmap::HashMap; | |
use extra::serialize; | |
use extra::serialize::Decodable; | |
pub enum Value { | |
NoValue, | |
Boolean(bool), | |
Unsigned(u64), | |
Signed(u64), |