This is a WIP. Please notify me of any mistakes or possible improvements.
I have ignored any 64-bit differences due to Moore seeming to be a 32-bit system.
Registers
Basic Instructions
Data Instructions
Bitwise Instructions
Logic Instructions
| package com.emmanuelmess.utils; | |
| import android.app.AlertDialog; | |
| import android.app.Dialog; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.Parcel; | |
| import android.os.Parcelable; |
| #include <iostream> | |
| #include <algorithm> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <map> | |
| #include <queue> | |
| using namespace std; | |
| struct TRIE { |
This is a WIP. Please notify me of any mistakes or possible improvements.
I have ignored any 64-bit differences due to Moore seeming to be a 32-bit system.
Registers
Basic Instructions
Data Instructions
Bitwise Instructions
Logic Instructions
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { | |
| return "Different vector sizes!"; | |
| } |
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> | |
| #include <random> | |
| #include <csetjmp> | |
| #include "mnist/mnist_reader.hpp" | |
| using namespace std; |
| import android.content.res.Resources | |
| val Int.px: Pixels | |
| get() = Pixels(this.toFloat()) | |
| val Int.dp: DensityPixels | |
| get() = DensityPixels(this.toFloat()) | |
| /*inline*/ class Pixels(val value: Float) { |
| import java.math.BigInteger | |
| import java.util.* | |
| import kotlin.IllegalArgumentException | |
| sealed class Values(value: Any) { | |
| data class Boolean(val value: kotlin.Boolean): Values(value) { | |
| override fun toString() = value.toString() | |
| } | |
| data class Decimal(val value: BigInteger): Values(value) { | |
| override fun toString() = value.toString() |