text stringlengths 3.08k 10.5k |
|---|
//
// server.c
// Server
//
// Created by <NAME> on 22/10/2017.
// Copyright ยฉ 2017 <NAME>. All rights reserved.
//
#include "server.h"
#define BACKLOG 10
#define CHUNK_SIZE 1024
BOOL is_favicon_request(PCHAR request);
PCHAR handle_req_recv(INT cx_socket, INT flags) {
PCHAR chunk = NULL;
chunk = malloc(CH... |
/*-------------------------------------------------------------------------
*
* spin.c
* Hardware-independent implementation of spinlocks.
*
*
* For machines that have test-and-set (TAS) instructions, s_lock.h/.c
* define the spinlock implementation. This file contains only a stub
* implementation for spinlo... |
#pragma once
#include <pebble.h>
#define ANDROID_APP_VERSION "1.2" // The minimum compatible Android app version.
/******************************** Enumerations ********************************/
// Types of data that can requested from the phone
typedef enum {
DataTypeBatteryPercent = 678342, // (integer_value... |
#include "mex.h"
#include "blas.h"
#include "conv2d.h"
#define DEBUG 0
void inner_fv_term(int Np, int K, double *h, double *u, double *v,
int Nedge, double *v1, double *v2,
double *nx, double *ny, double *ds,
signed char *EToR, double *rhs)
{
#ifdef _OPENMP
#pr... |
#include "cxs.h"
/* allocate a sparse matrix (triplet form or compressed-column form) */
cxs *cxs_spalloc (CXS_INT m, CXS_INT n, CXS_INT nzmax, CXS_INT values, CXS_INT triplet)
{
cxs *A = cxs_calloc (1, sizeof (cxs)) ; /* allocate the cxs struct */
if (!A) return (NULL) ; /* out of memory */
... |
/* $OpenBSD: ttyio.c,v 1.32 2008/02/05 12:53:38 reyk Exp $ */
/* This file is in the public domain. */
/*
* POSIX terminal I/O.
*
* The functions in this file negotiate with the operating system for
* keyboard characters, and write characters to the display in a barely
* buffered fashion.
*/
#include "def.h"
#... |
/*
* fMain.c
*/
#include "Include.h"
#include "ToDoDB.h"
/* protos */
static void SaveData(void);
static void Sort(void);
static Int16 TasksSortClassic(void *, void *, Int16, SortRecordInfoType *, SortRecordInfoType *, MemHandle);
static Int16 TasksSortNew(void *, void *, Int16, SortRecordInfoType *, SortRecordInfoT... |
/* teres1-audiocontrol.c - audio input/output manager
Should be run as root. On start, it reads an A64 specific
memory address and sets the mixer accordingly. Then the program
exits, unless a device is given as an argument
(normally, /dev/input/by-path/platform-sound.6-event).
In this case, the program ... |
/*
Software License Agreement (BSD License)
Copyright (c) 1997-2011, <NAME>, (LADSoft).
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redi... |
/***********************************************************************
*
* Copyright 1996, University Corporation for Atmospheric Research.
*
* log.c
*
* Callbacks and utilities for displaying program logging information.
*
* History:
*
* 11/96 COMET Original copy
* 7/97 COMET Added X and Xt error handler... |
/************************************************
* This file and all its contents are *
* licensed under the MIT license. *
* See LICENSE in the root folder for *
* more information. *
************************************************/
/**
* flash_fds.c
*
* Created: 2018-08-22
* Last Modified: 20... |
/* hashtable.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hashtable.h"
//** HASH NODE **//
HashNode* HN_Init(char* page, char instr, int frameNum, int pid){
struct timeval timeSignature; // for timeSignature of addition in PT
HashNode* newNode = malloc(sizeof(HashNode));
if(ne... |
/*
* Copyright (c) 2009 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/*
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicen... |
// Group Element Additions
//
// Urbit uses the ge.h code from the ed25519 library, which was ported from the
// ref10 SUPERCOP public domain implementation. That implementation doesn't
// contain several functions needed for ring signatures.
//
// This file does. The providence of this code starts with <NAME> taking
/... |
/*
* Copyright (c) 2002-2016 Balabit
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation, or (at your option) any later version.
*
* This pro... |
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/**********************************************************************
rbart_uta.c - Art::Uta class for ruby
$Author: ggc $
$Date: 2007/07/13 16:07:33 $
Copyright (C) 2005 Ruby-GNOME2 Project Team
***************************************************... |
/*-------------- Telecommunications & Signal Processing Lab ---------------
McGill University
Routine:
enum AF_ERR_T AFposition (AFILE *AFp, long int offs)
Purpose:
Position an audio file to a given sample offset
Description:
This routine positions a file to a given position.
Para... |
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/prctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <string.h>
#include <sys/syscall.h>
#include "sendmsg_spray.h"
#define CPU_SETSIZE 1024
#define __NCPUBITS (8 * sizeof (unsigned long))
ty... |
#include "include/player.h"
//where is player_t?
//We don't have a player_t, we have player using actor_t struct in game_t
//so look in game_t for player decleration
void set_player_state(game_t* game_ref, actor_anim_state_t state)
{
//set state and update tile_id for correct animation
game_ref->player.state... |
/**
* Copyright (c) 2017 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lib/dmt/dmt.h"
#include "lib/stb/stb_image.h"
#include "filesystem.h"
#in... |
#include <cap/ls/ls.h>
struct Opts {
bool is_help;
bool is_all;
};
struct CapLsCmd {
const CapConfig *config;
int argc;
char **argv;
struct Opts opts;
};
void
CapLsCmd_Del(CapLsCmd *self) {
if (self) {
return;
}
free(self);
}
static bool
parse_opts(CapLsCmd *self) {
/... |
#include <avr/io.h>
#include <inttypes.h>
#include "tapuino.h"
#include "config.h"
#include "comms.h"
#include <Arduino.h>
volatile uint8_t g_cur_command = COMMAND_IDLE;
#ifdef USE_ROTARY_ENCODER
#define BTN_RELEASED 0
#define BTN_PRESSED 1
#define pressDelay 256
#define releaseDelay 64
unsigned char rotarySta... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYIN... |
#include <stdbool.h>
#include "driver/mcpwm.h"
#define GPIO_PWM0A_OUT 19 // Set GPIO 19 as PWM0A
#define GPIO_PWM0B_OUT 18 // Set GPIO 18 as PWM0B
#define GPIO_PWM1A_OUT 22 // Set GPIO 22 as PWM1A
#define GPIO_PWM1B_OUT 21 // Set GPIO 21 as PWM1B
#define PWM_FREQ 100
#define BRAKING false
/**
* @brief Configure... |
/*
* Copyright (C) Texas Instruments - http://www.ti.com/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versi... |
#include <lua.h> /* Always include this */
#include <lauxlib.h> /* Always include this */
#include <lualib.h> /* Always include this */
#include <luaT.h> /* Always include this */
#include <TH.h> ... |
/**
* @file i2c.c
* @author <NAME>
* @website http://www.amperture.com
* @date 3 Jan 2016
* @brief I2C Peripheral Driver Code for stm32f4xx
*
* This file contains private and public functions for using the I2C peripheral
* on an stm32f4xx microcontroller. Comes as part of the
* stm32f4xx-amperture-periphlib p... |
/******** build_params_g.c *********/
/* MIMD version 6 */
/* NOT MAINTAINED. TEST BEFORE USE */
#include "arb_dirac_inv_includes.h"
/* Gaussian BoC parameterization */
static Real fit_params[9][3]={
{0.0, 0.0, 0.0},
{-2.673198e+00, -7.092352e-01, -1.491836e-02},
{-3.493561e+00, -1.007043e+00, -4.207975e-02},
{-4.21... |
/*
* Read an fpM file produced by photo
*/
#define CALC_POLYGONS 1 /* define this if you want to use
the -p flag to calculate polgonal
approximations to masks */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dervish.h"
#include "phFits.h"
#include "phConsts.h"
#include "phSpa... |
/**
* Outer Solar System
*
* This example uses the IAS15 integrator
* to integrate the outer planets of the solar system. The initial
* conditions are taken from Applegate et al 1986. Pluto is a test
* particle. This example is a good starting point for any long term orbit
* integrations.
*
* You probably wan... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include "linkedlist/list.h"
//=-=-=-=-=--=-=-=-=-= Paths
typedef struct {
int length;
char **files;
} Paths;
Paths * Paths_new() {
Paths *p = (Paths *)malloc(sizeof(Paths));
return p;
}
void Paths_each(Paths *p,... |
/*************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved... |
/*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
/*
* Simple example of parsing and printing JSON using jansson.
*
* SYNOPSIS:
* $ examples/simple_parse
* Type some JSON > [true, false, null, 1, 0.0, -0.0, "", {"name": "barney"}]
* JSON Array of 8 elements:
* JSON True
* JSON False
* JSON Null
* JSON Integer: "1"
* JSON Real: 0.000000
* JSON R... |
#include "ecore_xcb_private.h"
#include <ctype.h> // for isupper/tolower
#ifdef ECORE_XCB_RENDER
# include <xcb/render.h>
# include <xcb/xcb_renderutil.h>
#endif
/* local function prototypes */
static Eina_Bool _ecore_xcb_render_parse_boolean(char *v);
/* local variables */
static Eina_Bool _render_avail = EINA_FALSE... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <cpuinfo.h>
void report_cache(
uint32_t count, const struct cpuinfo_cache* cache,
uint32_t level, const char* nonunified_type)
{
const char* type = (cache->flags & CPUINFO_CACHE_UNIFIED) ? "unified" : nonunified_type;
print... |
/*$
Copyright (c) 2014-2017, Azel
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... |
/// Testing multithreading and multiprocessing for C verison of 'sim_db'.
// Copyright (C) 2018-2019 <NAME> <<EMAIL>>
// Licensed under the MIT License.
#define _POSIX_C_SOURCE 2
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
... |
/* mtest3.c - memory-mapped database tester/toy */
/*
* Copyright 2015-2018 <NAME> <<EMAIL>>.
* Copyright 2011-2018 <NAME>, Symas Corp.
* Copyright 2015,2016 Peter-Service R&D LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as... |
/*-
* Copyright (c) 2007 <NAME>
* Copyright (c) 2007 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2009 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* -------------------------------------------
* MSP432 DriverLib - v2_20_00_08
* -------------------------------------------
*
* --COPYRIGHT--,BSD,BSD
* Copyright (c) 2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
/**
* Copyright (c) 2014 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright... |
#pragma once
#include "Config.h"
#ifdef USING_OPENGL
#include "Renderer/API/openGL/GLLoader/glad.h"
#endif
namespace gx {
enum GXAttachmentType {
GX_COLOR_TEXTURE = 0, // Albedo/Color Attachment
GX_DEPTH_TEXTURE,
GX_POSITION_TEXTURE,
GX_NORMAL_TEXTURE,
GX_ID_TEXTURE,
GX_STENCIL_TEXTURE
};
//TEXTURES
e... |
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
#include "ns/utils/logger.h"
#include <string.h>
#include <limits.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#define LOGGER_MAX_CALLBACKS 32
#define LOGGER_UNKNOWN_RANK (-1)
#define LOGGER_MAX_RANK_CHARS 4
typedef struct {
log_LogFn fn;
void *udata;
int level;
} Callback;
static stru... |
#include "fp16.h"
// Copied from Numpy
static unsigned half2float(unsigned short h)
{
unsigned short h_exp, h_sig;
unsigned f_sgn, f_exp, f_sig;
h_exp = (h&0x7c00u);
f_sgn = ((unsigned)h&0x8000u) << 16;
switch (h_exp) {
case 0x0000u: /* 0 or subnormal */
h_sig = (h&0x03ffu);
... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
/*
* Use is subject to license terms, as specified in the LICENSE file.
*/
#include "_q_rhashmap_I8_I8.h"
#include "_q_rhashmap_mk_hash_I8.h"
#include "q_rhashmap_mk_loc.h"
#include "q_rhashmap_mk_tid.h"
#include "_invariants_I8_I8.h"
#define VALTYPE int64_t
#define KEYTYPE uint64_t
//-------------------------------... |
/* redsocks - transparent TCP-to-proxy redirector
* Copyright (C) 2007-2018 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LIC... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
#define MAX_PLATFORMS 32
#define MAX_DEVICES 32
#define MAX_BINARIES 32
char kernel[] = "__kernel void k() {\n return;\n}";
int
main(void){
cl_int err;
cl_platform_id platforms[MAX_PLATFORMS];
cl_uint nplatforms;
cl_device_id ... |
/*
* (C) Copyright 2004-2008
* Texas Instruments, <www.ti.com>
*
* Author :
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2009
* <NAME> <<EMAIL>>
*
* Derived from Beagle Board and 3430 SDP code by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <commo... |
/*
* SPDX-License-Identifier: MIT
*
* Copyright ยฉ 2019 Intel Corporation
*/
#include "i915_drv.h"
#include "intel_engine.h"
#include "intel_engine_pm.h"
#include "intel_engine_pool.h"
#include "intel_gt.h"
#include "intel_gt_pm.h"
static int __engine_unpark(struct intel_wakeref *wf)
{
struct intel_engine_cs *en... |
#include <stdlib.h>
#include <stdio.h>
#include <utf8proc.h>
#include "lk_common.h"
#include "lk_tree.h"
/**
* @struct lk_leaf
* Contains information about a character of a word, a pointer to possible
* character in the same position, and a pointer to the possible next
* character in the word
*/
struct lk_leaf... |
/**********
Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1991 <NAME>, U. C. Berkeley CAD Group
Modified: 2001 <NAME>
**********/
#include "ngspice/ngspice.h"
#include "ngspice/numcards.h"
#include "ngspice/numgen.h"
#include "ngspice/bdrydefs.h"
#include "ngspice/devdefs.h"
#in... |
/** @file mdev_gpio.c
*
* @brief This file provides mdev driver for GPIO
*
* (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved.
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Mar... |
#pragma once
/*===================================================*/
/*| Constant defines - non modifiable |*/
/*===================================================*/
// ray tracer
#define RAY_TRACER_VERSION "Whitted-style ray tracer v1.50 (BETA)"
// renderer
#define EPSILON 0.001f // bigger epsilon for large sce... |
/* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* gthread.c: posix thread system implementation
* Copyright 1998 <NAME>; University of Karlsruhe
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
// Copyright (C) 2015 University of Oregon
// You may distribute under the terms of either the GNU General Public
// License or the Apache License, as specified in the LICENSE file.
// For more information, see the LICENSE file.
#ifndef LINT
#endif
/*
*/
/* gHSQC - Gradient Selected phase-sensitive HSQC
Features i... |
// Run-time library for the ODE Compiler
// Written in C99 rathn than LLVM for quick development
// Mainly utility functions for outputting balues to screen and files
#include "OdeStdLib.h"
#include "WELL512a.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#includ... |
/*
Copyright (C) 2019-2020 JingWeiZhangHuai <<EMAIL>>
Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... |
/* Note from DQ (11/2/2005): I have examined this code closely to verify that it
does not appear to have any behavior that would be inappropriate for use as
an example code within ROSE.
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include ... |
#include <curses.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define HSIZE 60
#define LENGTH 75
#define WIDTH 10
#define STARTX 1
#define STARTY 5
#define STATUSX 1
#define STATUSY 25
#define KEY_F1 265
int print_menu();
void print_byebye();
void create_test_string();
void print_tim... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
FLA_Error FLA_Tevd_v_opt... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct bs_root {
struct bs_node *bs_node;
};
struct bs_node {
struct bs_node *parent;
int value;
struct bs_node *left, *right;
};
struct bs_root *create()
{
return calloc(1, sizeof(struct bs_root));
}
void destroy_nod... |
/* SPDX-License-Identifier: BSD-2-Clause */
#include "base32.h"
#include <errno.h>
static const unsigned char base32_dec_map[128] = {
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 127, 12... |
#include <TH/TH.h>
#include <math.h>
#include <float.h>
#define SUCCESS 1
#define FAILURE 0
#define MAXNUM FLT_MAX
#define FALSE 0
#define TRUE 1
static const float A[] = {
-4.16666666666666666667E-3f,
3.96825396825396825397E-3f,
-8.33333333333333333333E-3f,
8.33333333333333333333E-2f
};
static inli... |
// Copyright 2019-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <openvkl/openvkl.h>
#include <stdio.h>
void demoScalarAPI(VKLVolume volume)
{
printf("demo of 1-wide API\n");
// bounding box
vkl_box3f bbox = vklGetBoundingBox(volume);
printf("\tbounding box\n");
printf("\t\tlower = ... |
// Created by YY on 2017/6/24.
// Copyright ยฉ 2017ๅนด YY. All rights reserved.
//
#include "yy_data_buffer.h"
#include "stdlib.h"
#include <sys/time.h>
#include <string.h>
void YY_databuffer_init(ST_YY_DATA_BUFFER * buf, int size)
{
pthread_mutex_init(&buf->mutex, NULL);
pthread_cond_init(&buf->cond, NULL);
... |
/*****************************************************************************
* gray-ndb-queuer.c *
* *
* This file implements a process that pushes asynchronously all writes into *
* a... |
#include "five_neurons.h"
#include <pcg_basic.h>
#include <ross.h>
#include "../../layout/master.h"
#include "../../layout/standard_layouts.h"
#include "../../neurons/lif.h"
#include "../../storable_spikes.h"
#include "../../utils/pcg32_random.h"
static struct StorableSpike **spikes = NULL;
static void initialize_L... |
//
// File: %f-round.c
// Summary: "special rounding math functions"
// Section: functional
// Project: "Rebol 3 Interpreter and Run-time (Ren-C branch)"
// Homepage: https://github.com/metaeducation/ren-c/
//
//=////////////////////////////////////////////////////////////////////////=//
//
// Copyright 2012 REBOL... |
/*
* Copyright (c) 1988, 1992 The University of Utah and the Center
* for Software Science (CSS).
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Center for Software Science of the University o... |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* molehill uses the GLU NURBS routines to draw some nice surfaces. */
#include <GL/gl... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "ip.h"
#include "kernel.h"
#include "ppp.h"
static void pppreader(void *a);
static void pppbind(Ipifc *ifc, int argc, char **argv);
static void pppunbind(Ipifc *ifc);
static void pppbwrite(Ip... |
/*
Copyright (C) 2015-2019 Parallel Realities
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 (at your option) any later version.
This program is distributed in t... |
#pragma config(Motor, port1, InstaR, tmotorVex393_HBridge, openLoop, reversed)
#pragma config(Motor, port2, Left, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, Right, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, Li... |
// Display Wrapper
#include "display_wrapper.h"
#include "config.h"
/**
* This display wrapper makes the initialization and some
* draw functions easier to use.
*
* Other draw functionality can be found in GUI_Paint.h/GUI_Paint.c
*/
/** Display Coordinates : (x,y)
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
... |
/* Convert float to Radiance 32bit packed format
*
* 23/3/09
* - from im_rad2float and Radiance sources
* 2/11/09
* - gtkdoc
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published ... |
/*
Copyright (C) 1996-2001 Id Software, Inc.
Copyright (C) 2002-2005 <NAME> and others
Copyright (C) 2007-2008 <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, ... |
/* File Details ***********************************************************************************************
* File Name : main.c
* Author : <NAME>
* Description : Receives the BMS Data & perform calculations on received values
* Functions : main
* ***********************************************************... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2012 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
/*
* Tests that basic optimizations are performed on indexed datatypes.
*
* If PACK_IS_NATIVE is defined, MPI_Pack stores exactly the same bytes as the
... |
/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */
/*
* lsquic_rechist.c -- History of received packets.
*/
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#ifdef MSVC
#include <vc_compat.h>
#endif
#include "lsquic_int_types.h"
#include "ls... |
/* $OpenBSD: esis.h,v 1.4 2003/06/02 23:28:17 millert Exp $ */
/* $NetBSD: esis.h,v 1.9 1996/02/13 22:09:29 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... |
#include "digitalIo.h"
#include "km0/base/bitOperations.h"
#include "singlewire3.h"
#include <avr/interrupt.h>
#include <avr/io.h>
#include <util/delay.h>
//ๅ็ท้ไฟก
//ใใซในๅน
ใง0/1ใ่กจใ
//ใใซในๅน
่จๆธฌใซใใๅไฟก
//100kpbs
uint8_t singlewire3_debugValues[4] = { 0 };
//---------------------------------------------
//ไฟกๅทใใณ่จญๅฎ... |
//========================================================================
// GLFW - An OpenGL framework
// Platform: Any
// API version: 2.7
// WWW: http://www.glfw.org/
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 <NAME>
// Copyright (c) 2006-2010 <N... |
/* siman/test.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 <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 3 of the License, or (at
* your option) any later ... |
/**************************************************************************
*
* Copyright 2007 Tungsten Graphics, Inc., <NAME>, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software")... |
/*
* uqmi -- tiny QMI support implementation
*
* Copyright (C) 2014-2015 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (... |
/**************************************************************************
*
* Copyright 2007 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software w... |
/*---------------------------------------------------------------------------+
| reg_constant.c |
| |
| All of the constant FPU_REGs |
| ... |
/* Copyright (C) 2003-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 2003.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software... |
#include <heap.h>
#include <stdio.h>
#define GET_META(ptr) ((Metadata*)(ptr))
#define NEXT_BLOCK(ptr) ((Metadata*)(((uint32_t)(ptr)) + ((GET_META(ptr)->size) << 3)))
#define PREVIOUS_BLOCK(ptr) ((Metadata*)(((uint32_t)(ptr)) - ((GET_META(ptr)->previous_block_size) << 3)))
#define IS_CORRECT_BLOCK(ptr, heap) ((void*)... |
/*
* Copyright 2014 <NAME>
* Copyright 2016-2018, 2021 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later v... |
/*
* Copyright (c) 2018-2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... |
#define PA_ODR *(unsigned char*)0x5000
#define PA_IDR *(unsigned char*)0x5001
#define PA_DDR *(unsigned char*)0x5002
#define PA_CR1 *(unsigned char*)0x5003
#define PA_CR2 *(unsigned char*)0x5004
#define PB_ODR *(unsigned char*)0x5005
#define PB_IDR *(unsigned char*)0x5006
#define PB_DDR *(unsigned char*)0x5007
#define... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.