text stringlengths 3.08k 10.5k |
|---|
/*********************************** LICENSE **********************************\
* Copyright 2017 Morphux *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); ... |
#include "workersPInfo.h"
#include "worker.h"
int processDir(Trie * curTrie, const char * pathDir, int fd2) {
DIR * dir;
struct dirent * ent;
FILE * fp = NULL;
char filePath[BUF_SIZE];
char * line = NULL;
size_t len = 0;
ssize_t read;
int counterLine;
if ((dir = opendir(pathDir))... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/select.h>
#include <signal.h>
#include <time.h>
#include <setjmp.h>
FILE *his;
int cus, mem, vip;
int o_cus, o_mem, o_... |
/*
* Copyright (c) 2011 <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... |
/*
*
* GattLib - GATT Library
*
* Copyright (C) 2016-2021 <NAME> <<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; either version 2 of the License, or
* (at your opt... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_texture.c :+: :+: :+: ... |
/*
* This file is part of the coreboot project.
*
* 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; version 2 of the License.
*
* This program is distributed in the hope that it will be use... |
// SPDX-License-Identifier: GPL-2.0
/*
* (C) Copyright 2012 <NAME>
*
* See file CREDITS for list of people who contributed to this
* project.
*/
#include <common.h>
#include <cpu_func.h>
#include <init.h>
#include <dm/device.h>
#include <fdt_support.h>
#include <asm/global_data.h>
#define BCM2711_RPI4_PCIE_XHCI_... |
/*
* Copyright 2002 <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 conditi... |
/*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001,2002,2003,2004,2005,2006,2007 <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 ... |
// <NAME> - 4BIA - 09/10/2021
/* TRACCIA 2:
Scrivere un
programma in C per Inserire in un array di 10 elementi i voti delle
prove in informatica di un alunno.
visualizzare la media dei voti;
visualizzare il numero di insufficienze(voti minori di 6);
visualizzare se l�alunno � promosso (solo se la media � maggiore di ... |
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <limits.h>
#include "AES.h"
uint8_t **DFA_round9(state_t* y, state_t* y_fault) {
uint8_t **KeyHypothesis = (uint8_t **)malloc(512*sizeof(uint8_t *));
int counter = 0;
unsigned long long... |
#include <mingw-path.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <c-string-manip.h>
#define TEST_SIZE 17
typedef struct {
char *path;
int expectedResult;
char *expectedMingwPath;
char *expectedMsysPath;
} testcriteria;
testcriteria criteria[TEST_SIZE] = {
{".", 1, NU... |
/*
* Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
*
* 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 ... |
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<unistd.h>
#include<string.h>
#include<sys/types.h>
#include "testsParameters.h"
#define NUM_OF_TEST_PARTS 3
// NOTE
//
// This code requires compilation at -O0 to preserve undefined behavior.
// Other optimization levels might cause the behavior chang... |
/**
* \file
*
* \brief Display time since production date
*
* Copyright (c) 2011-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions a... |
#include <barrelfish/barrelfish.h>
#include <barrelfish/except.h>
#include <bench/bench.h>
#include <assert.h>
#include "debug.h"
#include "vspace_cow.h"
#include <barrelfish/barrelfish.h>
#define EX_STACK_SIZE 16384
static char ex_stack[EX_STACK_SIZE];
static struct vregion *cow_vregion;
static void *cow_vbuf = NULL;
... |
#include "PlayerCard.h"
CARD* InitialPlayerCard()
{
// The next of head pointer stone the number of the cards.
CARD *head = (CARD*)calloc(1,sizeof(CARD)), *CardNum = (CARD*)calloc(1,sizeof(CARD));
CardNum->card.CardSuit = -1;
CardNum->card.Rank = 0;
head->next = CardNum;
head->prev = NULL;
... |
/*
Copyright (c) 2007 <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,
mod... |
#include <unistd.h>
#include <string.h>
#include "py/mpconfig.h"
#include "py/stream.h"
#include "py/runtime.h"
/*
* Core UART functions to implement for a port
* Gecko_SDK/platform/Device/SiliconLabs/EFR32MG1P/Include/efm32mg1p_usart.h
*
* To find the "Location" values, look in gecko_sdk/include/efr32mg1p_af_pins... |
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#ifdef ... |
/*
* This test application is to read/write data directly from/to the device
* from userspace.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <assert.h>
#include <stdbool.h>
void usage(void) {
printf("*argv[0] -g <GPIO_ADDRESS> -i|-o <VALUE>\n"... |
/*-
* SPDX-License-Identifier: MIT
*
* MIT License
*
* Copyright (c) 2021 Abb1x
*
* 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 th... |
/*
Copyright 2008, 2010, 2012 <NAME>.
This file is part of unibilium.
Unibilium 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.
Un... |
/*
* The MIT License (MIT)
*
* 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... |
/******************************************************************************
*
* Copyright (C) 2006-2017 by
* The Salk Institute for Biological Studies and
* Pittsburgh Supercomputing Center, Carnegie Mellon University
*
* Use of this source code is governed by an MIT-style
* license that can be found in the ... |
typedef unsigned long size_t;
typedef short uint16_t;
//#define FAKE 0
struct hostent
{
char *h_name; /* Official name of host. */
char **h_aliases; /* Alias list. */
int h_addrtype; /* Host address type. */
int h_length; /* Length of address. */
char **h_addr_list; /* List of addresses from n... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#define high_threshold 48
#define low_threshold 12
// The dimensions of the image
int width, height;
double get_wall_time(){
struct timeval time;
if (gettimeofday(&time,NULL)){
// Handle error
return 0;
}
... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your... |
/* Exports from syscalls1.c. */
s48_value wait_pid(s48_value pid, s48_value flags);
s48_value scheme_exec(s48_value prog, s48_value argv, s48_value env);
s48_value scsh_exit (s48_value status);
s48_value scsh__exit (s48_value status);
s48_value scsh_fork ();
s48_value scheme_pipe();
s48_value scsh_kill (s48_valu... |
/*
* Copyright (C) 2009-2012 the libgit2 contributors
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "git2/remote.h"
#include "git2/oid.h"
#include "git2/refs.h"
#include "git2/revwalk.h"
#include "git2/index... |
/*
* Copyright © 2021 <NAME> <<EMAIL>>
*
* 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 DISC... |
#include <stdlib.h>
#include <stdio.h>
#include "include/board.h"
#include "include/piece.h"
#include "include/position.h"
#include "include/movement_utils.h"
void set_square(board_t *self, pos_t pos, piece_t **piece);
static void print_header();
static void print_footer();
board_t *make_empty_board()
{
board_t ... |
/******************************************************************************
**
** $Id: vmkcdb.c,v 1.1 1999/02/21 13:24:54 chris Exp $
** Change a domain's password file to a CDB database
**
** <NAME>, July 1998
**
******************************************************************************/
#include <stdio.h>
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TADPilaDin.h"
#include <math.h>
int cadParentesis(char cadena[], int tam_cadena){
int i,j;
pila mi_pila; //Se declara una pila "mi_pila"
elemento e1; //Declaro un elemento "e1"
Initialize(&mi_pila); //Inicialización de "mi_pila"
for(i=0;i<ta... |
/*
* Acess C Compiler
* By <NAME> (thePowersGang)
*
* This code is published under the terms of the FreeBSD licence.
* See the file COPYING for details
*
* symbol.c - Global and Local symbol manipulation
*/
#include <global.h>
#include <symbol.h>
#include <string.h>
#include <ast.h>
#include <assert.h>
// === ... |
/*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/* Copyright (c) 2017 <NAME>. All rights reserved. */
#include <getopt.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "utils/safer.h"
#include "options.h"
#include "file.h"
#include "c... |
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Evas.h>
#include <Emotion.h>
#include <stdio.h>
#define WIDTH (320)
#define HEIGHT (240)
static void
_display_info(Evas_Object *o)
{
int w, h;
printf("playing: %d\n", emotion_object_play_get(o));
printf("meta title: %s\n",
emotion_object_meta_info_get(... |
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/user.h"
#include "../h/user.h"
/*
* This table is the switch used to transfer
* to the appropriate routine for processing a system call.
* Each row contains the number of arguments expected
* and a pointer to the routine.
*/
void alarm(void);
void chd... |
/* A couple of routines to implement a low-overhead timer for drivers */
/*
* 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, or (at
* your option) any later version.
*/
#... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://william@r<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/applications/CGV/... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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... |
/* This file is part of the HWA project.
* Copyright (c) 2017 <NAME>.
* All rights reserved. Read LICENSE.TXT for details.
*/
/**
* @file
* @brief SysTick timer
*/
#define hw_class__stka
/**
* @addtogroup stm32_stka
* @section stm32_stkaif Interface
*
* * Configuration
*
* @code
* hw|hwa( configure, ... |
#include <math.h>
#include "vecutil.h"
#ifndef M_PI
#define M_PI (3.1415926535897932384626433832795)
#endif
#define DEG2RAD(x) (((x)*2.0*M_PI)/360.0)
#define RAD2DEG(x) (((x)*360.0)/(2.0*M_PI))
#define EPSILON (.00001)
#ifndef max
#define max(x,y) ((x)>(y)?(x):(y))
#endif
#ifndef min
#define min(x,y) ((x)<(y)?(x):(y... |
/*
* File source filter unit tests
*
* Copyright 2016 <NAME>
* Copyright 2018 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... |
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "hns_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include "hns.h"
#include "hns_inet_net_pton.h"
#include "hns_private.h"
#include "hns_base32.h"
#include "hns_addr.h"
#if... |
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
#include "snapconfig.h"
/*
$Log: plotbin.c,v $
Revision 1.2 1997/04/28 10:58:55 CHRIS
Added function to access notes associated with data. Not properly done -
does not share common code with snap\notedata.c
Revision 1.1 1996/01/03 22:23:34 CHRIS
Initial revision
*/
#include <stdio.h>
#include... |
//Programa de cadastro de Disciplinas: Cadastro de disciplinas (Nome, Código, Professor, Sala), Busca por Nome, Sala e Professor.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct disciplina{
char nome[50];
int codigo;
int sala;
char professor[20];
}Disciplina;
void adDiscipl... |
/*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2016 <NAME>
The original author of Bacula is <NAME>, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in the LICENSE ... |
/*
Copyright (C) 2006-2007 <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... |
/*
* MMXVI source code package
*
* Written by <NAME> and <NAME>, 2015
*
* This work is licensed under a Creative Commons CC0 1.0 License/Waiver.
*
* You should have received a copy of the CC0 Public Domain Dedication along
* with
* this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0... |
/*
* Copyright (c) 2002 - 2006, Netherlands Forensic Institute
*
* 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
* ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "globals.h"
#include "exeptions.h"
#include "first_pass.h"
#include "utils.h"
#include "binary.h"
int data_image_line_create(DI_ptr *curr_line_ptr, DI_ptr *tail_ptr, char *currLine, long adress, int type_of_sentence, char *key_word, char* operands, i... |
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include "misc.h"
#include "mpconfig.h"
#include "obj.h"
#include "runtime0.h"
#include "map.h"
// approximatelly doubling primes; made with Mathematica command: Table[Prime[Floor[(1.7)^n]], {n, 3, 24}]
static int doubling_primes[] = {7, 19, 43, 89, 179, 347... |
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2014, 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 c... |
#include <czmq.h>
#include <pthread.h>
#include <network.h>
#include <command.h>
#include <game_ctx.h>
#include <gmanager.h>
#include <player.h>
#include <cycle.h>
#include <list.h>
#define GET_MSG_AND_ID(raw, id, content) \
id = extract_id(raw); \
content = get_msg_content(raw);
#define CLEAN_ZMS... |
#include "main.h"
#include "dma.h"
#include "adc.h"
#include "i2c.h"
#include "tim.h"
#include "gpio.h"
#include "ssd1306.h"
#include "ds18b20.h"
#include <stdio.h>
void SystemClock_Config(void);
void Print_Core_Freq(void);
void Set_RGB_LED(void);
void Display_RGB_Values(void);
void Set_Color_ADC(void);
... |
// Copyright (C) Microsoft Corporation. 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
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
/*
... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2004,2007 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
* (at... |
/* lib/rsa/bn_mul.c */
/* Copyright (C) 1995 <NAME> (<EMAIL>)
* All rights reserved.
*
* This file is part of an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL
* specification. This library and applications are
* FREE FOR COMMERCIAL AND NO... |
/*
*
* Copyright (C) 2017 Delta Networks, 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 version 2 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* FreeBSD License
* Copyright (c) 2016, Guenael
* 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... |
#include <rlgl.h>
static Janet cfun_EnableDepthTest(int32_t argc, Janet *argv) {
(void) argv;
janet_fixarity(argc, 0);
rlEnableDepthTest();
return janet_wrap_nil();
}
static Janet cfun_DisableDepthTest(int32_t argc, Janet *argv) {
(void) argv;
janet_fixarity(argc, 0);
rlDisableDepthTest();... |
/************************************************************************************
* *
* File Name : timer_irq.c *
* Contents : Timer interrupt related functions of Kaff... |
/* include/linux/sm501.h
*
* Copyright (c) 2006 Simtec Electronics
* <NAME> <<EMAIL>>
* <NAME> <<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; either version 2 of the License... |
/*
* 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... |
/*-
* Copyright (c) 2012 Semihalf.
* 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 condition... |
# include <stdio.h>
# include <string.h>
#include "hstcal.h"
# include "hstio.h"
# include "wf3.h"
# include "wf3info.h"
# include "hstcalerr.h"
/* This routine scales CHIP2 in the UVIS data so that the flux correction over both chips
is uniform. It uses the ratio of PHTFLAM2 / PHTFLAM1 and saves that value for re... |
#include <string.h>
#include "stdio.h"
#include <stdlib.h>
FILE *Infile;
FILE *Outfile;
int EOL_FLAG();
char Token[10000];
int tokenPtr=0;
int lineNum=0;
int charNum=0;
int skipLine=0;
void stepit(char A,char B,int Lnum);
void read_in_file();
void reserved_words(char *Token,char *tokenType);
void doubleNames(char ... |
/*
* Copyright (c) 2019 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(net_pkt_sock_sample, LOG_LEVEL_DBG);
#include <zephyr.h>
#include <errno.h>
#include <stdio.h>
#include <net/socket.h>
#include <net/ethernet.h>
#define STACK_SIZE 1024
#define THRE... |
/*
* File : stack.c
* COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your optio... |
/*
A Lua binding to libketama.
Copyright (c) 2009, <NAME> - http://github.com/phoenixsol
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 PR... |
/**
* Copyright (C) 2013 Netronome Systems, Inc. All rights reserved.
*
* @file run.c
* @brief Example code for packet egress, interactiving with the simulator
*
*/
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#incl... |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
/*
Copyright (c) 2015, Plume Design Inc. 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... |
/*
Routines to do various Discrete Fourier Transforms using
ARB to manage rounding errors.
*/
#include "stdbool.h"
#include "inttypes.h"
#include "acb.h"
void initfft(unsigned int MAXN, acb_t *w, int64_t prec)
{
int i;
arb_t temp,temp1;
acb_t ctemp,htemp;
arb_init(temp);
arb_init(tem... |
#include <stdio.h>
#include <stdint.h>
#include <pcap.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <net/ethernet.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <unistd.h>
#include <stdlib.h>
static int p_count = 1;
static char filter_exp[] ... |
#include "extclib/crypto.h"
#include "extclib/net.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#define ENCRYPT_MODE 1
#define DECRYPT_MODE -1
#define OPTION ENCRYPT_MODE
// #define OPTION DECRYPT_MODE
#define BUFSIZ_1K (1 << 10)
#define BUFSIZ_2K (2 << 10)
#define BUFSIZ_4K (4 ... |
/*-
* Copyright (c) 2011-2012 <NAME>.
* Copyright (c) 2012 <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
* ... |
/* GStreamer Wayland video sink
*
* Copyright (C) 2016 STMicroelectronics SA
* Copyright (C) 2016 <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; either
* vers... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
#include "test.h"
#include "vectors.h"
vkvg_fill_rule_t fillrule = VKVG_FILL_RULE_NON_ZERO;
static VkSampleCountFlags samples = VK_SAMPLE_COUNT_8_BIT;
float lineWidth = 4.0f;
vkvg_line_join_t lineJoin = VKVG_LINE_JOIN_MITER;
vkvg_line_cap_t lineCap = VKVG_LINE_CAP_BUTT;
bool isClosed = false, refresh = true;
bool star... |
// =====================================================================================
//
// Filename: main.c
//
// Description:
//
// Version: 1.0
// Created: 03/22/2014 12:21:24 PM
// Revision: none
// Compiler: gcc
//
// Author: <NAME> (), <EMAIL>
// Organizatio... |
/*-
* Public Domain 2014-2018 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary,... |
/**************************************************************************/
/* PROGRAM: MAADD.C */
/* DESCRIPTION: Adding records and indexes */
/* AUTHOR: <NAME> */
/**********************... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tests.c :+: :+: :+: ... |
/*
* Copyright (C) 2018 "IoT.bzh"
* Author <NAME> <<EMAIL>>
* Author <NAME> <<EMAIL>>
* Author <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... |
/* dscp lookup routines lifted wholesale from openssh */
/*
* Copyright (c) 2000 <NAME>. All rights reserved.
* Copyright (c) 2005,2006 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 524
* Seed: 524
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
volatile uint64_t g_8[10] = {-1L, -1L, -1... |
#include "traffic_jam.h"
#include "util.h"
// Biham–Middleton–Levine traffic model
const int empty = 0;
const int red = 1;
const int blue = 2;
void *rule_traffic_jam_init(int xres, int yres) {
traffic_jam_context *state = calloc(1, sizeof(traffic_jam_context));
state->starting_blue_chance = 0.19;
state->... |
/* Copyright 2004,2007,2008 ENSEIRB, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free software. You can
**... |
#include "numeric.h"
#include "../../utils.h"
#include <string.h>
#include <strings.h>
/* ==================================================================================================== */
const char *extcss3_numeric_dimensions[19] = {
"em",
"ex",
"ch",
"rem",
"vw",
"vh",
"vmin",
"vmax",
"cm",
"m... |
/*
* Copyright(c) 2018, Firmware Modules Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met :
*
* *Redistributions of source code must retain the above copyright notice, this
* list of conditions... |
/*
Copyright (c) 2012-2013, The Saffire Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditi... |
/*
* FireDTV driver (formerly known as FireSAT)
*
* Copyright (C) 2004 <NAME> <<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; either version 2 of
* the License, or (at your o... |
// File name: main.c
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
struct OneDMemrefF32 {
float *ptrToData;
float *alignedPtrToData;
long offset;
long shape[1];
long stride[1];
};
struct TwoDMemrefF32 {
float *ptrToData;
float *alignedPtrToData;
long offset;
long shape[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.