text stringlengths 3.12k 18.7k |
|---|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "common.h"
#include "field.h"
struct field {
uint32_t deg; /* F_2^deg */
char *poly; /* Generating primitive polynomial */
char *trace_by_exp; /* table of trace values for nonzero field elements,... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/uio.h>
#include <errno.h>
#if WITH_INTERNAL_GETOPT
#in... |
/*
* Copyright (c) 2017 Medium One, Inc
* www.mediumone.com
*
* Portions of this work may be based on third party contributions.
* Medium One, Inc reserves copyrights to this work whose
* license terms are defined under a separate Software License
* Agreement (SLA). Re-distribution of any or all of... |
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "app.h"
#include "stack/ble/ble.h"
extern uint8_t mac_public[6], mac_random_static[6];
extern uint8_t ble_name[32];
extern uint8_t ota_is_working;
extern uint8_t ble_connected; // bit 0 - connected, bit 1 - conn_param_update, bit 2 - paring success, bit ... |
#include <string.h>
#include "debug.h"
#include "kernel/fs.h"
#include "fs/fd.h"
#include "fs/poll.h"
#include "kernel/calls.h"
static int user_read_or_zero(addr_t addr, void *data, size_t size) {
if (addr == 0)
memset(data, 0, size);
else if (user_read(addr, data, size))
return _EFAULT;
re... |
/*
* Copyright 2004-2006 Intel Corporation
*
* 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... |
/*
Copyright (C) 2019 Missingno_force a.k.a. Missingmew
See LICENSE for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#define BREAK(x) { printf(x); return 1; }
#ifdef _WIN32
#include <direct.h>
#define createDirectory(dirname) mkdir(dirname)
#define cleanExecPath(path) ... |
/**
* Experiment using signed distance functions to draw... very slowly...
* Author: JPK - <EMAIL>
*
* Licence: This work is licensed under the Creative Commons Attribution License.
* View this license at http://creativecommons.org/about/licenses/
*
*
*
* Acknowledgements:
*
* Inspired by the brill... |
/*
* Copyright 2007-8 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat Inc.
*
* 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
* t... |
/* $OpenBSD: arml2cc.c,v 1.4 2015/05/20 00:39:16 jsg Exp $ */
/*
* Copyright (c) 2013 <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 all copie... |
/* ../netlib/sstev.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end... |
/******************************************************************************
Copyright (C) 2011-2012 by <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 restri... |
/************************************
Seta custom ST-0016 chip
sound emulation by <NAME>, <NAME>, and <NAME>
************************************/
#include <math.h>
#include "sndintrf.h"
#include "streams.h"
#include "cpuintrf.h"
#include "st0016.h"
#define VERBOSE (0)
UINT8 *st0016_sound_regs;
struct s... |
/*
* Copyright (c) 2015-2018, Texas Instruments Incorporated
* 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
* n... |
/*
* Jenoptik JD11 Camera Driver
* Copyright 1999-2001 <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 (at your option) an... |
REAL HLLE_solve(REAL F0B1_r, REAL F0B1_l, REAL U_r, REAL U_l) {
// Eq. 3.15 of https://epubs.siam.org/doi/abs/10.1137/1025002?journalCode=siread
// F_HLLE = (c_min F_R + c_max F_L - c_min c_max (U_R-U_L)) / (c_min + c_max)
return 0.5*(F0B1_r+F0B1_l-(U_r-U_l));
// FIXME: Curved space implementation!
}
/*
Calcul... |
/*-
* Copyright (c) 2014,2016 Microsoft Corp.
* 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 unmodified, ... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
//
// Audio Overload
// Emulated music player
//
// (C) 2000-2008 <NAME>
//
//
// eng_dsf.c
//
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "ao.h"
#include "eng_protos.h"
#include "corlett.h"
#include "dc_hw.h"
#include "aica.h"
#define DEBUG_LOADER (0)
#define DK_CORE (1)
#if DK_CORE
#inclu... |
#include "stage.h"
#include "type.h"
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
#include "SDL2/SDL_ttf.h"
void renderLegend(Stage *);
void initTex(Stage *stage){
SDL_Surface *backSur = IMG_Load("assets/menu.png");
stage -> game -> background = SDL_CreateTextureFromSurface(stage -> renderer, backSur);
SDL_F... |
/** Author and Copyright 2018 <NAME>
*
* 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 agree... |
/**
* @filename : epd2in9.c
* @brief : Implements for e-paper library
* @author : <NAME>
*
* Copyright (C) Waveshare September 12 2017
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documnetation files (the "Software"),... |
/* pbmtoascii.c - read a portable bitmap and produce ASCII graphics
**
** Copyright (C) 1988, 1992 by <NAME>.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies a... |
/* Crude programme to show detailed information about a zip file. */
#include "memento.h"
#include "outf.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int s_native_little_endinesss(void)
{
static const char a[] = { 1, 2};
uint16_t b = *(uint16_... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include "hw.h"
#include "radio.h"
#include "delay.h"
#include "system/timer.h"
#include "sx1276.h"
#include "port_mcu.h"
#include "lorawan_port.h"
#include "hw_conf.h"
#define BOARD_WAKEUP_TIME 5
#define BOARD_TCXO_WAKEUP_... |
/**
* this function allow the transformation of a binary response (received from the ulfius API) to a JSON object
* @param response: ulifus response structure
* @return json object (usually will be : {"success": 1/-1, message: "Error message"}
*/
json_t* response_to_json(struct _u_response *response) {
char res... |
#include <stdio.h> // NULL, fprintf(), perror(), setlinebuf()
#include <stdlib.h> // NULL, EXIT_FAILURE, EXIT_SUCCESS
#include <unistd.h> // getopt(), sleep()
#include <math.h> // fmod()
#include <time.h> // time()
#define CANDIES_API static
#include "candies.h"
//
// DEFINES
//
#define DEFA... |
/* $OpenBSD: cgeight.c,v 1.31 2013/10/20 20:07:25 miod Exp $ */
/* $NetBSD: cgeight.c,v 1.13 1997/05/24 20:16:04 pk Exp $ */
/*
* Copyright (c) 2002 <NAME>. All rights reserved.
* Copyright (c) 1996 <NAME>. All rights reserved.
* Copyright (c) 1995 <NAME>
* Copyright (c) 1992, 1993
* The Regents of the Universi... |
/***
*
* tools/rtifconfig.c
* ifconfig replacement for RTnet
*
* rtnet - real-time networking subsystem
* Copyright (C) 1999, 2000 Zentropic Computing, LLC
* 2004, 2005 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
///////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
Contains routines for handling compressed-sparse-row (CSR) graphs
Code by: <NAME> and <NAME>
University of Minnesota 2019
*/
//////////////////////////////////////////////////////////////////////////////... |
//
// virtionet.c
//
// Network device driver for virtio
//
// Copyright (C) 2011 <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 t... |
/*
* Copyright (c) 2011, JANET(UK)
* 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 condit... |
/*
* core_sensors.c
*
* Created on: Oct 11, 2013
* Author: Andres
*/
#include <stdint.h>
#include <stdlib.h>
#include "qp_port.h"
#include "bsp.h"
#include "apps.h"
//#include "hello.h"
#include "amulet_sensors.h"
#include "amulet_network.h"
#include "core_sensors.h"
#include "core_network.h"
//#include "b... |
#pragma config OSC = HSPLL, FCMEN = OFF, IESO = OFF, PWRT = OFF, BOREN = OFF, WDT = OFF, MCLRE = ON, LPT1OSC = OFF, LVP = OFF, XINST = OFF, DEBUG = OFF
#include <xc.h>
#include "breakpoints.h"
volatile int adc_value;
volatile char special;
int digital_value;
char adc_flag;
char rb4_flag;
char end_game_flag;
char bli... |
//SEQUENT_LIST
//https://github.com/L-F-Z/ADT_Code
//Developed by UCAS ADT_Code Group
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
//----------|Status|-----------
typedef int Status;
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define ... |
// Author: <NAME>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define CL_VERSION_2_0
#include <CL/cl_ext_intelfpga.h> // to disable interleaving & transfer data to specific banks - CL_CHANNEL_1_INTELFPGA
#include "CL/opencl.h"
#include "transpose_fpga.h"
#include "opencl_utils.h"
... |
#include "inc.h"
#define MAX_SHM_NR 1024
struct shm_struct {
key_t key;
int id;
struct shmid_ds shmid_ds;
vir_bytes page;
int vm_id;
};
static struct shm_struct shm_list[MAX_SHM_NR];
static int shm_list_nr = 0;
static struct shm_struct *shm_find_key(key_t key)
{
int i;
if (key == IPC_PRIVATE)
return NULL;
... |
/*! @file : sdk_pph_bme280.c
* @author <NAME>
* @version 1.0.0
* @date 9/02/2021
* @brief Driver para sensor de temperatura BME280
* @details
*
*/
/*******************************************************************************
* Includes
*******************************************************************... |
#include "library.h"
void Print(uint16_t x, uint16_t y, uint16_t clrFront, uint16_t clrBack, char* Str) {}
void PutPixel(uint16_t x, uint16_t y, uint16_t c) {}
uint32_t random() { return 0; }
#if 0
#include "Font.h"
u32 __Bios(u8 Item, u32 Var);
typedef uint16_t u16;
typedef uint8_t u8;
enum
{
SYS... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 2010 LunarG Inc.
*
* 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 u... |
/*
* Copyright (C) 2006-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
// features.h does not exist on FreeBSD
#ifndef TARGET_BSD
// features initializes the system's state, including the state of __USE_GNU
#include <features.h>
#endif
// If __USE_GNU is defined, we don't need to do anything.
// If we d... |
/*
* $Id: spm_digamma.c 112 2005-05-04 18:20:52Z john $
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "mex.h"
/*
* Mex file derived from a FORTRAN program by <NAME>,
* ACM Transactions on Mathematical Software, 1983.
* Obtained from NETLIB: http://www.netlib.org/toms/610.
*/
#ifndef M... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# (c) 2005 <NAME> <<EMAIL>>
# Licenced under Academic Free License version 2.0
# Review ps2sdk ... |
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include <math.h>
#include "GLState.h"
#include "camera.h"
#include "physics.h"
#include "object.h"
#include "list.h"
#include "kd_tree.h"
#include "model.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (ma... |
#include <stdio.h>
/*
1) Faça uma algoritmos e o programa em C que lê uma matriz com
4 linhas e 3 colunas e imprime,
em formato de matriz, a matriz
lida e a soma dos seus elementos.
*/
int main(void)
{
const int linhas = 4;
const int colunas = 3;
int m[linhas][colunas];
int soma[linhas][colunas];
int ... |
/*
Quick and Dirty Game Development Framework (QDGDF)
<NAME> <<EMAIL>> et al.
This software is released into the public domain.
NO WARRANTY. See file LICENSE for details.
*/
/*
Usage:
qdgdf_i [X size] [Y size] [scale] [full screen]
*/
#include "config.h"
#include "qdgdf_video.h"
#include... |
#include "DeviceDS18B20.h"
#include "CoreTickDelay.h"
#include "SystemUtil.h"
//IO方向设置 切换方向
//PG9输入模式
#define DS18B20_IO_IN() {GPIOG->MODER&=~(3<<(9*2));GPIOG->MODER|=0<<9*2;}
//PG9输出模式
#define DS18B20_IO_OUT() {GPIOG->MODER&=~(3<<(9*2));GPIOG->MODER|=1<<9*2;}
/*IO操作函数*/
//数据端口 PG9 输出
#define DS18B20_DQ_OUT PGou... |
/*
Onion HTTP server library
Copyright (C) 2012 <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This prog... |
/**
* @mainpage Laboratory work #12. Huffman's archiver
*/
#include <stdio.h>
#include <stdlib.h>
#include "list.h"
#include "main.h"
#include "errors.h"
/**
* Entry point of program. Open INPUT file and read first 3 bytes, because "c/r/n" or
* "d/r/n". THen code or decode information and write it to OUTPUT
* @r... |
/**
******************************************************************************
* @file FatFs/FatFs_uSD_Standalone/Src/main.c
* @author MCD Application Team
* @brief Main program body
* This sample code shows how to use FatFs with uSD card drive.
*************************************... |
/*
* File: video.c
* Desc: Low level video control.
*/
#include <allegro.h>
#include "response.h"
#include "graph.h"
#include "video.h"
#include "error.h"
#include <mem.h>
#include <stdio.h>
#include <conio.h>
#include "tsc_time.h"
unsigned int Palette[256];
static BITMAP *pb;
static int... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2006,2007,2009 Free Software Foundation, Inc.
*
* GRUB 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
*... |
/*
* initcmdline.c - Initial command line options.
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... |
/**
*
* Copyright 2020 <NAME>
* https://github.com/davidaylaian/carbon/
* Licensed under the Apache License 2.0
*
*/
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
/*
* Every character falls into one or more of these categories.
* We assign each category 1 bit and use bitwise operators to test if... |
/* zzgftreb.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
/* $Procedure ZZGFTREB ( Geometry finder: return body axes ) */
/* Subroutine */ int zzgftreb... |
#define WIN32_LEAN_AND_MEAN
#include <stdlib.h>
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include "box.h"
#include "edit.h"
#include "button.h"
#include "sizer.h"
#include "titledrag.h"
#include "button2.h"
#include "constants.h"
#include "ctrl.h"
#include "edit2.h"
#in... |
/*
A 3D Real Time Fluid Solver based on Jos Stam's fluid solver (stable N-S solver).
Reference: <NAME>, "Real-Time Fluid Dynamics for Games". Proceedings of the Game Developer Conference, March 2003.
*http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/GDC03.pdf]
*/
#define IX(i,j,k) ... |
/*
* Copyright 2017 <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, publis... |
/*
* Copyright (c) 2017 STMicroelectronics. All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/B... |
/**
* Disassembler
* by pyroesp, aka <NAME>
*
* Date: 1/09/2014
*
* License:
* This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
**/
#include "../include/config.h"
#include "../include/program.h"
#include "../include/disasm.h"
void disas... |
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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 License, or (at your option) any ... |
#include <stdio.h> /* standard I/O routines */
#define __USE_GNU
#include <pthread.h> /* pthread functions and data structures */
#include <stdlib.h> /* rand() and srand() functions */
#include <unistd.h> /* rand() and srand() functions */
/* nu... |
// Copyright (c) 2020 <NAME>
// Licensed under the MIT License
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <esp_sntp.h>
#include <esp_log.h>
#include "ds1307.h"
#include "vfddriver.h"
#include "realtimeclo... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// You may only use this code if you agree to the terms of the ProjectOZ License agreement (see License.txt).
// If you do not agree to the terms, do not use the code.
//
#include "Defs.h"
#define NTSPACE_TOPMASK ((1 << NTSPACE_TOPBITS) - 1)
#define... |
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include "mystdlib.h"
unsigned int my_strlen(char *s);
unsigned int new_strlen(char *s);
ptrdiff_t strlen3(char *s);
size_t strlen4(char *s); /* how actual strlen works */
void test_strcpy(void);
/*Various versions of ... |
#include "pip_plugin_wallet.h"
#include "config_manager.h"
#include "pthread.h"
#define PROTOCOL_TRANSACTION_NOT_PAID 0
#define PROTOCOL_TRANSACTION_PAID 1
#define PROTOCOL_TRANSACTION_PAID_VERIFIED 2
#define PROTOCOL_WALLET_ADDR_LEN 81
#define PROTOCOL_MAX_STR_LEN 256
/**********************************************... |
#include "linearalg.h"
#include "definitions.h"
#include <string.h>
#include <math.h>
#define REAL_NUM_EQ(x, y) (fabs((x) - (y)) < 0.000001)
Vector
vectorNull()
{
Vector res = {{ 0 }};
return res;
}
Vector
vectorAdd(Vector v1, Vector v2)
{
Vector res;
res.x = v1.x + v2.x;
res.y = v1.y + v2.y;
... |
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "seafile-session.h"
#include "status.h"
#include "fs-mgr.h"
#include "index/index.h"
#include "diff-simple.h"
#include "vc-utils.h"
#include "utils.h"
#include "cdc/cdc.h"
#include "log.h"
struct dir_entry ... |
/*
MIT License
(c) <NAME> 2020
See attached LICENSE file for more info
drivers/acpi.c:
Source file for the ACPI driver
This has been mostly taken from a marvelous code example.
See: https://forum.osdev.org/viewtopic.php?t=16990
*/
#include <drivers/acpi.h>
#include <kernel/defs.h>
#inc... |
#include "blockchain.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
void _swap_endian(void *p, size_t size);
int8_t _get_endianness(void);
llist_t *read_outputs(FILE *file, uint8_t swap_endian, int num_outputs)
{
llist_t *outputs;
tx_out_t *out;
if (num_outputs <= 0)
return N... |
#include <allegro5/allegro_image.h>
#include <math.h>
#include "spaceship.h"
#include "asteroid.h"
#include "debug.h"
static void _CreateAsteroidList(void);
static AsteroidNode* _GetAsteroidListLastNode(AsteroidNode*);
static AsteroidNode* _CreateNewNode(Asteroid*);
static Asteroid* _CreateAsteroid(Asteroid*);
static ... |
#define _GNU_SOURCE
#include <sched.h>
#include <err.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/syscall.h>
#incl... |
/* libasf - An Advanced Systems Format media file parser
* Copyright (C) 2006-2010 <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... |
/*
* Copyright 2016 <NAME>
* Copyright 2011-2016 by <NAME>. FNET Community.
* Copyright 2008-2010 by <NAME>. Freescale Semiconductor, Inc.
* Copyright 2003 by <NAME>. Motorola SPS.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... |
#include <string.h>
#include <stdio.h>
#include <glib-2.0/glib.h>
#include "con_alloc.h"
#include "con_term.h"
#define POOL_SIZE 1000
#define POOL_ARENA_SIZE 1000
#ifdef GC_DEBUG
#define INIT_GC_ALLOC_TRIGGER 1
#define GC_ALLOC_TRIGGER 1
#else
#define INIT_GC_ALLOC_TRIGGER 500
#define GC_ALLOC_TRIGGER 100
#endif
/... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* ... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "asprintf.h"
#include "aws_readkeys.h"
#include "aws_sign.h"
#include "b64encode.h"
#include "elasticarray.h"
#include "sha256.h"
#include "warnp.h"
#include "rfc3986.h"
#include "sslreq.h"
#ifndef QMAILCONTROL
#define QMAILCONTR... |
/* gptsync.c - fill the mbr based on gpt entries */
/* XXX: I don't know what to do if sector size isn't 512 bytes */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU Ge... |
// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright(c) 2021-2022 Intel Corporation. All rights reserved.
//
// Authors: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
//
#include <linux/slab.h>
#include <sound/hdaudio_ext.h>
#include "avs.h"
#include "messages.h"
#include "registers.h"
#define AVS_IPC_TIMEOUT_MS ... |
# include <stdio.h>
# include <stdlib.h> /* malloc */
# include <string.h> /* strcpy */
# include <c_iraf.h>
# include <xtables.h>
# include "pweight.h"
typedef struct {
IRAFPointer tp; /* pointer to table descriptor */
/* column descriptors */
IRAFPointer cp_aperture;
IRAFPointer cp_cenwave;
IRAFPointer c... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"
#include "cmdline.h"
#include "processbam.h"
#include "processfq.h"
#include "config.h"
#include "external.h"
#include "tardis.h"
#include "bamonly.h"
#include "variants.h"
#include "splitread.h"
#include "vh_main.h"
#inclu... |
/*
* This file is part of the Palacios Virtual Machine Monitor developed
* by the V3VEE Project with funding from the United States National
* Science Foundation and the Department of Energy.
*
* The V3VEE Project is a joint project between Northwestern University
* and the University of New Mexico. You can ... |
#define SGS_PERFEVENT( x ) x
#define BUILDING_SGS 1
#define SGS_INSTRUMENTED_BUILD
#define SGS_INTERNAL_STRINGTABLES
#define SGS_USE_FILESYSTEM
#include "../src/sgs_util.h"
#define MAX_PRECALL_ENTRIES 1000000
/* --- PROFILING HELPERS --- */
static LARGE_INTEGER freq;
double sgs_hqtime()
{
#ifdef _WIN32
LARGE_IN... |
/*
* Copyright (C) 2002-2012 Free Software Foundation, Inc.
* Copyright (C) 2017 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS 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 Sof... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
*... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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/... |
#include "raylib.h"
#include "raymath.h"
// https://tauday.com/tau-manifesto
#define TAU (PI * 2.0f)
// Remap to [0, PI). Is this the correct name?
float NormalizeAngle(float angle)
{
angle = fmodf(angle, TAU);
return angle < 0.0f ? TAU + angle : angle;
}
// Calculate smallest angle in radians from angle1 to... |
/*
* Copyright (c) 2020 <NAME> Intelligent Technology Co., Ltd.
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <gmp.h>
#include <string.h>
#define MEMSIZE 209715200
#define TESTLENGTH 10000000
// BANNER ////////////////////////////////////////////////////////////////////////////
void banner()
{
printf("\n :::::::: :::::::: :::::::... |
/**************************************************************************/
/*!
@file nrfbintool.c
@author hathach
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2014, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution and use in source... |
#include <x86.h>
#include <assert.h>
#include <string.h>
#include <kernel/fs.h>
#include <kernel/proc.h>
#include <kernel/trap.h>
#include <kernel/device.h>
// Serial Port.
#define COM1 0x3F8
static void serial_init(void)
{
outb(COM1 + 1, 0x00); // Disable all interrupts
outb(COM1 + 3, 0x80); // Enable DLA... |
/* Some code common to C and ObjC front ends.
Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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... |
#include <atomic.h>
#include <assert.h>
#include <inttypes.h>
#include <interrupts.h>
#include <process.h>
#include <syscalls.h>
#include <irq.h>
#include <scheduler.h>
#include <eflags.h>
#include <ioperms.h>
#include <ualloc.h>
#include <env.h>
#include <pci.h>
//DONE.DONE.
int syscall_memory( uint32_t r6, uint3... |
/*
Name: geoszbtoyxh.c
Version: 3.1
Date: 2021-12-30
Author: zvezdochiot (https://github.com/zvezdochiot)
Author: <NAME> (https://github.com/zsiki)
*
build:
$ gcc -o geoszzbtoyxh geosvbtoyxh.c -lm
sample:
$ ./geoszbtoyxh doc/szb.dat yxh.dat
*
file:
input file point_id slope_distance zenith_angle bearing
doc/szb.dat:
*
... |
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright 2017 Red Hat, Inc.
*
* 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 you... |
#include <ctype.h>
#include "utils.h"
static int
check_op (pixman_op_t op,
pixman_format_code_t src_format,
pixman_format_code_t dest_format)
{
uint32_t src_alpha_mask, src_green_mask;
uint32_t dest_alpha_mask, dest_green_mask;
pixel_checker_t src_checker, dest_checker;
pix... |
/*
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in ... |
/**
******************************************************************************
* File Name : stm32f0xx_hal_msp.c
* Description : This file provides code for the MSP Initialization
* and de-Initialization codes.
*********************************************************... |
/* database.c */
#include "headfile.h"
#include "debug.h"
#include "alloc.h"
#include "token.h"
#include "maths.h"
#include "config.h"
typedef struct hashtbl_types
{
bool empty;
char src[TOKENSIZE];
int type;
int value;
char *str;
char *list;
struct hashtbl_types *left;
struct hashtbl_types... |
/*
* Copyright (c) 2016, Intel Corporation
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* 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 co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.