text stringlengths 5.8k 28.2k |
|---|
/*-
* Copyright (c) 2016-2017
* <NAME> <<EMAIL>>. 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
* notice, thi... |
/** @file lbaengine.c
@brief
This file contains the main game engine routines
TwinEngine: a Little Big Adventure engine
Copyright (C) 2013 The TwinEngine team
Copyright (C) 2008-2013 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
mo... |
/* geoStormToHcaStorm - Convert output of geoToTagStorm to something closer to what the Human Cell
* Atlas wants.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "obscure.h"
#include "tagStorm.h"
#include "csv.h"
struct hash *gSrxToSrr;
void usage()
/* Explain usage and... |
/* $NetBSD: clnt_generic.c,v 1.18 2000/07/06 03:10:34 christos Exp $ */
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2010, Oracle America, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/* Global Earliest Deadline First (GEDF) non-preemptive scheduler with chain ID
for the threaded runtime of the C target of Lingua Franca. */
/*************
Copyright (c) 2022, The University of Texas at Dallas.
Copyright (c) 2022, The University of California at Berkeley.
Redistribution and use in source and binary ... |
/*
* Ultrastor [13]4f SCSI Host Adapter.
* Originally written by <NAME>, <EMAIL>.
*/
#include "all.h"
#include "io.h"
#include "mem.h"
typedef struct Ctlr Ctlr;
typedef struct Mailbox Mailbox;
enum {
Nmbox = 8, /* number of Mailboxes; up to 16? */
Port = 0x330, /* factory default: I/O port */
};
/*
* Ultra... |
/*
* Copyright (c) 2015 Google, Inc
* Copyright 2014 Rockchip Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
#include <edid.h>
#include <regmap.h>
#include <syscon.h>
#include <video.h>
#include <asm/gpio.h>
#include <asm/hardware.h>
#includ... |
// Copyright(c) 2017-2018, Intel Corporation
//
// 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... |
#include "Game.h"
const char *CardSuit[4] = {"Spades","Hearts","Diamonds","Clubs"};
const char *Rank[13] = {"2","3","4","5","6","7","8","9","10","Jack","Queen","King","Ace"};
void Game(char *logname, int Parameters[])
{ // Parameters (1 ~ 5): players, cards, decks, round, state (whether auto).
if (Parameters[4]... |
/*
* Copyright(c) 2015, 2016 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of versi... |
#define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "devices.h"
#include "utils.h"
#include "positions.h"
#include "cigar.h"
extern int verbose;
extern int keepRunning;
// sorting function, used by qsort
static int poscompare(con... |
/*
Copyright (c) 2016, <NAME>, <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 notice,
this list of conditions and the following ... |
/**
*
* Copyright (c) 2010, <NAME> and Mongrel2 Project Contributors.
* 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 copy... |
/* VP8
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2010 Entropy Wave Inc
* Copyright (C) 2010-2012 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; eit... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Library <2002> <NAME> <<EMAIL>>
* Copyright (C) 2007 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation... |
/*----------------------------------------------------------------------------*/
/* Hobbit monitor library. */
/* */
/* This is a library module, part of libbbgen. ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <assert.h>
#include <ctype.h>
#include "config.h"
#include "core/util.h"
#include "core/bp_utils.h"
#include "core/adios_endianness.h"
#include "core/adios_logger.h"
/* Reverse the order in an array in place.
... |
/**
* @file
*/
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the acco... |
/** @file help.c
* @author <NAME>
*
* @brief Interactive help system
*/
#include <string.h>
#include <ctype.h>
#include <dirent.h>
#include "help.h"
#include "dictionary.h"
#include "parse.h"
#include "common.h"
#include "veneer.h"
/** The interactive help system uses a collection of Markdown files, located in
... |
/*
* 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... |
/*******************************************************************************
* *
* stdHepFiles.c -- Nirvana Phase Space Event Display, Accessing the StdHep *
* files and records *
* *
* Copyright (c) 1991 Universities Research Association, Inc. ... |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h> // access()
#include <ctype.h> // isspace()
#include <sys/mman.h> // mmap(), MAP_SHARED
#include <sys/wait.h> // waitpid()
#include <fcntl.h> // open(), close()
#include <libgen.h> // basename(), dirname()
#include "vpmu-control-lib.h" // Main header... |
/*
Copyright 2010 SourceGear, LLC
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 required by applicable law or agreed to in writing, software
dis... |
// Copyright (c) <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT License was not distributed with this file,
// You can obtain one at https://spdx.org/licenses/MIT.html.
#include "matoya.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#de... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <curl/curl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <openssl/hmac.h>
#include <ctype.h>
#include "cJSON.h"
#include "usefull_trash.h"
#include "c_example1.h"
#include "first.h"
#include "ezxml.h"
/*
I expect that... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... |
// SC is free software distributed under the MIT license
#define _GNU_SOURCE
#include "config.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <curses.h>
#include <sys/types.h>
#include <limits.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
#i... |
//Neutron project
//Standard GUI manager - cdow controller
#include "nlib.h"
#include "component.h"
#include "gfx.h"
#include "ngui.h"
//List of all components
ll_t* comps = NULL;
//List of all screens
ll_t* screens = NULL;
//The next ID of the component
uint64_t next_id = 0;
/*
* Copies a property structure to dr... |
/*===========================================================================*
* syscli.c - system manager client agent *
* *
* Copyright (c) 1991-2010 iMatix Corporation *
* ... |
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <mpi.h>
#include "three_algebra.h"
#include "object.h"
#include "error.h"
#include "system.h"
#include "ddcMalloc.h"
#include "units.h"
#include "external.h"
extern int getRank(int);
typedef struct slice_st
{
d... |
#include "csv.h"
#define CSV_READ_BUF_SIZE 1024
#define CSV_INIT_ROW_COUNT_ALLOC 4
#define CSV_INIT_FIELD_COUNT_ALLOC 4
const char CSV_FIELD_ENCLOSE_QUOTE_STR[2] = {CSV_FIELD_ENCLOSE_QUOTE, '\0'};
const char CSV_FIELD_ESCAPED_QUOTE_STR[3] = {CSV_FIELD_ENCLOSE_QUOTE, CSV_FIELD_ENCLOSE_QUOTE, '\0'};
#include "err.h"
... |
/*-
* Copyright (c) 2012 <NAME> <<EMAIL>>
* 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
* notice, this list of co... |
/*******************************************************************************
MPLAB Harmony Application Source File
Company:
Microchip Technology Inc.
File Name:
app.c
Summary:
This file contains the source code for the MPLAB Harmony application.
Description:
This file ... |
/* Copyright (C) 2002 <NAME> III
* Header for my stdio library for linux and (soon) elks.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... |
/* Copyright (c) 2007 <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, distr... |
#include "player.h"
#include "assets.h"
#include "sound_bank_sound_effects.h"
#include "catherine_animation.h"
#include "layermap.h"
#include "framework64/n64/controller_button.h"
#include "framework64/matrix.h"
#include <stdio.h>
#include <string.h>
static void process_input(Player* player);
static... |
/*
* ra1npoc - common.c
*
* Copyright (c) 2021 dora2ios
*
* 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, ... |
/*
Copyright (c) 2013, <NAME>
All rights reserved.
Redistr... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "primpl.h"
#include <proc... |
/*----------------------------------------------------------------------------*/
/* Xymon RRD handler module. */
/* */
/* Copyright (C) 2004-2006 <NAME> <<EMAIL>> */
/* ... |
/*
* Copyright 2009-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
/*
* Local NTP (LNTP)
* Author: <NAME>, <NAME>
* Reference:
* 1. NTPv4: https://www.eecis.udel.edu/~mills/database/reports/ntp4/ntp4.pdf
* 2. Use some source code from: http://blog.csdn.net/rich_baba/article/details/6052863
*/
#include "ntpclient.h"
#define DEBUG FALSE
Clock local_clock;
void filter(Response... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
/*
MIT License
Copyright (c) 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, distri... |
/*
* Fast car reverse image preview module
*
* Copyright (C) 2015-2018 AllwinnerTech, Inc.
*
* Contacts:
* Zeng.Yajian <<EMAIL>>
*
* 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; eithe... |
#include "clib-avl-tree.h"
#include <stdlib.h>
/* avl 树 */
struct _avl_tree_t {
unsigned int node_num;
avl_tree_node_t* root;
avl_tree_compare cmp_func;
};
/* avl 树节点 */
struct _avl_tree_node_t {
int height;
avl_key_t key;
avl_value_t ... |
/*
Tomato Firmware
Copyright (C) 2006-2009 <NAME>
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <bcmnvram.h>
#include <bcmdevs.h>
#include "shared.h"
/*
HW_* boardtype boardnum boardrev boardflags others
--------------------- ---------... |
/**********
Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1987 <NAME>, U. C. Berkeley CAD Group
Author: 1991 <NAME>, U. C. Berkeley CAD Group
**********/
#include "ngspice/ngspice.h"
#include "ngspice/numglobs.h"
#include "ngspice/numconst.h"
#include "ngspice/numenum.h"
#includ... |
#include "enc.h"
#include "huff.h"
#include "conf.h"
#define JPEG_ENC_DEF_QUAL 80 /* default quality factor */
#define JPEC_ENC_HEAD_SIZ 330 /* header typical size in bytes */
#define JPEC_ENC_BLOCK_SIZ 13 /* 8x8 entropy coded block typical size in bytes ... We observed 4 bytes per block? */
/* Private function p... |
#include <zephyr/types.h>
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
#include <zephyr.h>
#include <sys/printk.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h>
#include <bluetooth/uuid.h>
#include <bluetooth/gatt.h>
#include <sys/byteorder.h>
#include <sys/ring_b... |
#include "my_header.h"
/* Function to create graph with V vertices with no neighbours */
struct Graph* createGraph(int V, int attribute)
{
struct Graph *graph = (struct Graph*)malloc(sizeof(struct Graph));
graph->V = V;
graph->E = 0;
graph->attribute = attribute;
graph->array =... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2021 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any ... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolar... |
#include "MSPd.h"
#include "fftease.h"
#if MSP
void *thresher_class;
#endif
#if PD
static t_class *thresher_class;
#endif
#define OBJECT_NAME "thresher~"
#define DEFAULT_HOLD (40.0)
typedef struct _thresher
{
#if MSP
t_pxobject x_obj;
#endif
#if PD
t_object x_obj;
float x_f;
#endif
... |
#include <model.h>
#include <gsl/gsl_sf_gamma.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_cdf.h>
#define P_inv_gamma gsl_cdf_gamma_Pinv // invverse cumulative gamma dist
#define P_inc_gamma gsl_sf_gamma_inc_P // regularised incomplete Gamma function
#define lngamma gsl_sf_lngamma // ln Gamma function
#def... |
/*
i2cset.c - A user-space program to write an I2C register.
Copyright (C) 2001-2003 <NAME> <<EMAIL>>, and
<NAME> <<EMAIL>>
Copyright (C) 2004-2012 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gene... |
#include "nwx_cmn.h"
#define DELMTR "\n"
/************************************************************************
* srcho.c *
* *
* This module processes observed data for type "O... |
#include <pmap.h>
#include <string.h>
#include <console.h>
#include <stdio.h>
#include <env.h>
unsigned
mc146818_read(unsigned reg)
{
outb(IO_RTC, reg);
return inb(IO_RTC+1);
}
// These variables are set by i386_detect_memory()
size_t npages; // Amount of physical memory (in pages)
static size_t npages_basemem; /... |
#include <assert.h>
#include "benchmark_list.h"
typedef struct node {
int value;
struct node *left;
struct node *right;
unsigned int size;
} node_t;
typedef struct bonsai_tree {
pthread_spinlock_t spinlock;
node_t *root;
} bonsai_tree_t;
#define URCU_MAX_FREE_PTRS (1000)
#define URCU_FREE_PTRS_SIZE (2000)
t... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c,v 1.8 2001/04/18 14:52:42 dawes Exp $
* Acceleration for the Creator and Creator3D framebuffer - DRI/DRM support.
*
* Copyright (C) 2000 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... |
// SvdW map operations
//
// (C) 2019 <NAME> <<EMAIL>>
#include "arith.h"
#include "bint.h"
#include "curve.h"
#include "globals.h"
// *********************
// SvdW map to BLS12-381
// *********************
// Map to curve given by
// Shallue and <NAME>, "Construction of rational points on elliptic curves over fini... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/* *****************************************************************************
*
* Name: elmloginmanager.c
* Author: <NAME>
* Email: <EMAIL>
* License: The MIT License (MIT)
*
* Description: Control setting up, building, and displaying the ELM.
*
* Notes: None.
*
* *******************************... |
/*
* Fork LamaBleu <lama__<EMAIL>__<EMAIL>> - 04/2019
*
* Adapted from : power - AD9361 IIO streaming example which calculates channel power from DDS
*
* Copyright (C) 2014 IABG mbH
* Author: <NAME> <feilen_at_iabg.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... |
/*
* Copyright (C) <NAME> (<EMAIL>).
*/
#include "ngx_api_gateway.h"
#include "ngx_api_gateway_router.h"
#include <ngx_http.h>
#define DEFAULT_TIMEOUT (10000)
#define DEFAULT_INTERVAL (60000)
typedef void (*ngx_http_send_request_pt)(ngx_int_t rc,
ngx_keyval_t *headers, ngx_uint_t nheaders,
ngx_str_t *bo... |
// Gb_Snd_Emu 0.1.4. http://www.slack.net/~ant/
#include "gb_apu.h"
//#include "gb_apu_logger.h"
/* Copyright (C) 2003-2008 <NAME>. This module 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
vers... |
/* File: kc8m.c
Author: <NAME>, Dept. of Comp. Sci., U. of Iowa, Iowa City, IA 52242.
Date: Feb. 29, 1996
Updates: <NAME>, April 2020
Language: C (UNIX)
Purpose: DEC PC8/M (blank and ugly tty based) control panel emulator.
Based on the description in the PDP-8/E Maintenance manual,
Digital Equipme... |
/**
* \file tests/hbata.c
* \brief Comprehensive test of sparse \f$A^TAx\f$ kernel
* routine, oski_MatTransMatMult(), for an arbitrary data
* structure transformation (specified by a OSKI-Lua
* program), where the matrix is read from a Harwell-Boeing
* file.
*
* Like hbmatmult.c, also implicitly tests
*... |
// Header file for "Blaster.C"
#include <stdint.h>
#include "../port.h"
#define end_x 16 // number of blocks 16 x 16
#define end_y 12
#define scrn_x 256 // number of pixels in game viewport
#define scrn_y 192
extern vptype gamevp, cmdvp, statvp, textvp;
extern int16_t board[end_x][end_y];
extern int16_t modflg[en... |
/* array.c */
void parray_init( parray* array, size_t size, size_t chunk );
parray* parray_create( size_t size, size_t chunk );
void parray_erase( parray* array );
parray* parray_free( parray* array );
void* parray_push( parray* array, void* item );
void* parray_reserve( parray* array, size_t n );
void* parray_malloc( ... |
/* cc -o generate-arctan-tuples-for-GB91 generate-arctan-tuples-for-GB91.c -lmpfr # -fno-strict-aliasing */
/* cc -static -std=c99 -D_POSIX_C_SOURCE=999999999 -fno-strict-aliasing -O2 -o generate-arctan-tuples-for-GB91 generate-arctan-tuples-for-GB91.c -lmpfr -lgmp */
#include <errno.h>
#include <stdint.h>
#include <st... |
#include "stdio.h"
#include <R.h>
#include "stdlib.h"
#define int8 unsigned char
//#define LOGZERO -DBL_MAX
#define LOGZERO (-1.0E15) /* ~log(0) */
#define LSMALL (-1.0E15) /* log values < LSMALL are set to LZERO */
#define MINEARG (-708.3) /* lowest exp() arg = log(MINLARG) */
#define MINLARG 2.45E-308 /* lo... |
/*
* (C) Copyright 2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2010
* <NAME>, <NAME>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Lice... |
/*******************************************************************
Copyright (C) 2001-2012 <NAME>, <NAME> and Merck & Co., Inc.
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 versio... |
/** \file ide64widget.c
* \brief Widget to control IDE64 resources
*
* IDE64 settings widget
*
* \author <NAME> <<EMAIL>>
*/
/*
* $VICERES IDE64AutodetectSize1 x64 x64sc xscpu64 x128
* $VICERES IDE64AutodetectSize2 x64 x64sc xscpu64 x128
* $VICERES IDE64AutodetectSize3 x64 x64sc xscpu64 x128
* ... |
/* $OpenBSD: log.c,v 1.28 2016/07/01 23:36:38 renato Exp $ */
/*
* Copyright (c) 2003, 2004 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in al... |
#include "Mesh.h"
#include "Util.h"
#include "Texture.h"
#include <glad/glad.h>
#include <cglm/cglm.h>
Mesh *create_cube_mesh(float size)
{
typedef struct vertex
{
vec3 position;
vec2 uv;
vec3 normal;
} Vertex;
Vertex verticies[] = {
{-0.5f * size, -0.5f * size, 0.5f *... |
/*
* Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include "ocsp_request_engine.h"
#include "log_internal.h"
#include "pkix_macros_internal.h"
#include "cert.h"
#include "asn1_utils.h"
#include "pkix_utils.h"
#include "... |
/* abc.c: broadcast messages on local interfaces */
/* wireless interfaces are placed in ad-hoc mode if they are up,
* but there is no IP address assigned to them */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/wait.h> /* waitpid */
#include <arpa/... |
/*
* INA219 util - part of PowerCape by AndiceLabs
*
* Copyright (C) 2014 AndiceLabs <EMAIL> http://andicelabs.com
* Copyright (C) 2014 <NAME> <EMAIL> http://zftlab.org
* 2020 pvvx for USB adapter UBIA (TLSR8266)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms ... |
/////////////////////////////////////////////////////////////////////////
//// ////
//// usb_san_cdc.h ////
//////////////http://br.groups.yahoo.com/group/GrupoSanUSB///////////////
//api for the us... |
// Created by <NAME> on 10/01/2012.
// Copyright 2012 Feabhas Limited. 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 notice,
... |
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
/* Blowpipe --- authenticated Blowfish-encrypted pipe */
#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include "w32-compat/unistd.h"
#include "w32-compat/getopt.h"
#else
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <t... |
/* $NetBSD: kbdsun.c,v 1.3 2003/08/07 16:31:25 agc Exp $ */
/* NetBSD: kbd.c,v 1.29 2001/11/13 06:54:32 lukem Exp */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley L... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/**
* Helper functionality for NALU adaptation from Annex-B to AVCC format
*/
#define LOG_CLASS "NalAdapter"
#include "Include_i.h"
/**
* NALU adaptation from Annex-B to AVCC format
*/
STATUS adaptFrameNalsFromAnnexBToAvcc(PBYTE pFrameData,
UINT32 frameDataSize,
... |
#ifndef lint
static const char RCSid[] = "$Id: gensky.c,v 2.27 2019/11/07 23:15:07 greg Exp $";
#endif
/*
* gensky.c - program to generate sky functions.
* Our zenith is along the Z-axis, the X-axis
* points east, and the Y-axis points north.
* Radiance is in watts/steradian/sq. meter.
*
* 3/26/86
*/
#i... |
#include "opensnoop.h"
#include "generated_bytecode.h"
#include <bcc/libbpf.h>
#include <bcc/perf_reader.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <linux/version.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
char bpf_... |
#include "F28x_Project.h"
#include <stdint.h>
#include <math.h>
#include "..\Test_setting.h"
#include "..\Peripheral\Peripheral.h"
#include "..\Comm\Comm.h"
#include "Meas.h"
#include "control.h"
//***********************************************************************//
// G l o b a l V a r i a b... |
#include "symmetric_encrypted_item.h"
#include "item_constraints.h"
#include "key_item.h"
#include "principal_ids.h"
#include "serialization.h"
#include "deserialization.h"
#include <string.h>
bool is_symmetric_encrypted(struct item *item)
//@ requires [?f]world(?pub, ?key_clsfy) &*& item(item, ?i, pub);
/*@ ens... |
/*
* Copyright (C) 1986-2005 The Free Software Foundation, Inc.
*
* Portions Copyright (C) 1998-2005 <NAME>, Ximbiot <http://ximbiot.com>,
* and others.
*
* Portions Copyright (C) 1992, <NAME> and <NAME>
* Portions Copyright (C) 1989-1992, <NAME>
*
* You may distribute under t... |
/* This file is a part of MIR project.
Copyright (C) 2018-2021 <NAME> <<EMAIL>>.
x86_64 ABI target specific code.
*/
/* See https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-1.0.pdf. We use MIR_T_UNDEF for
MEMORY. */
enum add_arg_class { NO_CLASS = MIR_T_BOUND + 1, X87UP_CLASS };
#ifndef _WIN32
#def... |
/*
* 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.
*/
/*
*/
/*******************************************************************... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "../../src/slic.h"
#include "../../src/slic.inl"
/* Windows BMP header for RGB565 images */
uint8_t winbmphdr_rgb565[138] =
{0x42,0x4d,0,0,0,0,0,0,0,0,0x8a,0,0,0,0x7c,0,
0,0,0,0,0,0,0,0,0,0,1,0,8,0,3,0,
0,... |
/*
* Chaos.c
*
* Created on: Dec 28, 2016
* Author: mayo
*
* This file is part of the Gecho Loopsynth Firmware Development Framework.
* It can be used within the terms of CC-BY-NC-SA license.
* It must not be distributed separately.
*
* Find more information at: http://gechologic.com/gechologists/
... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* footModel.c
*
* Code generation for function 'footModel'
*
*/
/* Include files */
#include "rt_nonfinite.h... |
/**
* \file
*
* \brief Unit tests for WDT-SAM4L driver.
*
* Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip produc... |
/* linenoise.c -- guerrilla line editing library against the idea that a
* line editing lib needs to be 20,000 lines of C code.
*
* You can find the latest source code at:
*
* http://github.com/antirez/linenoise
*
* Does a number of crazy assumptions that happen to be true in 99.9999% of
* the 2010 UNIX comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.