repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
DossierSansTitreEx/MiaouOS | src/libc/string/strncat.c | #include <string.h>
char* strncat(char* __restrict s1, const char* __restrict s2, size_t n)
{
size_t i;
size_t j;
i = 0;
j = 0;
while (s1[i])
i++;
while (s2[j] && j < n)
{
s1[i + j] = s2[j];
j++;
}
s1[i + j] = 0;
return s1;
}
|
DossierSansTitreEx/MiaouOS | src/sh/main.c | #include <unistd.h>
int main()
{
write(1, "Hello\n", 6);
for (;;) {}
return 0;
}
void _start()
{
/* No CRT yet */
main();
}
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_uint32_t.h | #ifndef _SYS__TYPES__UINT32_T_H_
#define _SYS__TYPES__UINT32_T_H_
#if defined(__UINT32_TYPE__)
typedef __UINT32_TYPE__ uint32_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/libc/string/memcpy.c | #include <string.h>
void* memcpy(void* __restrict dst, const void* __restrict src, size_t n)
{
for (size_t i = 0; i < n; ++i)
*((char*)dst + i) = *((char*)src + i);
return dst;
}
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_uint64_t.h | <filename>include/sys/_types/_uint64_t.h
#ifndef _SYS__TYPES__UINT64_T_H_
#define _SYS__TYPES__UINT64_T_H_
#if defined(__UINT64_TYPE__)
typedef __UINT64_TYPE__ uint64_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_ptrdiff_t.h | #ifndef _SYS__TYPES__PTRDIFF_T_H_
#define _SYS__TYPES__PTRDIFF_T_H_
#if defined(__PTRDIFF_TYPE__)
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/effel/proc.c | #include <proc.h>
#include <vmm.h>
#include <screen.h>
#include <mfs.h>
#include <string.h>
#include <util.h>
#include <tss.h>
#include <interrupt.h>
#include <x86.h>
void int_pit();
void int_real_time_clock();
struct proc_table ptable;
static void procjmp(struct proc* p)
{
__asm__ __volatile__ ("mov %0, %%cr3\r... |
DossierSansTitreEx/MiaouOS | include/sys/_types/_wchar_t.h | <gh_stars>1-10
#ifndef _SYS__TYPES__WCHAR_T_H_
#define _SYS__TYPES__WCHAR_T_H_
#if defined(__INT32_TYPE__)
typedef __INT32_TYPE__ wchar_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | include/effel/effel.h | #ifndef _EFFEL_H
#define _EFFEL_H 1
#endif
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_uintptr_t.h | <filename>include/sys/_types/_uintptr_t.h
#ifndef _SYS__TYPES__UINTPTR_T_H_
#define _SYS__TYPES__UINTPTR_T_H_
#if defined(__UINTPTR_TYPE__)
typedef __UINTPTR_TYPE__ uintptr_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/effel/tss.c | #include <tss.h>
#include <string.h>
__attribute__ ((aligned (16)))
static char tss_default_stack[4096];
struct tss tss;
void tss_init()
{
memset(&tss, 0, sizeof(tss));
tss.rsp[0] = ((uint64_t)tss_default_stack) + 4096;
tss.iomb = sizeof(tss);
__asm__ __volatile__ ("ltr %%ax\r\n" :: "a" (0x30));
}
|
DossierSansTitreEx/MiaouOS | src/libc/string/strlen.c | #include <string.h>
__attribute__((pure))
size_t strlen(const char* s)
{
size_t len;
len = 0;
while (s[len])
len++;
return len;
}
|
DossierSansTitreEx/MiaouOS | src/libc/string/strncmp.c | <gh_stars>1-10
#include <string.h>
int strncmp(const char* s1, const char* s2, size_t n)
{
size_t i;
int diff;
int c1;
int c2;
for (i = 0; i < n; ++i)
{
c1 = (unsigned char)(s1[i]);
c2 = (unsigned char)(s2[i]);
diff = c1 - c2;
if (diff)
return diff;... |
DossierSansTitreEx/MiaouOS | src/effel/mfs.c | <filename>src/effel/mfs.c
#include <mfs.h>
#include <ata.h>
#include <vmm.h>
#include <string.h>
static struct mfs mfs;
static void read_inode(char* dst, uint64_t inode)
{
ata_read(dst, mfs.lba + 40 + inode * 8, 8, &mfs.dpte);
}
void mfs_init(const boot_params* params)
{
mfs.device = params->drive;
mfs.l... |
DossierSansTitreEx/MiaouOS | src/effel/gdt.c | #include <gdt.h>
#include <tss.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <util.h>
struct gdt_entry
{
unsigned int limit_low:16;
unsigned int base_low:24;
unsigned int accessed:1;
unsigned int read_write:1;
unsigned int conforming_expand_down:1;
unsigned int code:1;... |
DossierSansTitreEx/MiaouOS | src/effel/screen.h | <reponame>DossierSansTitreEx/MiaouOS
#ifndef _SCREEN_H
#define _SCREEN_H 1
#include <stddef.h>
void kscroll();
void kputchar(char c);
void kprint(const char* s);
void kprint_raw(const char* s, size_t size);
void kputs(const char* s);
void kprint_hex(uint64_t num);
void screen_init();
#endif
|
DossierSansTitreEx/MiaouOS | include/sys/cpuid.h | <gh_stars>1-10
#ifndef _SYS_CPUID_H_
#define _SYS_CPUID_H_
#include <stdint.h>
#include <sys/cdefs.h>
__BEGIN_DECL
inline void cpuid4(uint32_t* dst, uint32_t a, uint32_t b, uint32_t c, uint32_t d)
{
__asm__ __volatile__ ("cpuid\r\n"
: "=a"(dst[0]), "=b"(dst[1]), "=c"(dst[2]), "=d"(dst[3])
... |
DossierSansTitreEx/MiaouOS | include/sys/_types/_intptr_t.h | <gh_stars>1-10
#ifndef _SYS__TYPES__INTPTR_T_H_
#define _SYS__TYPES__INTPTR_T_H_
#if defined(__INTPTR_TYPE__)
typedef __INTPTR_TYPE__ intptr_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/effel/x86.h | #ifndef X86_H
#define X86_H
#include <stdint.h>
static inline void outb(uint16_t port, uint8_t v)
{
__asm__ __volatile__ ("outb %0, %1" :: "a"(v), "Nd"(port));
}
static inline void outw(uint16_t port, uint16_t v)
{
__asm__ __volatile__ ("outw %0, %1" :: "a"(v), "d"(port));
}
static inline void outl(uint16_t... |
DossierSansTitreEx/MiaouOS | src/effel/main.c | <filename>src/effel/main.c
#include <gdt.h>
#include <tss.h>
#include <vmm.h>
#include <screen.h>
#include <proc.h>
#include <mfs.h>
#include <syscall.h>
#include <interrupt.h>
void kmain(boot_params* params)
{
gdt_init();
tss_init();
mfs_init(params);
vmm_init(params);
interrupt_init();
screen... |
DossierSansTitreEx/MiaouOS | src/libc/string/strchr.c | #include <string.h>
char* strchr(const char* s, int c)
{
size_t i;
char cc;
char sc;
i = 0;
cc = c;
for (;;)
{
sc = s[i];
if (sc == cc)
return (char*)s + i;
if (sc == 0)
return NULL;
i++;
}
}
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_null.h | #ifndef _SYS__TYPES__NULL_H_
#define _SYS__TYPES__NULL_H_
#if defined(__cplusplus)
# define NULL (0)
#else
# define NULL ((void *)0)
#endif
#endif
|
DossierSansTitreEx/MiaouOS | include/boot/boot_params.h | <reponame>DossierSansTitreEx/MiaouOS<gh_stars>1-10
#ifndef INCLUDED_BOOT_PARAMS_H
#define INCLUDED_BOOT_PARAMS_H
#include <stdint.h>
struct mbr_entry_
{
uint8_t status;
uint8_t chs[3];
uint8_t type;
uint8_t chs_end[3];
uint32_t lba_base;
uint32_t lba_length;
} __attribute... |
DossierSansTitreEx/MiaouOS | src/effel/syscall.h | #ifndef _SYSCALL_H
#define _SYSCALL_H 1
void syscall_init();
#endif
|
DossierSansTitreEx/MiaouOS | src/effel/ata.h | <gh_stars>1-10
#ifndef _EFFEL_ATA
#define _EFFEL_ATA 1
#include <stdint.h>
void ata_read(void* dst, uint64_t lba, size_t size, void* dpte);
#endif
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_uint8_t.h | <gh_stars>1-10
#ifndef _SYS__TYPES__UINT8_T_H_
#define _SYS__TYPES__UINT8_T_H_
#if defined(__UINT8_TYPE__)
typedef __UINT8_TYPE__ uint8_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | include/errno.h | <reponame>DossierSansTitreEx/MiaouOS
#ifndef _ERRNO_H
#define _ERRNO_H 1
#include <sys/cdefs.h>
#define errno (*(__errno()))
int* __errno(void) __attribute__((const));
#define E2BIG 1
#define EACCES 2
#define EADDRINUSE 3
#define EADDRNOTAVAIL 4
#define EAFNOSUPPORT 5... |
DossierSansTitreEx/MiaouOS | include/sys/_types/_int8_t.h | #ifndef _SYS__TYPES__INT8_T_H_
#define _SYS__TYPES__INT8_T_H_
#if defined(__INT8_TYPE__)
typedef __INT8_TYPE__ int8_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/effel/interrupt.c | #include <stdint.h>
#include <interrupt.h>
#include <x86.h>
#include <string.h>
struct idt_entry
{
uint16_t offset_low;
uint16_t selector;
uint8_t zero1;
uint8_t type;
uint16_t offset_mid;
uint32_t offset_high;
uint32_t zero2;
} __attribute__ ((packed));
struct idt
{... |
DossierSansTitreEx/MiaouOS | include/iso646.h | <reponame>DossierSansTitreEx/MiaouOS
#ifndef _ISO646_H
#define _ISO646_H 1
#if !defined(__cplusplus)
# define and &&
# define and_eq &=
# define bitand &
# define bitor |
# define compl ~
# define not !
# define not_eq !=
# define or ||
# define or_eq |=
# define xor ... |
DossierSansTitreEx/MiaouOS | include/sys/_types/_int64_t.h | <reponame>DossierSansTitreEx/MiaouOS
#ifndef _SYS__TYPES__INT64_T_H_
#define _SYS__TYPES__INT64_T_H_
#if defined(__INT64_TYPE__)
typedef __INT64_TYPE__ int64_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | include/sys/_types/_int16_t.h | #ifndef _SYS__TYPES__INT16_T_H_
#define _SYS__TYPES__INT16_T_H_
#if defined(__INT16_TYPE__)
typedef __INT16_TYPE__ int16_t;
#endif
#endif
|
DossierSansTitreEx/MiaouOS | src/libc/string/strlcpy.c | #include <string.h>
size_t strlcpy(char* __restrict dst, const char* __restrict src, size_t len)
{
size_t i;
char c;
for (i = 0; i < len; ++i)
{
c = src[i];
dst[i] = c;
if (c == 0)
return strlen(src);
}
dst[len] = 0;
return strlen(src);
}
|
AI-Pranto/OpenMOC | src/Point.h | <gh_stars>10-100
/**
* @file Point.h
* @brief The Point class.
* @date January 18, 2012
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef POINT_H_
#define POINT_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "log.h"
#include <math.h>
#include <sstream>
#endif
/**
* @class Point Point... |
AI-Pranto/OpenMOC | src/accel/cuda/clone.h | <reponame>AI-Pranto/OpenMOC<gh_stars>10-100
/**
* @file clone.h
* @brief Routines to copy Material and Track objects to the GPU from CPU.
* @author May 30, 2013
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#include "../DeviceMaterial.h"
#include "../DeviceTrack.h"
#include "GPUQuery.h"
#include <map>
void clon... |
AI-Pranto/OpenMOC | src/TrackGenerator3D.h | <gh_stars>10-100
/**
* @file TrackGenerator3D.h
* @brief The TrackGenerator3D class.
* @date March 13, 2016
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef TRACKGENERATOR3D_H_
#define TRACKGENERATOR3D_H_
#include "TrackGenerator.h"
#include "Track3D.h"
/**
* @struct TrackChainIndexes
* @brief A Track c... |
AI-Pranto/OpenMOC | src/LocalCoords.h | <reponame>AI-Pranto/OpenMOC
/**
* @file LocalCoords.h
* @brief The LocalCoords class.
* @date January 25, 2012
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef LOCALCOORDS_H_
#define LOCALCOORDS_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "Point.h"
#include "Universe.h"
#include "C... |
AI-Pranto/OpenMOC | src/Mesh.h | <reponame>AI-Pranto/OpenMOC<filename>src/Mesh.h
/**
* @file Mesh.h
* @brief The Mesh class for the alternative C++ build.
* @date November, 2016
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef MESH_H
#define MESH_H
#include "Universe.h"
#include "Solver.h"
#include "Geometry.h"
/* A Vector3D is simply a ... |
AI-Pranto/OpenMOC | src/pairwise_sum.h | <filename>src/pairwise_sum.h
/**
* @file pairwise_sum.h
* @brief Utility function for the accurate pairwise sum of a list of floating
* point numbers.
* @author <NAME> (<EMAIL>)
* @date June 13, 2013
*/
/**
* @brief Performs a pairwise sum of an array of numbers.
* @details This type of summation uses a... |
AI-Pranto/OpenMOC | src/boundary_type.h | <filename>src/boundary_type.h
/**
* @file boundary_type.h
* @details The boundaryType enum.
* @date January 10, 2015
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef BOUNDARY_TYPE_H_
#define BOUNDARY_TYPE_H_
/**
* @enum boundaryType
* @brief The types of boundary conditions supported by OpenMOC for Surfac... |
AI-Pranto/OpenMOC | src/MOCKernel.h | <reponame>AI-Pranto/OpenMOC<filename>src/MOCKernel.h
/**
* @file MOCKernel.h
* @brief An MOCKernel object
* @date May 5, 2015
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef MOCKERNEL_H_
#define MOCKERNEL_H_
#ifdef SWIG
#include "Python.h"
#endif
#include "Track.h"
#include "Track3D.h"
#include "Geometry.h... |
AI-Pranto/OpenMOC | src/accel/DeviceTrack.h | /**
* @file DeviceTrack.h
* @brief Structures for Tracks and Track segments on a GPU.
* @date June 29, 2012
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef DEVICETRACK_H_
#define DEVICETRACK_H_
#ifdef __cplusplus
#include "../Track.h"
#endif
/**
* @struct dev_segment
* @brief A dev_segment represents ... |
AI-Pranto/OpenMOC | src/TrackTraversingAlgorithms.h | <filename>src/TrackTraversingAlgorithms.h
/**
* @file TrackTraversingAlgorithms.h
* @brief Contains classes which extend the TraverseSegments class to apply
* algorithms to Tracks and possibly their segments.
* @details The classes defined within this file extend the TraverseSegments
* class so tha... |
AI-Pranto/OpenMOC | src/constants.h | <reponame>AI-Pranto/OpenMOC
/**
* @file constants.h
* @brief Math constants and comparision tolerances.
* @date April 9, 2015.
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef CONSTANTS_H_
#define CONSTANTS_H_
/** Threshold to determine if a float equals to 0.0 */
#define FLT_EPSILON 1.0E-12
/** Threshold ... |
AI-Pranto/OpenMOC | src/Vector.h | <reponame>AI-Pranto/OpenMOC
/**
* @file Vector.h
* @brief A vector object
* @date May 5, 2015
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef SRC_VECTOR_H_
#define SRC_VECTOR_H_
#ifdef __cplusplus
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <map>
#include <vector>
#include <string>
#... |
AI-Pranto/OpenMOC | src/ExpEvaluator.h | /**
* @file ExpEvaluator.h
* @brief The ExpEvaluator class.
* @date April 9, 2015.
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef EXPEVALUATOR_H_
#define EXPEVALUATOR_H_
#ifdef __cplusplus
#define _USE_MATH_DEFINES
#include "log.h"
#include "Quadrature.h"
#include <malloc.h>
#include <math.h>
#include "ex... |
AI-Pranto/OpenMOC | src/Progress.h | <gh_stars>10-100
/**
* @file Progress.h
* @brief An object to track progress
* @date January 11, 2016
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef PROGRESS_H_
#define PROGRESS_H_
#ifdef __cplusplus
#include <math.h>
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <sstrea... |
AI-Pranto/OpenMOC | src/linalg.h | /**
* @file linalg.h
* @details This file contains a library of functions for performing linear
* algebra operations.
* @date July 3, 2015
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
/* File: linalg.h */
#ifndef LINALG_H_
#define LINALG_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#i... |
AI-Pranto/OpenMOC | src/exponentials.h | <filename>src/exponentials.h
/**
* @file exponentials.h
* @brief Math approximations for computing exponentials.
* @date January 16, 2019
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef EXPONENTIALS_H_
#define EXPONENTIALS_H_
/**
* @brief Computes the F1 exponential term.
* @details This method computes ... |
AI-Pranto/OpenMOC | src/Universe.h | /**
* @file Universe.h
* @brief The Universe class.
* @date January 9, 2012
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef UNIVERSE_H_
#define UNIVERSE_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "constants.h"
#include "LocalCoords.h"
#include "boundary_type.h"
#include <limits>
... |
AI-Pranto/OpenMOC | src/accel/cuda/GPUQuery.h | <gh_stars>10-100
/**
* @file GPUQuery.h
* @brief Routines to check machine for an NVIDIA GPU and print GPU
* and CUDA hardware characteristics to the screen.
* @author May 30, 2013
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef GPUQUERY_H_
#define GPUQUERY_H_
#ifdef __cplusplus
#ifdef SWIG
#inclu... |
AI-Pranto/OpenMOC | src/Quadrature.h | /**
* @file Quadrature.h
* @brief The Quadrature abstract class and subclasses.
* @details The Quadrature subclasses are defined with tabulated or functional
* quadrature sets given in the "Lattice Physics Computations",
* Handbook of Nuclear Engineering, <NAME>, <NAME>, 2010.
* @date April 8, 2... |
AI-Pranto/OpenMOC | src/CPUSolver.h | /**
* @file CPUSolver.h
* @brief The CPUSolver class.
* @date May 28, 2013
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef CPUSOLVER_H_
#define CPUSOLVER_H_
#ifdef __cplusplus
#define _USE_MATH_DEFINES
#include "Solver.h"
#include "TrackTraversingAlgorithms.h"
#include <math.h>
#include <omp.h>
#include <... |
AI-Pranto/OpenMOC | profile/models/load-geometry/helper-code/group-structures.h | #include <vector>
#include <iostream>
#include "../../../../src/log.h"
std::vector<std::vector<int> > get_group_structure(int num_groups,
int num_cmfd_groups);
inline std::vector<std::vector<int> > get_group_structure(int num_groups,
... |
AI-Pranto/OpenMOC | src/ParallelHashMap.h | /**
* @file ParallelHashMap.h
* @brief A thread-safe hash map supporting insertion and lookup operations.
* @details The parallel hash map is built on top of a fixed-sized hash map
* object and features OpenMP concurrency structures. The underlying
* fixed-sized hash map handles collisions with chaining.
* ... |
AI-Pranto/OpenMOC | src/CPULSSolver.h | /**
* @file CPULSSolver.h
* @brief The CPULSSolver class.
* @date February 19, 2016
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef CPULSSOLVER_H_
#define CPULSSOLVER_H_
#ifdef __cplusplus
#define _USE_MATH_DEFINES
#include "CPUSolver.h"
#include <math.h>
#include <omp.h>
#include <stdlib.h>
#endif
/** ... |
AI-Pranto/OpenMOC | src/TraverseSegments.h | /**
* @file TraverseSegments.h
* @brief A TraverseSegments object
* @date February 15, 2016
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef TRAVERSE_SEGMENTS_H_
#define TRAVERSE_SEGMENTS_H_
#ifdef SWIG
#include "Python.h"
#endif
#include "Track.h"
#include "Track3D.h"
#include "Geometry.h"
#include "TrackG... |
AI-Pranto/OpenMOC | src/accel/cuda/dev_exponential.h | /**
* Compute exponentials on the GPU using some of <NAME>'s finest work.
*/
#pragma once
/* Coefficients for numerator */
__device__ const FP_PRECISION p0 = 1.0;
__device__ const FP_PRECISION p1 = 2.4172687328033081 * 1E-1;
__device__ const FP_PRECISION p2 = 6.2804790965268531 * 1E-2;
__device__ const FP_PRECISION... |
AI-Pranto/OpenMOC | src/Region.h | <reponame>AI-Pranto/OpenMOC
/**
* @file Region.h
* @brief The Region class.
* @date March 10, 2017
* @author <NAME>, MIT, Course 22 (<EMAIL>)
*/
#ifndef REGION_H_
#define REGION_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "Surface.h"
#include "boundary_type.h"
#include <limits>
#endif
... |
AI-Pranto/OpenMOC | src/Track3D.h | /**
* @file Track3D.h
* @brief The 3D Track class.
* @date May 9, 2015
* @author <NAME>, MIT Course, 22 (<EMAIL>)
*/
#ifndef TRACK3D_H_
#define TRACK3D_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "Point.h"
#include "Material.h"
#include "Track.h"
#include "Track.h"
#include "LocalCoords... |
AI-Pranto/OpenMOC | src/Track.h | /**
* @file Track.h
* @brief The generic Track class.
* @date May 16, 2015
* @author <NAME>, MIT Course, 22 (<EMAIL>)
*/
#ifndef TRACK_H_
#define TRACK_H_
#ifdef __cplusplus
#ifdef SWIG
#include "Python.h"
#endif
#include "Point.h"
#include "Material.h"
#include "boundary_type.h"
#include <vector>
#include <algo... |
cordella/MOS6581_t | MOS6581_p.h | <reponame>cordella/MOS6581_t
#ifndef MOS6581_P_H
#define MOS6581_P_H
#include <Arduino.h>
#include "MOS6581_t.h"
class MOS6581_p: public MOS6581_t
{
/* Parallel implementation of SID control; microcontroller pins connect in parallel to SID address
* and data pins, possibly in combination with othe... |
cordella/MOS6581_t | MOS6581_t.h | <gh_stars>1-10
#ifndef MOS6581_T_H
#define MOS6581_T_H
#include <Arduino.h>
class MOS6581_t
{
/* Base class for the SID, holds all information common to both parallel and serial implementations. */
protected:
byte last_address, last_write, last_read;
byte O2;
public:
/* Parallel pi... |
cordella/MOS6581_t | MOS6581_s.h | #ifndef MOS6581_S_H
#define MOS6581_S_H
#include <Arduino.h>
#include "MOS6581_t.h"
#endif
|
pranavyeola/Hacktoberfest2020 | c codes/elevator.c | <reponame>pranavyeola/Hacktoberfest2020<gh_stars>1-10
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
struct node {
int data;
struct node *next;
struct node *prev;
};
//this link always point to first Link
struct node *head = NULL;
//this link always point to last Link
struct... |
zrora/DistributedNAS | BUSE/busexmp.c | <gh_stars>0
/*
* busexmp - example memory-based block device using BUSE
* Copyright (C) 2013 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
... |
zrora/DistributedNAS | BUSE/loopback.c | <filename>BUSE/loopback.c<gh_stars>1-10
/*
* loopback - example loopback device using BUSE
* Copyright (C) 2013 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 ... |
zrora/DistributedNAS | DesignPatterns/Singletone/handleton/myclass.h | <reponame>zrora/DistributedNAS<filename>DesignPatterns/Singletone/handleton/myclass.h
#ifndef __SINGLETON_V1_H__
#define __SINGLETON_V1_H__
#include <boost/noncopyable.hpp>
#include "handleton.h"
namespace ilrd
{
class MyClass: boost::noncopyable
{
public:
void Print();
private:
friend class Handleton<MyClass>;
... |
zrora/DistributedNAS | DesignPatterns/Singletone/singletonesharedlibrary/handleton.h | #ifndef __HANDLETON_H__
#define __HANDLETON_H__
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
/*
Usage:
void f(Something &s){...}
void letsusesomething()
{
Handleton<Something> s;
s->method();
f(s);
}
void useitagain()
{
Handleton<Something> s;
s->someothermethod();
}
*/
#ifdef WIN32
#define NO... |
zrora/DistributedNAS | BUSE/buse.h | <reponame>zrora/DistributedNAS<filename>BUSE/buse.h
#ifndef BUSE_H_INCLUDED
#define BUSE_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
struct buse_operations {
int (*read)(void *buf, u_int32_t len, u_int64_t offset, void *userdata);
int (*write)(const void *buf, u_int32_t len, u_... |
glennsl/reason-sdl2 | src/reglfw_image.h | extern "C" {
struct ReglfwImageInfo {
int width;
int height;
// Actual data - should be width*height*4 bytes due to RGBA layout
unsigned char* data;
};
CAMLprim value
caml_createImage(value vPixels);
CAMLprim value
caml_destroyImage(value vImage);
CAMLprim... |
glennsl/reason-sdl2 | src/glad.c | /*
OpenGL ES loader generated by glad 0.1.27 on Tue Sep 11 02:18:13 2018.
Language/Generator: C/C++
Specification: gl
APIs: gles2=2.0
Profile: core
Extensions:
Loader: True
Local files: False
Omit khrplatform: False
Reproducible: False
Commandline:... |
cparnot/INAppStoreWindow | INAppStoreWindow/INAppStoreWindow.h | //
// INAppStoreWindow.h
//
// Copyright (c) 2011-2014 <NAME>. All rights reserved.
// Copyright (c) 2014 Petroules Corporation. All rights reserved.
//
// Licensed under the BSD 2-clause License. See LICENSE file distributed in the source
// code of this project.
//
#import <Cocoa/Cocoa.h>
/**
Height of a smal... |
cparnot/INAppStoreWindow | INAppStoreWindow/INAppStoreWindowCompatibility.h | <filename>INAppStoreWindow/INAppStoreWindowCompatibility.h<gh_stars>100-1000
//
// INAppStoreWindowCompatibility.h
// INAppStoreWindow
//
// Copyright (c) 2011-2014 <NAME>. All rights reserved.
// Copyright (c) 2014 Petroules Corporation. All rights reserved.
//
// Licensed under the BSD 2-clause License. See LICE... |
ggtakec/chmpx | lib/chmstream.h | <filename>lib/chmstream.h
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the c... |
ggtakec/chmpx | lib/chmutil.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmthread.h | <gh_stars>10-100
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and... |
ggtakec/chmpx | lib/chmcommon.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmstructure.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmnetdb.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmssopenssl.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmpx.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmopts.h | <filename>lib/chmopts.h
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the cli... |
ggtakec/chmpx | lib/chmeventshm.h | <gh_stars>10-100
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and... |
ggtakec/chmpx | lib/chmeventbase.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmlock.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmconfutil.h | <gh_stars>10-100
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and... |
ggtakec/chmpx | lib/chmss.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmregex.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmsigcntrl.h | <filename>lib/chmsigcntrl.h
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the... |
ggtakec/chmpx | lib/chmeventsock.h | <filename>lib/chmeventsock.h
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between th... |
ggtakec/chmpx | lib/chmimdata.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmconf.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmdbg.h | <reponame>ggtakec/chmpx
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the cli... |
ggtakec/chmpx | lib/chmcomstructure.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmcntrl.h | <reponame>ggtakec/chmpx
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the cli... |
ggtakec/chmpx | lib/chmssnss.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmssgnutls.h | <gh_stars>10-100
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and... |
ggtakec/chmpx | lib/chmeventmq.h | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... |
ggtakec/chmpx | lib/chmkvp.h | <gh_stars>10-100
/*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.