text
stringlengths
3.08k
10.5k
#include <ncurses.h> #include "init.h" #include "screen.h" #include "sound.h" #define GETCH_TIMEOUT 80 // SET COLOR void setColor( int pair, int bold ) { attrset( COLOR_PAIR( pair ) | bold * A_BOLD ); } // PLAY A SHORT NOTE void pick( int st ) { // TRY TO CREATE A NOTE int id = newNote( semitoneToFreq( st ) ); ...
#include "interface.h" #include "pieces.h" #include "grid.h" #include "save.h" piece piecesType[PIECES_AMOUNT] = {0}; //piece 0 is reserved for blank u8 grid[10][10] = {0}; static u8 quit = 0; void themesMenu() { Theme themes[256] = {0}; Theme defaultTheme; defaultTheme.name = DEFAULT_THEME; themes[0] = defaultTh...
// This file is free software, distributed under the BSD license. #include "hack.h" #include "extern.h" // // called with [x,y] = coordinates; // [0,0] means anyplace // [_u.ux,_u.uy] means: call mnexto (if !in_mklev) // // In case we make an Orc or killer bee, we make an entire horde (swarm); // ...
/* * VOTSPLIT -- Split a Multi-RESOURCE VOTable into single tables. * * Usage: * votsplit [<otps>] <votable> * * @file votsplit.c * @author <NAME> * @date 6/03/12 * * @brief Split a Multi-RESOURCE VOTable into single tables. */ #include <stdio.h> #include <unistd.h> #include <s...
#include <linux/kernel.h> #include <linux/gfp.h> #include <linux/ide.h> DEFINE_MUTEX(ide_setting_mtx); ide_devset_get(io_32bit, io_32bit); static int set_io_32bit(ide_drive_t *drive, int arg) { if (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT) return -EPERM; if (arg < 0 || arg > 1 + (SUPPORT_VLB_SYNC << 1)) retu...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* Routines to calculate magnification (using Lanczos interpolation) of arrays * 2008 Sep 22 jek Created prop_szoom_c and roundval routines * 2014 Aug 21 gmg Altered and added code for use within Matlab */ #include <stdio.h> #include <math.h> #include "mex.h" #if !defined(__APPLE__) #include <malloc.h> #endif #d...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
#include "builtin.h" static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result) { char name[50]; if (!patchlen) return; memcpy(name, oid_to_hex(id), GIT_SHA1_HEXSZ + 1); printf("%s %s\n", oid_to_hex(result), name); } static int remove_space(char *line) { char *src = line; cha...
/* * Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <debug.h> #include <stdarg.h> #include <stdint.h> #include <arch_helpers.h> #include <platform_def.h> #include <bakery_lock.h> #include "rcar_def.h" #include "rcar_private.h" #...
/****************************************************************************** * Nome do aluno: <NAME> Numero USP: 3151151 * * Curso: BCC Data: 9/06/1999 * * Nome do Professor: <NAME> * * Exercicio Programa Numer...
/* * Copyright (c) 2015-2019 Intel Corporation. * All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * */ #include "vmm_asm.h" #include "vmm_base.h" #include "vmm_arch.h" #include "evmm_desc.h" #include "grub_boot_param.h" #include "ldr_dbg.h" #include "stage0_lib.h" #include "lib/util.h" #include "li...
/* ----------------------------------------------------------------------------- * kpSift3D.c * ----------------------------------------------------------------------------- * Copyright (c) 2015-2016 <NAME> et al., see LICENSE for details. * ----------------------------------------------------------------------...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "common.h" #include "../include/memory.h" #include "table.h" #define TABLE_INITIAL_SIZE 8 void tablePrintData(Data d) { printf("%d", d); } Table *newTable() { Table *t = allocm(sizeof(*t)); t->size = TABLE_INITIAL_SIZE; t-...
/* This is part of the netCDF package. Copyright 2005-2011, University Corporation for Atmospheric Research/Unidata. See COPYRIGHT file for conditions of use. Test NetCDF-4 files with lots of attributes on big vs. little endian platforms. */ #include <config.h> #include <nc_tests.h> #include "err_macros.h"...
#include "driver.h" #include "kernel1.h" double getTime() { double time; #ifdef ERT_OPENMP time = omp_get_wtime(); #elif ERT_MPI time = MPI_Wtime(); #else struct timeval tm; gettimeofday(&tm, NULL); time = tm.tv_sec + (tm.tv_usec / 1000000.0); #endif return time; } int main(int argc, char *argv[]) { #...
/* Simulation code for the CR16 processor. Copyright (C) 2008-2015 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> This file is part of GDB, the GNU debugger. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publ...
/* * Copyright (c) 2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Common fault handler for ARCv2 * * Common fault handler for ARCv2 processors. */ #include <toolchain.h> #include <linker/sections.h> #include <inttypes.h> #include <kernel.h> #include <kernel_str...
/* crypto/pqueue/pqueue.c */ /* * DTLS implementation written by <NAME> * (<EMAIL>) for the OpenSSL project 2005. */ /* ==================================================================== * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms...
/* Copyright 2020 <NAME>.P. 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 writi...
/// @file /// MEGA65 Registers and Constants #ifndef __MEGA65__ #error "Target platform must be MEGA65" #endif #include <mos6526.h> #include <mos6569.h> #include <mos6581.h> #include <mos4569.h> #include <mega65-viciv.h> #include <mega65-memorymapper.h> #include <mega65-f018.h> #include <mega65-math.h> #include <mega65...
/* * This file is part of the Nautilus AeroKernel developed * by the Hobbes and V3VEE Projects with funding from the * United States National Science Foundation and the Department of Energy. * * The V3VEE Project is a joint project between Northwestern University * and the University of New Mexico. The Hobb...
/* * GStreamer * Copyright (C) 2015 <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 * version 2 of the License, or (at your option) any later version. *...
// File: ADC_HAL.c // Author: JS // Date: 9/30/17 // Purpose: ADC utilities // Hardware: TM4C123 Tiva board #include <stdint.h> #include <assert.h> #include "HAL.h" #include "tm4c123gh6pm.h" #define ADC0_REG_BASE ((volatile uint32_t *)0x40038000) #define ADC1_REG_BASE ((volatile uint32_t *)0x40039000) typedef s...
/* Copyright 2013 <NAME> and <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* Public domain */ /* * Agar memory model */ #define AG_SMALL 16 /* 8-/16-bit CPU with KBs of RAM, 12-bit color */ #define AG_MEDIUM 32 /* 32-/64-bit CPU with MBs of RAM, 24-bit color */ #define AG_LARGE 64 /* 32-/64-bit CPU with GBs of RAM, 48-bit color */ #include <agar/config/ag_model.h> #include <aga...
#include "cache.h" #include "refs.h" #include "tag.h" #include "commit.h" #include "blob.h" #include "diff.h" #include "revision.h" #include "reachable.h" #include "cache-tree.h" #include "progress.h" #include "list-objects.h" struct connectivity_progress { struct progress *progress; unsigned long count; }; static ...
///////////////// //loo4vowels.c: leave one out method for vowels //Usage: //loo4vowels N:2 k:8 rsa:2:0.7:1:20 dir:../satovowels/512 faf ffs fkm fks fms fsu ftk fyn mau mms mmy mnm msh mtm mtt mxm ///////////////// #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef PI #undef PI #endif ...
/* * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
/* -*- mode: C; c-basic-offset: 4; -*- */ /* ex: set shiftwidth=4 tabstop=4 expandtab: */ /* * Copyright (c) 2015-2016, Rice University * All rights reserved. * * Author(s): <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the...
/* * This file is part of the coreboot project. * * Copyright (C) 2007 AMD * Written by <NAME> <<EMAIL>> for AMD. * * 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 th...
/* Copyright 2020 Espressif Systems (Shanghai) PTE LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
/* * Copyright (C) 2020 Red Hat, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * The GnuTLS is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the License, or...
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
#include "types.h" #include "param.h" #include "riscv.h" #include "spinlock.h" #include "defs.h" #define LEAF_SIZE 32 #define NSIZES 8 #define MAX_SIZE NSIZES-1 #define BLK_SIZE(k) ((1L << (k)) * LEAF_SIZE) #define HEAP_SIZE BLK_SIZE(MAX_SIZE) // 4096 #define ROUNDUP(n,sz) (((((n)-1)/(sz))+1)*(sz...
/* Copyright 2019 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "common.h" #include "console.h" #include "task.h" #include "util.h" #include "usb_pd.h" #include "usb_pd_tcpm.h" #include "usb_pe_sm.h" #i...
# include <stdio.h> # include <stdlib.h> # include <string.h> # include "c_iraf.h" # include "hstio.h" # include "xtables.h" # include "stis.h" # include "calstis7.h" # include "hstcalerr.h" typedef struct { IRAFPointer tp; /* pointer to table descriptor */ IRAFPointer cp_aperture; /* column descriptors */ IRAF...
#include "ili9341_fonts.h" #define ILI9341_RESET_PORT P11 #define ILI9341_DC_PORT P10 #define ILI9341_WIDTH 320 #define ILI9341_HEIGHT 240 #define ILI9341_DC_COMMAND (ILI9341_DC_PORT = 0) #define ILI9341_DC_DATA (ILI9341_DC_PORT = 1) // Commands #define ILI9341_RESET 0x01 #define ILI9341_SLEEP_OUT 0x11 #define...
/* * iLBC - a library for the iLBC codec * * StateSearchW.c - The iLBC low bit rate speech codec. * * Adapted by <NAME> <<EMAIL>> from the reference * iLBC code supplied in RFC3951. * * Original code Copyright (C) The Internet Society (2004). * All changes to produce this version Copyright (C) 2008 by <NAME> ...
/* * Copyright 2011 <NAME>. All rights reserved. * * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions...
/* * Copyright (c) 2020, Rutgers Discovery Informatics Institute, Rutgers * University * * See COPYRIGHT in top-level directory. */ #include "mpi.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> extern int test_put_run(int dims, int *npdim, uint64_t *spdim, int timestep, ...
/******************************************************************************* NAME UNIVERSAL TRANSVERSE MERCATOR PURPOSE: Transforms input longitude and latitude to Easting and Northing for the Universal Transverse Mercator projection. The longitude and latitude must be in radians. T...
/* * Assignment 4, Question 5 matvec implementation in C using MPI. * * Copyright (C) 2015, <NAME> (100437638) * All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <cblas.h> #include <mpi.h> // Minimum of two values #define min(a, b) (((a) < (b)) ? (a) : ...
/** @file almon.c * @brief desc. * * @author t-kenji <<EMAIL>> * @date 2018-09-24 create new. * @copyright Copyright © 2018 t-kenji * * This code is licensed under MIT License. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE /* for strdup() */ #endif #include <stdio.h> #include <stdlib.h> ...
/*- * Copyright (c) 1988 University of Utah. * Copyright (c) 1982, 1990, 1993 * The Regents of the University of California. * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * * This code is derived from software contributed to Berkeley by * the Systems Programming Group of the University of U...
/* * Shared async block cipher helpers * * Copyright (c) 2012 <NAME> <<EMAIL>> * * Based on aesni-intel_glue.c by: * Copyright (C) 2008, Intel Corp. * 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...
#include <libstatic/libstatic.h> #include <elf.h> #include <sys/mman.h> #include <ulexec.h> #define ALLOCATE(size) \ linux_mmap(0, (size), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) /* call with argc as positive value for main's argv, * call with argc == 0 for env. */ struct saved_block * save_a...
/* ------------------------------------------------ Copyright 2014 AT&T Intellectual Property 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 Unle...
// // Created by hugo on 10/27/20. // #include "ultra-cp.h" #include <dirent.h> #include <fcntl.h> #include <libgen.h> #include <stdio.h> #include <string.h> #include <sys/sendfile.h> #include <sys/types.h> #include <time.h> #include <unistd.h> unsigned int flags = 0; ssize_t copy_file_wrapper(const char *out_file, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> int count; int check[100000]; int vnum; int B[100000]; typedef struct TreeNode{ int data; int dep; int childnum; int ExpecB[2][2]; // [i][j] = 자신의 상태가 i이고 parent의 상태가 j일 때, 자신 이하의 subtree에서 나오는 Beauty value의 가ㅄ int done; struct TreeNod...
/* * dump_data.c * * Created on: Jan 12, 2018 * by: <NAME> */ #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include "../dpi_tool.h" #include "../../../lib/malloc_ext.h" #include "../../../lib/memory.h" typedef struct pcap_dump_context_struct{ FILE *file; const pcap_dump_conf_t *config; ...
#include<stdio.h> #include<string.h> int peek(FILE *file); int peek(FILE *file) { int c; c = getchar(); ungetc(c,file); return c; } void alphaToMorse(char*, char*); void morseToAlpha(char*, char*); void morseToAlpha(char *infilename, char* outfilename) { FILE *file, *outfile; file = ...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * TI LP5562 driver. */ #include "console.h" #include "i2c.h" #include "lp5562.h" #include "timer.h" #include "util.h" /* 8-bit I2C address */...
//From standard library #include <stdbool.h> #ifndef __KERNEL__ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include <fcntl.h> #else #include <linux/module.h> #include <linux/types.h> #inc...
/** @file interface.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "data.h" #include "interface.h" #include "logic.h" #include "linked_lists.h" #include "algorithms.h" int CMD(STATE *s) { char command[BUF_SIZE]; int pos_cap = 0; do { prompt(s); if(fgets(command, B...
#include "sift.h" /******************************** Author: <NAME> ********************************/ extern int dFCount; F2D * resizeArray(F2D *array, int omin) { F2D *prev = ((void *) 0); F2D *current = array; int o; if(omin < 0) { for(o = 1; o >= -omin; o--) { prev = current; curre...
/* ** Copyright 2005-2019 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of version 2 of the GNU General Public License ...
/** * Copyright (C) Mellanox Technologies Ltd. 2017-2018. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ #include "cuda_copy_md.h" #include <string.h> #include <limits.h> #include <ucs/debug/log.h> #include <ucs/sys/sys.h> #include <ucs/debug/memtrack.h> #include <ucs/type/class.h> #include <cuda_runtime.h...
/*System includes*/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> /*GSL includes*/ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_integration.h> #include <gs...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ *...
/* This code is described in "Computational Geometry in C" (Second Edition), Chapter 7. It is not written to be comprehensible without the explanation in that book. Compile: gcc -o segseg segseg.c (or simply: make) Written by <NAME>. Last modified: November 1997 Questions to <EMAIL>. ------------------------------...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* trace_ray.c :+: :+: :+: ...
/* tls_kt_WServerKeyExchance.c Copyright: Copyright 2002-2007, SafeNet Inc. All rights reserved. All rights reserved. */ #include "sshtlskextrans.h" #include "sshmp.h" struct WhileSignRec { SshTlsProtocolState state; unsigned char *data; size_t sigoff; }; static void tls_kt_wsk_sign_done(SshCr...
/* 1)Create the Socket 2)Bind the socket to particular address & port 3)Listen for incoming connection 4)Accept the connection */ #include <sys/socket.h> #include <sys/types.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <stdarg.h> #...
/* The mediastreamer library aims at providing modular media processing and I/O for linphone, but also for any telephony application. Copyright (C) 2001 <NAME> <EMAIL> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licens...
/* wt450 wireless weather sensors protocol * * Tested devices: * WT260H * WT405H * * Copyright (C) 2015 <NAME> * Copyright (C) 2015 <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 Foundatio...
/* * This file is part of DroneBridge: https://github.com/seeul8er/DroneBridge * * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
/* ** Copyright 2014-2016 The Earlham Institute ** ** 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...
/* * Copyright (c) 2003 <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 list of...
/* * Copyright 2019, Cypress Semiconductor Corporation or a subsidiary of * Cypress Semiconductor Corporation. All Rights Reserved. * * This software, associated documentation and materials ("Software"), * is owned by Cypress Semiconductor Corporation * or one of its subsidiaries ("Cypress") and is protec...
// SPDX-License-Identifier: GPL-2.0+ /* * vsp1_lif.c -- R-Car VSP1 LCD Controller Interface * * Copyright (C) 2013-2014 Renesas Electronics Corporation * * Contact: <NAME> (<EMAIL>) */ #include <linux/device.h> #include <linux/gfp.h> #include <media/v4l2-subdev.h> #include "vsp1.h" #include "vsp1_dl.h" #incl...
/********************************************************************************************************************** * Instituto Superior Técnico - LEIC-A/2006 - Sistemas Operativos * * Ano Letivo 2016/2017 - 1o. Semestre - Projeto - Ex...
/*-----graph.c-----*/ #include<stdio.h> #include<string.h> #include<stdlib.h> int nodeNumber=0;//global variable int countFile=0;//global Variable struct node { int nodeNo; char content[1000]; char type[15];//Sequential,processing,condition,data,incremental,initialization,processing struct node *next; struct...
/* * Accept a connection from a communications client */ #ifndef __WIN32__ #include <errno.h> #include <netinet/tcp.h> #include <unistd.h> #endif #include "trick/tc.h" #include "trick/tc_proto.h" #include "trick/trick_byteswap.h" int tc_accept_(TCDevice * listen_device, TCDevice * device, const char *file, int li...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/******************************************************************************* * main.c * * ====== * * ...
/***************************************************************************** * cmds_input.c * this file is part of https://github.com/ouistiti-project/putv ***************************************************************************** * Copyright (C) 2016-2017 * * Authors: <NAME> <<EMAIL>> * * Permission is he...
/* (C) <NAME> <<EMAIL>> */ #include "math.h" #include <m_pd.h> /* ----------------------------- moog ----------------------------- */ static t_class *moog_class; typedef struct _moog { t_object x_obj; t_pd in2; t_float x_1,x_2,x_3,x_4; t_float y_1,y_2,y_3,y_4; } t_moog; static void moog_reset(t...
#include <assert.h> #include <stdbool.h> #include <string.h> #include <strings.h> #include "../src/xoodoo_internal.h" #include "xoodyak.h" #include "keyed_xoodyak.h" #include "hash.h" #include "aead.h" static void test_xoodoo(void); static void test_xoodyak_hash(void); static void test_xoodyak_aead(void); static vo...
/* graphics.c */ #include <PalmOS.h> #include "Rsc.h" #include "debug.h" #include "graphics.h" #include "tetris.h" // List of bitmaps typedef enum { block_id_red=0, block_id_green, block_id_blue, block_id_yellow, block_id_cyan, block_id_magenta, block_id_grey, block_sid_red, block_sid_green, bloc...
#pragma once #include <3ds.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <xmp.h> #include "error.h" #include "fastmode.h" #include "linkedlist.h" #include "sndthr.h" #include "song_info.h" #include "songhandler.h" #include "songview.h" #include "config.h" void Player_AptHook(APT_HookType hook,...
#include "engine_rect_cleanup_test.h" #include "array_list.h" #include "render_rect.h" #include "constants.h" #include "render_context.h" #include "platform_adapter.h" #include "engine_log.h" #include "random.h" #include "string_builder.h" void engine_rect_cleanup_test_fill_canvas(uint8_t *canvas, ArrayList *squares) ...
/* * HwMUX.cpp * * High level abstraction for muxing across boards */ #include <Arduino.h> // Contains types #include <errno.h> // -EINVAL and friends #include <Mux.h> #include "variant.h" // Contains board specific data to drive muxing options #include "sysfs.h" #include <trace.h> #define MY_TRACE_PREFIX "mu...
// SPDX-License-Identifier: BSD-3-Clause // //Copyright(c) 2021 AMD. All rights reserved. // // Author: <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> #include <sof/audio/component.h> #include <sof/drivers/acp_dai_dma.h> #include <sof/drivers/interrupt.h> #include <sof/lib/alloc.h> #include <sof/lib/dai.h>...
/* * largestNumber.c * * Created on: Mar 30, 2019 * Author: Abdelrahman */ #include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned long int uint; char* largestNumber(uint n, uint *ptr, char *ptrResult); uint IsGreater(uint a, uint b); void mergeSort(uint *ptr, int l, int...
/** * @file ledd_client.c * * Copyright (c) 2016 Parrot S.A. * 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 * not...
/* * Copyright (c) 2015 <NAME>. All rights reserved. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> #include <sys/uio.h> #include "buffer.h" struct buffer_pool { int maxsize; int allocs; int size; struct buffer head; struct buffer *tai...
#include "malloc.h" #define CHIPS_IMPL #include "probe.h" #include "chips/m6502.h" #include "chips/m6526.h" #include "chips/m6569.h" #include "chips/m6581.h" #include "chips/beeper.h" #include "chips/kbd.h" #include "chips/mem.h" #include "chips/clk.h" #include "systems/c1530.h" #include "chips/m6522.h" #include "s...
/* * Copyright (c) 2012-2013 Los Alamos National Security, LLC. * All rights reserved. * Copyright (c) 2013-2015 Intel, Inc. All rights reserved * Copyright (c) 2012-2014 The University of Tennessee and The University * of Tennessee Research Foundation. All rights ...
/* -------------------------------------------------------------------------- * Copyright (c) 2013-2016 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. *...
/* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The OpenAirInterface Software Alliance licenses this file to You under the OAI Publi...
/* * tc_stab.c "tc qdisc ... stab *". * * 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. * * Authors: <NAME>...
#include <stdio.h> #include <stdlib.h> #include <pcap.h> #include "common.h" #include "arp.h" #define PAUSE \ printf("Press any key to continue..."); \ fgetc(stdin) /* * mainProc() * * Sending an arp reque...
/* ============================================================================ Name : test_io_put.c Author : Qiniu.com Copyright : 2012 Shanghai Qiniu Information Technologies Co., Ltd. Description : Qiniu C SDK Unit Test ============================================================================ ...
/* 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...
static void gp_operator(const u32 len, f64* out, f64* in, const u32 component_count, f64* wf, void* userdata) { SBMF_UNUSED(in); for (u32 i = 0; i < len; ++i) { out[i] = 0.0; for (u32 j = 0; j < component_count; ++j) { f64* g = userdata; f64 c = fabs(wf[j*len + i]); out[i] += g[j]*c*c; } } } struct n...
/************************************************************************* * libsaim 1.0 * ------------------------------------------------------------------------ * Copyright (c) 2016 <NAME> <<EMAIL>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be ...
#include "../inc/HistGen.h" #include <stdint.h> #include <limits.h> #include <stdlib.h> struct histGen* createGen(uint64_t* histogram, uint32_t n) { if(n == UINT32_MAX) { //We need an extra bin to ensure perfectly rectangular histogram return NULL; } struct histGen* gen = (struct histGen *)malloc(sizeof(struct ...
#include "CuTest.h" #include "sonLib.h" #include "cactus.h" #include "stPinchGraphs.h" #include "rescue.h" // Get a little-endian bed region array as an mmaped coverage array // would appear. static bedRegion *getBedRegionArray(int64_t name, bool *coverageArray, int64_t length, bedR...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/uio.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #define BYTESOFSECTOR 512 // 함수 선언 int AdjustInSectorSize( int iFd, int iSourceSize ); void WriteKernelInfomation( int iTargetFd, int iKernelSectorCount, int iKernel32Sector...