text stringlengths 3.12k 18.7k |
|---|
/* { dg-do compile } */
#define seq_cst __ATOMIC_SEQ_CST
extern int *i;
extern int *j;
extern const int *c;
extern volatile int *v;
extern const volatile int *cv;
void
load()
{
__atomic_load(c, i, seq_cst);
__atomic_load(cv, i, seq_cst);
__atomic_load(i, c, seq_cst);
/* { dg-error "argument 2 of '__atomic_l... |
#include <stdarg.h>
#include "dlite-macros.h"
#include "dlite-misc.h"
#include "dlite-pyembed.h"
static int python_initialized = 0;
/* Initialises the embedded Python environment. */
void dlite_pyembed_initialise(void)
{
wchar_t *progname;
if (!python_initialized) {
if (!(progname = Py_DecodeLocale("dlite",... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 1625
* Seed: 1625
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
uint8_t g_4 = 0x5BL;
volatile int32_t g... |
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <linux/fs.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
#include "kinit.h"
#include "do_mounts.h"
#include "fstype.h"
#include... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION. 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 without restriction, including without limitation
* the rights to use... |
/*
* Event loop - empty template (basic structure, but no OS specific operations)
* Copyright (c) 2002-2005, <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.
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nimble/nimble_port_tencentos_tiny.h"
#include "host/ble_hs.h"
#include "host/util/util.h"
#include "host/ble_gatt.h"
#include "services/gap/ble_svc_gap.h"
#include "services/gatt/ble_svc_gatt.h"
#include "blehr_sens.h"
static const char device_nam... |
/*
* QEMU RISC-V Host Target Interface (HTIF) Emulation
*
* Copyright (c) 2016-2017 <NAME>, <EMAIL>
* Copyright (c) 2017-2018 SiFive, Inc.
*
* This provides HTIF device emulation for QEMU. At the moment this allows
* for identical copies of bbl/linux to run on both spike and QEMU.
*
* This program is free soft... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* 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, are permitted provided that the following conditions
* are met:
* 1. Redistributio... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../engine/lexer.h"
#include "../engine/parser.h"
#include "../engine/processor_helper.h"
#include "../state.h"
#include "json.h"
static char *strAddQuotes(char *str)
{
size_t len = strlen(str) + 3;
char *result = malloc_(len);
snprintf(r... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "evpath.h"
#include "ev_dfg.h"
#include "test_support.h"
static int status;
static EVclient test_client;
const int reconfig_node_count = 1;
char *str_contact;
char **reconfig_list = NULL;
#define EVENT_COUNT 30
CManager cm;
st... |
/* hashtable.h - A Robin Hood-hashing hashtable implementation
*
* MIT License
*
* 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, i... |
/* Abstraction of HP aCC ABI.
Contributed by <NAME> <<EMAIL>>
Most of the real code is from HP, i've just fiddled it to fit in
the C++ ABI abstraction framework.
Copyright 2001, 2005 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and... |
/*
* Copyright (c) 2014-2018, <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:
* * Redistributions of source code must retain the above copyright
* notice, this lis... |
/* $OpenBSD: stubs.c,v 1.6 2008/06/27 17:22:14 miod Exp $ */
/* $NetBSD: stubs.c,v 1.14 2003/07/15 00:24:42 lukem Exp $ */
/*
* Copyright (c) 1994-1998 <NAME>.
* Copyright (c) 1994 Brini.
* All rights reserved.
*
* This code is derived from software written for Brini by <NAME>
*
* Redistribution and use in sour... |
/*
Copyright (C) 2006-2009 <NAME>
This program 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 3 of the License, or
(at your option) any later version.
This program is distributed i... |
/*****************************************************************************
*
* z8000cpu.h
* Portable Z8000(2) emulator
* Macros and types used in z8000.c / z8000ops.c / z8000tbl.c
*
* Copyright (c) 1998,1999 <NAME>, all rights reserved.
* Bug fixes and MSB_FIRST compliance Ernesto Corvi.
*
* - This ... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/os2/os2_diag.c,v 3.10 2006/01/09 15:00:23 dawes Exp $ */
/*
* (c) Copyright 1997 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"),
... |
#ifdef DO_DEBUG
#define DEBUG(exp) (exp)
#else
#define DEBUG(exp)
#endif
#ifndef DO_DEBUG
#define NDEBUG
#endif
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
#include <setjmp.h>
#include "gc.h"
/* ===============================================... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* 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 ... |
#include "utils.h"
#define PROGRAM_VERSION "HTTPBench v1.0"
static void usage() {
printf("httpbench [option]... URL\n"
" -t|--time <sec> Run benchmark for <sec> seconds. Default 30.\n"
" -p|--process <n> Run benchmark with n process. Default 1."
" -c|--concurr... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 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 <stdio.h>
#include <stdint.h>
#include "ff.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include "autocomplete.h"
#include "ffdir.h"
#include "xprintf.h"
extern FATFS fs;
static
void put_rc (FRESULT rc)
{
const char *str =
"OK\0" "DISK_ERR\0" "INT_ERR\0" "NOT_READY... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
* Copyright (C) 2013 secunet Security Networks AG
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the G... |
/*
* Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
#include <io_driver.h>
#include <io_storage.h>
#include <string.h>
#include "io_common.h"
#in... |
/*
Copyright (C) 1997-2022 <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 purpose,
including commer... |
/* SPDX-License-Identifier: BSD-3-Clause */
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "log.h"
#include "tpm2.h"
#include "tpm2_auth_util.h"
#include "tpm2_hierarchy.h"
/**
* Parses a hierarchy value from an option argument.
* @param value
* The string to parse, which can be a numerica... |
/**
* OAuth2 in C/C++
* Tested for Google auth, following this guide:
* https://developers.google.com/identity/protocols/cauthflow/native-app
*/
#define DEBUG_SERVER_RESPONSE(name) \
fprintf(response.status_code == 200 ? stdout : stderr, name ": %ld\t%s\n", \
... |
/*
* gs interface for page.
* ps.c and pdf.c both use these routines.
* a caveat: if you run more than one gs, only the last
* one gets killed by killgs
*/
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <thread.h>
#include <bio.h>
#include <cursor.h>
#include "page.h"
static int gspid; /* globals f... |
// SPDX-License-Identifier: BSD-3-Clause
#include "cgp-data.h"
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
//TODO: Need a logging method of some sort...
struct GP_Gene *GP_CGP_alloc(unsigned int num_in,
unsigned int num_mid,
unsigned int num_out)
{
// Make sure we're not doing anythin... |
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/ether.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#include <math.h>
#define FPGA_MAC_ADDR0 0x4c
#define F... |
/* mpfr_root -- kth root.
Copyright 2005-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as publ... |
/* dbus_common.c
*
* Copyright (C) 2003 <NAME> <<EMAIL>>
* Copyright (C) 2013 Canonical, Ltd.
*
* Originally dbus-send.c from the dbus package. It has been heavily modified
* to work within the regression test framework.
*
* This program is free software; you can redistribute it and/or modify
* it under the te... |
/*
* This file Copyright (C) Mnemosyne LLC
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2 (b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* th... |
/*************************************************************
* File Name: PATCH.C
*
* Purpose: Determines the number of interior and exterior
* patch cells, and calculates various patch statistics
* (area, perimeter, core area, shape index, fractal
* dimension, core area index, and contrast weighted indice... |
/*
* GStreamer
*
* unit test for h263parse
*
* Copyright (C) 2011 Nokia Corporation. All rights reserved.
*
* Contact: <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 F... |
// Code copied from korg_syro_volcasample_example.c from
// the main syro repository. main/main2 functions removed
// and adapted in sample-web.c.
/************************************************************************
SYRO for volca sample
Example
*****************************************************... |
/***************************************************************************//**
* @file microphone_driver.c
* @brief Driver for the SPK0838HT4H-B MEMS microphone (Source file)
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.... |
/* *****************************************************************
*
* Copyright 2015 Samsung Electronics 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.
* You may obtain a copy of the License at
*... |
#include <stdio.h>
#include <string.h>
#include "bootpack.h"
#include "command.h"
#include "console.h"
#include "desctbl.h"
#include "fifo.h"
#include "fs.h"
#include "graphic.h"
#include "io.h"
#include "memory.h"
#include "mouse.h"
#include "sheet.h"
#include "task.h"
#include "timer.h"
#include "window.h"
void con... |
#include "rosace_dist_common.h"
struct nonencoded_task_params* tasks;
int num_of_tasks;
schedtime_t hyper_period;
MinimalTTTask *schedule;
// Output variables
output_t outs;
uint64_t step_simu;
uint64_t max_step_simu;
// Clock related variables
PTPv2Time hardTimestamp;
PTPv2Time softTimestamp;
long long clkDiff = 0;... |
/*
Unix SMB/CIFS implementation.
NTPTR structures and defines
Copyright (C) Stefan (metze) Metzmacher 2005
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 ... |
/*
* Copyright © 2006-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, ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* mm-naive.c - The fastest, least memory-efficient malloc package.
*
* In this naive approach, a block is allocated by simply incrementing
* the brk pointer. A block is pure payload. There are no headers or
* footers. Blocks are never coalesced or reused. Realloc is
* implemented directly using mm_malloc an... |
/**
*
* Copyright 2016-2019 Netflix, Inc.
*
* 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) 2014-2015 University of Stuttgart
*
* 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 applica... |
/* Compilation switch flag definitions for GNU CC.
Copyright (C) 1987, 1988, 1994 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC 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 vers... |
/*
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* create.c
*
* Created on: 18-Feb-2020
* Author: <NAME>
*/
#include "common.h"
#include "util.h"
#include "logging.h"
extern FILE *log_fp;
/*
* create:
*
* @alg_id: algorithm identifier of the key to be created
*
*... |
// route.c
//
// route.c
// Functions for managing routes
#include "graph.h"
#include "ross.h"
#include "route.h"
#include "route_int.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
/**************** Global Route Lookup Stuff ****/
// Read the config and init the global routes, re... |
/*
Copyright 2010-2013 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, softwar... |
/*
* MIT License
*
* Copyright (c) 2008 <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, m... |
/*
* License Notice
* This file was inherit from "LCD$B%b%8%e!<%kMQ%i%$%V%i%j(B" Written by <NAME> 2016
$B!!(B* Original file located at http://oasis.halfmoon.jp/mw/index.php?title=Elec-pic-i2c-common-library
* License infromation: http://oasis.halfmoon.jp/about/index.html#Section_Copyright
*/
/*
* Fil... |
/* Copyright 2021 The libwifi Authors
*
* 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... |
/* shadowvol.c - by <NAME>, SGI */
/* Shadows: Shadow maps */
#include <GL/glut.h>
#include <stdlib.h>
/* Demonstrate shadow volumes */
/* Create a single component texture map */
GLfloat *
make_texture(int maxs, int maxt)
{
int s, t;
static GLfloat *texture;
texture = (GLfloat *) malloc(maxs * maxt * sizeo... |
/**
* @file gh0stplugin.c
*
* This attempts to identify Gh0st Malware. The traditional signature is:
* ----------------------------------------------------------------------
* | FLAG (5 bytes) | Pkt Length (4) | Uncomp. Length (4) | ZLIB Hdr | Data
* --------------------------------------------------------------... |
/*
* Copyright (c) 2015, <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 a... |
#include "functions_for_objdump.h"
int stackSymbol(int num){
if (num >= 0 && num <= 25){
num += 65;
}else if (num >= 26 && num <= 51){
num = num - 26 + 65 + 32;
}
return num;
}
void printAssembly(int print_type, Assembly * assembly){
int type = 0;
int val = 0;
if (print... |
/*
* string-icalls.c: String internal calls for the corlib
*
* Author:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*
* Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
* Copyright 2004-2009 Novell, Inc (http://www.novell.com)
*/
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.... |
/*
*Copyright (C) 2016 TES Electronic Solutions GmbH
*
*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, m... |
// SPDX-License-Identifier: MIT
// Copyright (C) 2017-2020 <NAME>.
#include <stdio.h>
#include "lib.h"
#include "machine.h"
#include "symbol.h"
#define PTYPE_SIZEOF (1U << 0)
#define PTYPE_T (1U << 1)
#define PTYPE_MAX (1U << 2)
#define PTYPE_MIN (1U << 3)
#define PTYPE_WIDTH (1U << 4)
#define PTYPE_TYPE (1U << 5)
... |
#include "sqlite3.h"
#include "esp_spiffs.h"
#include "esp_err.h"
#include "esp_timer.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
/* ---------------------- Configuration ---------------------- */
#define EXAMPLE_FRESH_START (0) /* remove ol... |
#include "Common.h"
#define AVC_VIRTUAL_DEVICE_KEY L"Virtual1394Device"
#define SPEAKER_GROUP_ID L"AudioGroupGUID"
#define SPEAKER_GROUP_CFG L"AudioGroupConfig"
PSZ
DbgUnicode2Sz(
PWSTR pwstr )
{
static char sz[256];
UNICODE_STRING UnicodeString;
ANSI_STRING AnsiString;
sz[0] = '\0... |
/*
*
* ProEdit MP Multi-platform Programming Editor
* Designed/Developed/Produced by <NAME>
*
* MIT License
*
* Copyright (c) 2019 <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
... |
#include "mmt_core.h"
#include "plugin_defs.h"
#include "extraction_lib.h"
#include "../mmt_common_internal_include.h"
/////////////// PROTOCOL INTERNAL CODE GOES HERE ///////////////////
#define POP_BIT_AUTH 0x0001
#define POP_BIT_APOP 0x0002
#define POP_BIT_USER 0x0004
#define POP_BIT_PASS 0x0008
#define POP_BI... |
/**
* Copyright 2013-2015 by Explorer Developers.
* made by Lab Explorer Developers<<EMAIL>>
* Explorer Interrupt Management
* Explorer/arch/x86/interrupt/interrupt.c
* version:Alpha
* 12/22/2014 2:52 PM
*/
#include "interrupt.h"
#include <memory.h>
#include "../include/page.h"
#include "../include/function.h"
... |
// Zadanie 1
// Porównanie wydajności systemowych i bibliotecznych funkcji we/wy (55%)
//
// (30%) Celem zadania jest napisanie programu porównującego wydajność systemowych i bibliotecznych funkcji wejścia/wyjścia. Program operował będzie na przechowywanej w pliku tablicy rekordów.
// Dla uproszczenia pojedynczy rekord... |
/*
* Copyright (C) 2013 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include "ch-placement.h"
#include "src/modules/placement-mod.h"
#include "src/lookup3.h"
static struct placement_mod* placement_mod_multiring(int n_svrs, ... |
/**
* Leo: To Lie Or Not To Lie? 2018-07-xx
* "inspired" by this masterpiece github.com/serendipious/nodejs-decision-tree-id3
* Mine is a total piece of unreadable shit :p (gotta edit/rewrite it someday)
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*____________________/ DATA/LIES \____... |
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <time.h>
#include <semaphore.h>
#define PORT 6000
// Déclaration de la semaphore
static sem_t semaphore;
typedef s... |
/***************************************************************************//**
* @file
* @brief APIs for the Calendar Common plugin.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
**********************... |
/* sha512.c
The sha512 hash function.
See http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
Copyright (C) 2001, 2010 <NAME>
Copyright (C) 2014 <NAME>
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
... |
#include "ima.h"
int nearest_site(GLubyte **sites, int nb_sites, int x, int y, int z)
{
int i, ret;
int d, min = 0;
for(i = 0; i < nb_sites; i++)
{
d = (x - sites[i][0]) * (x -sites[i][0]) + (y - sites[i][1]) * (y - sites[i][1]) + (z - sites[i][2]) * (z - sites[i][2]);
if(!i || d < min)
min = d, ret = i;
... |
// See copyright notice in Copying.
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "eid.h"
#include "ext-block.h"
#include "parser.h"
#include "util.h"
#ifdef MKBUNDLE_TEST
#include "greatest.h"
#endif
#include "alist.c"
void ext_block_init(ext_block... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <assert.h>
#include <unistd.h>
#include "mrtest.h"
_MR_FunctionVectorType* _MR_FunctionVectorConstructor(size_t initial_capacity) {
assert(initial_capacity > 0);
_MR_FunctionVectorType* v = (_MR_FunctionVectorType*)malloc(1 *... |
/*
* This file is part of the
* _ _ __
* (_) __ ___ _____ | |/ _|
* | |/ _` \ \ /\ / / _ \| | |_
* | | (_| |\ V V / (_) | | _|
* _/ |\__,_| \_/\_/ \___/|_|_|
* |__/
*
* project : https://github.com/jacmoe/jawolf
*
* Copyright 2016 - 2017 <NAME>... |
/* main.c
*
* Copyright (C) 2017 Aegis Framework
*
* 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, ... |
/*
This file is part of "fitsverify" and was imported from:
http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/
*/
#include "fverify.h"
#ifndef STANDALONE
#include "pil.h"
#include "headas.h"
#include "headas_error.h"
#endif
#define MAXMSG 256
/*
HISTORY
-------
The original fverify.f Fortran pro... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
char *code;
unsigned char *ptr;
unsigned char *op;
unsigned char *tp;
int flag=0;
int mess=3;
char p1[8]="63211234";
char n1[8]="Alice... |
/*
Copyright (C) 2019 /u/KeepItUnder
Copyright (C) 2020 <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 req... |
/*
* Copyright (c) 2020 Baidu.com, Inc. 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. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/*
Copyright (C) 2019 JingWeiZhangHuai
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 version.
This program is distributed in the ho... |
//
// Macros to deal with wide char string-constants using defined symbols
//
#pragma once
#include "RegistryRoots.h"
#ifndef __TOL
#define _TOL(x) L##x
#endif
#ifndef __L
#define __L(x) _TOL(x)
#endif
//
// Registry key/value names used by the Environment
//
// All uses of these macros should use __L(x) so that ... |
/* movstat/test_Qn.c
*
* Copyright (C) 2018 <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 version.
*
* Thi... |
#include "./unity/util.h"
#include "./reading/data.h"
#include "./reading/read_data.h"
#include "./unity/runtime.h"
#include "./calculation/average.h"
#include "./logging/logging.h"
#include "./display/display.h"
#include "./connection_check/check_connection.h"
#ifdef TESTING
#include "./tests/testing.h"
#endif
stati... |
/*----------------------------------------------------------------------------
* File: ooaofooa_R_OIR_class.c
*
* Class: Class In Association (R_OIR)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*---------------------------------------------------------... |
// Configuration
#define skyColor 0x02
// Types
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef unsigned int bool;
// Constants
#define M_PI 3.14159265358979323846
#define NULL ((void*) 0)
#define true ((bool) 1)
#define false ((bool) 0)
// Key scancodes
#define KEY_ESC 0x01
#define KEY_Q 0... |
/*
* Copyright (C) 2017 - 2018 FIX94
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <stdio.h>
#include <stdbool.h>
#include <inttypes.h>
#include <string.h>
#include "../ppu.h"
#include "../cpu.h"
#include "../input.h"
#includ... |
/*
* Copyright(C) 2012-2014 <NAME>. All Rights Reserved.
*
* This file is part of the YARD-ICE.
*
* 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 3.0 of the Lic... |
/*
Filename: timekeeper.c
Author: <NAME>
Development Platform:
Ubuntu 18.04.1 LTS as Windows Subsystem for Linux,
gcc 7.3.0
Compilation:
gcc timekeeper.c -o timekeeper -Wall
Completed features: 1, 2, 3, 4, 5, 6, 7
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <t... |
#include "network.h"
#include <avr/io.h>
#include <util/delay.h>
#include <stdlib.h>
#include "enc28j60.h"
#include "avrlibdefs.h"
static uint8_t macAddress[6];
static uint8_t ipAddress[4];
static uint16_t port;
void networkInit(uint8_t *ipAddr, uint8_t *macAddr, uint16_t devicePort){
uint8_t i=0;
while(i<4){
... |
/*
* Copyright (c) 2013-2017 ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/licenses/LICEN... |
#include "birds_and_crystals.h"
static unsigned last_bird_generated = 0; /**<@brief contains the time the last bird showed up */
/**
* @file birds_and_crystals.c
* @brief This file contains the functions to implement the birds flying with crystals that gives the player extra points
*/
void initialize_birds_an... |
/*
* Copyright (C) 2011 <NAME>
*
* Permission to use, copy, modify, and/or 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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
/**
* Copyright (c) 2018 - 2020, 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 no... |
#include <lazygsf.h>
#include <psflib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/* demo program that renders a GSF file into a WAV */
#define SAMPLE_RATE 48000
#define BUFFER_SIZE 1024
int16_t buffer[BUFFER_SIZE * 2];
uint8_t packed[BUFFER_SIZE * 4];
static unsigned int leng... |
/******************** (C) COPYRIGHT 2013 **************************************
* File Name : can_log.c
* Hackerees : deh
* Date First Issued : 01/24/2013
* Board : STM32F103VxT6_pod_mm
* Description : Post CAN interrupt stuff
******************************************************... |
/******************************************************************************
* CVS version:
* $Id: symbol.c,v 1.2 2005/04/07 11:22:47 nickie Exp $
******************************************************************************
*
* C code file : symbol.c
* Project : Llama Compiler
* Version : 1.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.