text stringlengths 3.08k 10.5k |
|---|
#include <u.h>
#include <libc.h>
#include <draw.h>
int
parsefontscale(char *name, char **base)
{
char *p;
int scale;
p = name;
scale = 0;
while('0' <= *p && *p <= '9') {
scale = scale*10 + *p - '0';
p++;
}
if(*p == '*' && scale > 0)
*base = p+1;
else {
*base = name;
scale = 1;
}
return scale;
}
... |
/************************************************************************
* dlb_wave
* Copyright (c) 2021, Dolby Laboratories 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:
*
* ... |
/* Copyright (C) 2019 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 and that both that copyright
* notice and this permission notice appear in ... |
/*
* 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 ... |
/*
* atmel-pcm-dma.c -- ALSA PCM DMA support for the Atmel SoC.
*
* Copyright (C) 2012 Atmel
*
* Author: <NAME> <<EMAIL>>
*
* Based on atmel-pcm by:
* <NAME> <<EMAIL>>
* Copyright 2008 Atmel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
/**
******************************************************************************
* File Name : TIM.c
* Description : This file provides code for the configuration
* of the TIM instances.
******************************************************************************
... |
/****************************************************************************
* arch/arm/src/am335x/am335x_timerisr.c
*
* 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 copyr... |
/**************************************************************************
*
* Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Softwa... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "assocarray.h"
#include "mystring.h"
// -Wall was complaining about implicit declaration...
int isbalanced(MY_SET hMY_SET);
void other_traverse(MY_SET hMY_SET, void (*visit)(MYSTRING));
int acceptLineIn(char ch, int * pbDiscardChar... |
/*
This file is part of the sgui samples collection. I, <NAME>,
author of this file hereby place the contents of this file into
the public domain.
*/
/*
This small programm is supposed to demonstrate how to create a window
with a Direct3D 11 rendering context through sgui and how to use a manual
... |
#include "g3a.h"
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "images.h"
#include "util.h"
/*
* Makes a g3a file with name outFile from inFile.
* names is an array of strings giving names to insert:
* short inte... |
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* be made according to the POK licence. You CANNOT use this file or a part
* of a file for your own project.
*
* For more information on the POK licence, please see our LICENCE FILE
*
* Pl... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "barreiras.h"
#include "math.h"
ptr_marcaBarreiras inicializarMarcacaoDasBarreiras(){
int i,j;
ptr_marcaBarreiras ptrBarreiras = malloc(sizeof(*ptrBarreiras));
/* Aloca memoria para as colunas da matrix posicaoBarreiras */
int **posic... |
#include <libevdev/libevdev.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "rce.h"
#include "input.h"
#define DIR_DEV_INPUT "/dev/input"
#define EVDEV_PREFIX "event"
struct timespec LONG_CLI... |
/*
* Copyright (c) 2017-2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*/
#include "parsec.h"
#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h"
#include "parsec/data_dist/matrix/two_dim_tabul... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) Foundries Ltd. 2020 - All Rights Reserved
* Author: <NAME> <<EMAIL>>
*/
#include <crypto/crypto.h>
#include <se050.h>
#include <se050_utils.h>
#include <string.h>
#include <util.h>
/* exp: minimal amount of transient memory required to generate an RSA key... |
/*
Copyright (c) 2013, <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:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclai... |
/*
* Machine Description Interface C API
*
* This software is delivered under the terms of the MIT License
*
* Copyright (c) 2016 STMicroelectronics
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal... |
/*
Copyright 2015 Google 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 applicable law or agreed to in wri... |
/* tinyroute.c
* Copyright (C) 2017 Intel Corporation
* Inspired by tinymix from tinyalsa package
*
* 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/licens... |
/* Test file for mpfr_abs.
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by the AriC and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or ... |
/* gngeo, a neogeo emulator
* Copyright (C) 2001 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later v... |
/**
*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 n... |
/**************************************************************************
*
* Copyright 2009 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software wit... |
/*
* vicii-color.c - Colors for the MOS 6569 (VIC-II) emulation.
*
* Written by
* <NAME> <<EMAIL>>
*
* Research about the YUV values by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free soft... |
/* Copyright (C) 2002-2012 The SSI Project. 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... |
/***************************************************************************
cdp1869.c
Sound handler
TODO:
- white noise
****************************************************************************/
#include "sndintrf.h"
#include "sound/cdp1869.h"
#include "streams.h"
struct CDP1869
{
sound_stre... |
/*
* ASCII <-> Base64 conversion as described in RFC1421.
*
* Copyright 2006-2010 <NAME> <<EMAIL>>
* Copyright 2009-2010 <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... |
#include <stdint.h>
#include "masked_mixcolumns.h"
#include "masking.h"
#include "bitslicing.h"
static inline uint16_t ror4(uint16_t n)
{
return (n >> 4 | ((n << 12) & 0xF000));
}
static inline uint16_t ror8(uint16_t n)
{
return (n >> 8 | ((n << 8) & 0xFF00));
}
void mixcolumns(uint16_t state[8])
{
uint... |
/*
* Copyright 2012 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
* the rights to use, copy, modify, merge, publish, d... |
/*
Copyright (C) 2018 <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2... |
/* Copyright 2012-2017 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software 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... |
#include "MSPd.h"
static t_class *epluribus_class;
#define MAXBEATS (256)
#define OBJECT_NAME "epluribus~"
#define COMPILE_DATE "5.3.08"
#define OBJECT_VERSION "2.0"
typedef struct _epluribus
{
t_object x_obj;
float x_f;
int incount; // how many inlets (must be at least 2)
short inverse; // flag to look for ... |
#include "abertura_e_copia.h"
#include <stdio.h>
void ler(FILE *arquivo, char *IDF, int *maxTon, int *coluna, int *linha){/*Função que realiza a leitura da imagem*/
fscanf(arquivo, "%s", IDF); //le o codigo
fscanf(arquivo, "%d", coluna);//le a coluna (largura)
fscanf(arquivo, "%d", linha);//le... |
//-----------------------------------------------------------------------------
/*
* https://github.com/rxi/log.c
* Copyright (c) 2020 rxi
*
* 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 Softw... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vetor.h"
#include "lista.h"
#include "pilha.h"
#include "tabdispersao.h"
#include "avl.h"
pilha* vetor_pilha (vetor *v)
{
int i;
const int tamanho= vetor_tamanho(v);
pilha *pilh=pilha_nova();
pilha *aux=pilha_nova();
vetor *vet=v... |
/*
* MIT License
*
* Copyright (c) 2022 <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... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <assert.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#define WIDTH 600
#define HEIGHT WIDTH
#include "adt/hmap.h"
#include "glapi/api.h"
#include "glapi/core.h"
#include <GL/glx.h>
#include "glapi/xtypes.h"
#include "glapi/x.h"
#i... |
#pragma once
#include <Arduino.h>
#include <Ticker.h>
/* Pulse Sensor Amped 1.4 by <NAME> and <NAME> http://www.pulsesensor.com
---------------------- Notes ---------------------- ----------------------
This code:
1) Blinks an LED to User's Live Heartbeat PIN 13
2) Fades an LED to User's Live HeartBeat
3) ... |
/*
* ISC License
*
* Copyright (C) 1985-2018 by
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 c... |
/*
* Door_Lock.c
*
* Created: 2020-11-30 17:24:45
* Author : Ernestas
*/
/* Includes ----------------------------------------------------------*/
#include <avr/io.h> // AVR device-specific IO definitions
#include <avr/interrupt.h> // Interrupts standard C library for AVR-GCC
#ifndef F_CPU
#define F_CPU ... |
/*
* Copyright 2017, 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... |
/*
* File: rtc.c
* Purpose: Provide common RTC routines
*
* Notes:
*
*/
#include "common.h"
#include "rtc.h"
#ifndef CMSIS
#include "arm_cm0.h"
#endif
// [ILG]
#if defined ( __GNUC__ )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat"
#endif
/**************... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include "keyboard.h"
#include "irq.h"
#include "kstdio.h"
#include "heap.h"
typedef void (*key_func_t)(void);
static uint8_t shift_down = 0;
static uint8_t ctrl_down = 0;
static uint8_t alt_down = 0;
static uint8_t key_code;
char kbuf[256];
int kbufp = 0;
int keylock = 0;
uint8_t keystates[256];
static const ch... |
/*
* Copyright (c) 2016, <NAME>, 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 ... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
#include "stdint.h"
#include "mini_uart.h"
#include "str_tool.h"
#define PADDING 0
#define FDT_BEGIN_NODE 1
#define FDT_END_NODE 2
#define FDT_PROP 3
#define FDT_NOP 4
#define FDT_END 9
#define DT_ADDR 0x100000
struct fdt_header {
uint32_t magic;
uint32_t totalsize;
... |
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "cpytraceafl.h"
#define HASH_PRIME 0xedb6417b
unsigned char afl_map_size_bits = 16;
unsigned char afl_ngram_size = 0;
char* __afl_area_ptr = NULL;
// non-ngram-aware AFL should be able to interpret this symbol as a
// plain old uint32 and work fine
__thread afl... |
#include "hash_table.h"
ht_hash_table* ht_new_sized(int base_size) {
ht_hash_table* ht = malloc(sizeof(ht_hash_table));
ht->base_size = base_size;
ht->size = next_prime(base_size);
ht->count = 0;
ht->items = calloc((size_t)ht->size, sizeof(ht_item*));
return ht;
}
/**
* Creates a new item
... |
/* $XConsortium: Sme.c,v 1.12 94/04/17 20:12:48 kaleb Exp $ */
/*
Copyright (c) 1989, 1994 X Consortium
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 lim... |
/*
* Copyright (C) 2011 Samsung Electronics
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/mmc.h>
#include <asm/arch/periph.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/sromc.h>
DECLARE_G... |
/* $NetBSD: kgdb_machdep.c,v 1.5 1997/04/21 16:17:39 matthias Exp $ */
/*
* Copyright (c) 1996 <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... |
/*
Copyright 2020 Nerves Project Developers
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 ag... |
/*
* Copyright (C) 2018 Savoir-Faire Linux Inc.
*
* Authors:
* <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 ... |
/* $NetBSD: obio.c,v 1.3 2003/07/14 15:47:18 lukem Exp $ */
/*
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, 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. Redi... |
/*
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 <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <assert.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include "matrix.h"
#include "tournament.h"
#include "ranking.h"
#include "util.h"
#include "unit_games.h"
#include "blotto.h"
#define a(i) i - 1
#define b(i) i + (2*k - 2)
#define c... |
// gcc -g -O3 -Wall bamSplit.c -o bamSplit -I./samtools-0.1.19 -I./zlib-1.2.8/include -L./samtools-0.1.19 -L./zlib-1.2.8/lib -lpthread -lm -lz -lbam
#include <stdio.h>
#include <getopt.h>
#include <math.h>
#include <err.h>
#include <time.h>
#include <sys/time.h>
#include <libgen.h>
#include "sam.h"
typedef struct _da... |
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "ncat_core.h"
#include "http.h"
static long test_count = 0;
static long success_count = 0;
/* Check strings or null pointers for equality. */
int nullstreq(const char *s, const char *t)
{
if (s == NULL) {
if (t == NULL)
return 1;
else
retu... |
/*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute... |
/*
* Copyright (c) 2008-2009 Red Hat, Inc.
*
* All rights reserved.
*
* Author: <NAME> (<EMAIL>)
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
#include "whistlepig.h"
#include "query.h"
static wp_query* wp_query_new() {
wp_query* ret = malloc(sizeof(wp_query));
ret->type = 0; // error
ret->field = ret->word = NULL;
ret->num_children = 0;
ret->children = ret->next = ret->last = NULL;
ret->search_data = NULL;
return ret;
}
static const char* id... |
#define XXX 1
// Consignes :
// 1. Remplacer XXX par le bon résultat dans la suite.
// 2. Compléter avec les instructions requises en lieu et place de *** TODO ***
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#define NB_VALEURS 10
#define NB_CARTES (4*NB_VALEUR... |
/*
* MONA
* Copyright (C) 1997-2013 Aarhus University.
*
* 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.
*
* Th... |
/**
* \file main.c
*
* \brief Main file for WSN Demo Example on MiWi Mesh.
*
* Copyright (c) 2018 - 2020 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Micro... |
/*-
* Copyright (c) 2005-2008, <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 unmodified, this lis... |
/*
A C-program for MT19937, with improved initialization 2002/1/26.
This is an optimized version that amortizes the shift/reload cost,
by Eric Landry 2004-03-15.
Before using, initialize the state by using init_genrand(seed) or
init_by_array(init_key, key_length).
Copyright (C) 1997--2004, <NAME>, ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <getopt.h>
#include <errno.h>
#include "disk.h"
int verbose;
static char short_opts[] = "vqd:p:h?";
static const struct option long_opts[] = {
{ "verbose", no_argument, NULL, 'v' },
{ "quiet", no_argument, N... |
/*
* Copyright <NAME>.A., 2014
*
* This work is licensed under the terms of the GNU GPL, version 2 or
* (at your option) any later version. See the COPYING file in the
* top-level directory.
*/
#include "qemu/osdep.h"
#include "ivshmem-client.h"
#define IVSHMEM_CLIENT_DEFAULT_VERBOSE 0
#define IVSHMEM_... |
#include <stdio.h>
#include <stdlib.h>
unsigned char charset[8192];
unsigned int scrmem[1024];
unsigned int colmem[1024];
unsigned char rasters_f[256];
unsigned char rasters_e[256];
unsigned char mem[65536];
int numlines;
int numcolumns;
unsigned char alloctab[256];
int allocshape(unsigned char*shape,int probeo... |
#include "c_map.h"
struct BadExample
{
float x;
float y;
};
typedef struct ExampleForExample
{
char foo;
long long bar;
} Example;
struct ExampleStruct
{
int x;
long long y;
short z;
Example fourthDimension;
};
void examplePrint(char* type, int result)
{
char* did = "was";
char* didNOT = "was NO... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <getopt.h>
#include <limits.h>
#include <float.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <errno.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define STARTGARLIC 15
#define H_PER_KIB 16 //1024... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*-
*
* echo-server.c --- Simple echo server for testing purposes.
*
*/
/* TODO: IPv6 support, port to Winsock */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#include <Winsoc... |
/* ====================================================================
* Copyright (c) 1999-2006 Carnegie Mellon University. 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. Redi... |
/*-
* Copyright (c) 2016 <NAME>
* 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:
* 1. Redistributions of source code must retain the above copyright
* no... |
/* Copyright (c) 2014 The Chromium OS Author. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "cras_audio_area.h"
#include "cras_util.h"
#include "linear_resampler.h"
/* A linear resampler.
* Members:
* num_channels - The n... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "phyloLib.h"
philosopher_t *firstPhil;
sem_t *mutex;
int philoCount = STARTING;
void printState() {
philosopher_t * phil = firstPhil;
do {
if ... |
/*
interceptor_tester_ipm.c
Author: <NAME> <<EMAIL>>
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
All rights reserved.
Simple policy manager that is used to drive the interceptor test engine.
*/
#ifdef KERNEL
# undef KERNEL
# undef _KERNEL
#endif
#include "sshincludes.h"
#includ... |
/******************************************************************************
* Copyright (C) 2019 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/***************************************************************... |
#include "uci.h"
#include "board.h"
#include "bitboard.h"
#include "search.h"
#include "timeman.h"
#include "Fathom/tbprobe.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
pthread_t searchthread;
int dynamicTimeManagment = 0;
int moveOverhead = 0;
void change_to... |
#include "tiny.h"
#include <stdbool.h>
int listenfd = -1;
bool noise = true;
void rio_readinitb(rio_t *rp, int fd)
{
rp->rio_fd = fd;
rp->rio_cnt = 0;
rp->rio_bufptr = rp->rio_buf;
}
ssize_t writen(int fd, void *usrbuf, size_t n)
{
size_t nleft = n;
char *bufp = usrbuf;
for (ssize_t nwritten;... |
// Copyright <NAME> 2015
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "proto.h"
#define LINELEN 20
// Define functions
void print_board();
int board[9][9];
int chunk;
int main(int argc, char **argv){
// All ... |
#include "libcgc.h"
#include "cgc_libc.h"
const char *secret = (const char*)0x4347C000;
char word[128];
char current[128];
char inbuf[256];
char outbuf[256];
char avail[27];
char used[27];
extern const char *cgc_words[];
extern unsigned int cgc_NUM_WORDS;
char gallows[] = " ---\n | |\n |\n |\n |\n... |
#include "vga.h"
#include "io.h"
uint8_t vga_color(enum vga_color fg, enum vga_color bg) { return fg | bg << 4; }
uint16_t vga_char_entry(uint8_t c, uint8_t color) { return (uint16_t) c | (uint16_t) color << 8; }
void vga_write_registers(uint8_t* registers)
{
outb(VGA_MISC_PORT, *(registers++));
for (uint8... |
/*
* System Versioning Preprocessor Macros
*/
#define system_version [UIDevice currentDevice].systemVersion
#define system_version_equal_to( _version_ ) ([[[UIDevice currentDevice] systemVersion] compare:_version_ options:NSNumericSearch] == NSOrderedSame)
#define system_version_greater_than( _version_ ) ... |
#include <stdint.h>
#include "../registers/converters/adc1.h"
#include "../registers/memory/dma.h"
#include "../registers/system/pin_manager.h"
#include "../registers/timers/tmr5.h"
#include "../bus/spi/spi_driver.h"
#include "../bus/uart/uart1.h"
#include "../helpers/buffer.h"
#include "../commands.h"
#define MAX_CHA... |
/*
* Copyright (C) STMicroelectronics SA 2014
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* for STMicroelectronics.
* License terms: GNU General Public License (GPL), version 2
*/
#include <drm/drmP.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include "sti_com... |
/**
* Global memory manager implementation
*/
#include "viewer_memory.h"
#include <assert.h>
/**
* Bit scan forward - Count trailing zeroes
*/
#if defined(__clang__) || defined(__GNUC__)
#if defined(_M_X64) || defined(__x86_64__)
#define _VIEWER_BSF(r, v) r = __builtin_ctz(v)
#else
#define _VIEWER_BSF(r, v) r = _... |
/*
* OSv block I/O glue
*
* Authors: <NAME> <<EMAIL>>
*
*
* Copyright (c) 2013-2017, NEC Europe Ltd., NEC Corporation All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistribut... |
/* $OpenBSD: tls13_handshake_msg.c,v 1.1 2019/01/20 12:27:34 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 <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... |
#include <stdlib.h>
#include <stdio.h>
#include "writer.h"
/*
All credit for the subscript syntax goes to <NAME> on the Groff mailing list:
https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html
*/
#define DENT 4
static void
printFont(Writer w) {
putchar('\\');
putchar('f');
putchar('[');
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mgos.h"
#include "mgos_dht.h"
#include "mgos_mqtt.h"
#include "mgos_config.h"
#include "mgos_net.h"
#include "mgos_http_server.h"
#include "mgos_mongoose.h"
#define BUFFER_SIZE 50
#define LED_PIN mgos_sys_config_get_app_led_pin()
char BUFFER[BUFFER_S... |
/*
* Copyright (c) 2018 The Fuchsia Authors
*
* 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... |
/*
* generate_delay.c
*
* Created: 10-05-2018 16:33:19
* Author: Bhushan
*/
#define F_CPU 1000000
#include<avr/io.h>
#include<util/delay.h>
#include<avr/interrupt.h>
#include "Timer_Counter_header.h"
//void generate_square_normal(unsigned int,unsigned char,unsigned char,unsigned char);
unsigned int... |
/*
mediastreamer2 library - modular sound and video processing and streaming
Copyright (C) 2014 Belledonne Communications SARL
Author: <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;... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <signal.h>
#include <x86intrin.h>
#include <unistd.h>
#include <string.h>
#include "common.h"
// Defines the bandwidth we can communicate
// from speculative -> von neuman
// e.g. 256 would be 1 byte of info
// Tradeoff here is larger bandwidth means ... |
//******************************************************************************
// Секция включения заголовочных файлов
//******************************************************************************
#include "drivers/ioport.h"
#include "drivers/mcu.h"
#include "drivers/irq.h"
#include "drivers/uart.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.