text
stringlengths
7.55k
41.9k
/* * 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 ...
/* Copyright (c) 2015-2018, Linaro Limited * Copyright (c) 2020, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "odp_classification_testsuites.h" #include "classification.h" #include <odp_cunit_common.h> #include <odp/helper/odph_api.h> typedef struct cls_test_packet { odp_u3...
#include <stdlib.h> #include <stdio.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <assert.h> #include "Linker.h" #include "Elf.h" #include "elf/plt.h" #include "elf/got.h" #include "elf/reloc.h" #include "debug.h" /* * If the number of sections is greater than or equal to SHN_LORESERVE (...
/* * 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 distributed in the hope that it will be use...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/** * @file */ /****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the acco...
/* $Id: */ /* Convert VL table to VZ table, filter */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2007,2010 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; ...
#include "git-compat-util.h" #include "strbuf.h" #include "utf8.h" /* This code is originally from http://www.cl.cam.ac.uk/~mgk25/ucs/ */ struct interval { int first; int last; }; /* auxiliary function for binary search in interval table */ static int bisearch(ucs_char_t ucs, const struct interval *table, int ma...
/* objects - Additional object functions */ /* XLISP-STAT 2.1 Copyright (c) 1990, by <NAME> */ /* Additions to Xlisp 2.1, Copyright (c) 1989 by <NAME> */ /* You may give out copies of this software; for conditions see the */ /* file COPYING included with this distrib...
/* * Copyright 2017 People Power Company * * This code was developed with funding from People Power Company * * 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.apa...
/* * NIST SP800-38C compliant CCM implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: GPL-2.0 * * 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 Softw...
/* * Phoenix-RTOS * * Meterfs Library * * Copyright 2017, 2018, 2020 Phoenix Systems * Author: <NAME>, <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <errno.h> #include <sys/mount.h> #include <string.h> #...
/* * ASF file parser for DEMUXER v0.3 * copyright (c) 2001 A'rpi/ESP-team * * This file is part of MPlayer. * * MPlayer 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, ...
/* $OpenBSD: print-ip.c,v 1.45 2015/11/16 00:16:39 mmcc Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
/* * Copyright (C) 2021 Intel Corporation * SPDX-License-Identifier: MIT */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/mman.h> #include <glib.h> #define XC_WANT_COMPAT_MAP_FOREIGN_API 1 #include <xenctrl.h> xc_interface *xc; uint32_t domainid; typedef struct CPUSegment CPUSegment; ty...
/* * Copyright (c) 2019 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * This code uses concepts and configuration based on 'synth', by * <NAME> <<EMAIL>>, which was written in ada. * * Redistribution and use in s...
/*********************************************************************** * amara/xslt/functions/src/decimal_format.c ***********************************************************************/ static char module_doc[] = "\ Optimized functions for XSLT\n\ "; #include "Python.h" #define MODULE_NAME "amara.xslt.function...
/* read_bv.c This file defines a mex-Function to load an eeg-File from a location. data = read_bv(file, HDR, OPT); read_bv(file, HDR, OPT); / with opt.data and opt.dataPos set Arguments: file - Name of EEG file (.eeg) is appended) HDR - Information about the file (read from the *...
/*------------------------------------------------------------------------- * * xml.c * XML data type support. * * * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/backend/utils/adt/xml.c * *--------------...
/* ncdc - NCurses Direct Connect client Copyright (c) 2011-2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
/*! * \file gsm7.c * \author ichramm * * Created on December 9, 2010, 03:20 PM */ #include "gsm7.h" #include <stdlib.h> #include <string.h> static ucs4_t gsmToUnicode[] = { /* 0x00 */ 0x0040, /* COMMERCIAL AT */ /* 0x01 */ 0x00A3, /* POUND SIGN */ /* 0x02 */ 0x0024, /* DOLLAR SIGN */ /* 0x03 */ 0x00A5,...
/*// Tool to calculate word-word cooccurrence statistics // // Copyright (c) 2014 The Board of Trustees of // The Leland Stanford Junior University. 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...
// bit constants for DP_STATUS #define DP_STATUS_XBUS_DMA 0x001 // DMEM DMA mode is set #define DP_STATUS_FREEZE 0x002 // Freeze has been set #define DP_STATUS_FLUSH 0x004 // Flush has been set #define DP_STATUS_START_GCLK 0x008 // Unknown #define DP_STATUS_TMEM_BUSY 0x010 // TMEM i...
/* Copyright (c) 2013, Linaro Limited * Copyright (c) 2017, ARM Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <odp/api/std_types.h> #include <odp/api/pool.h> #include <odp_pool_internal.h> #include <odp_buffer_internal.h> #include <odp_packet_internal.h> #include <odp_ti...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> typedef struct R_type{ int func; int type; char oper[10]; } R_type; typedef struct I_type{ int opcode; int type; char oper[10]; } I_type; typedef struct J_type{ int opcode; char oper[10];...
/* * scanfw.c firewire CCI/EMI channel scanner * developed for mythbuntu MythTV 2008 by majoridiot * * incorporates code (c) by: <NAME>, <NAME> and <NAME>, et. al. * * Distributed as part of the mythbuntu distribution of * MythTV under GPL v2 and later. * * This Package is free software; you c...
/* * DrvLeg.c * * Created: 18/02/2018 21:58:46 * Author: berryer */ ////////////////////////////////////////INCLUDES////////////////////////////////////////////////// #include "Conf\ConfHard.h" #include "DrvTick.h" #include "DrvLeg.h" //#define DEBUG_WITHOUT_SERVOS_ON_LEGS /////////////////////////////////////...
/*- * Copyright (c) 1997 by <NAME> <<EMAIL>> * * ifs.c: modified iterated functions system for goom. * * 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 tha...
/* fastProgram.c - Test FastCGI program Copyright (c) All Rights Reserved. See details at the end of the file. Usage: fastProgram [switches] [endpoint] -a Output the args (used for ISINDEX queries) -b bytes Output content "bytes" long ...
/* * Copyright (c) 2001-2011 <NAME> (<EMAIL>) * * This source code is free software; you can redistribute it * and/or modify it in source code form 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) ...
// Copyright 2017 <EMAIL> // Licensed under the MIT license (http://opensource.org/licenses/MIT) #pragma once // Values country codes in HID Descriptors typedef enum { HID_COUNTRY_NONE = 0, HID_COUNTRY_ARABIC = 1, HID_COUNTRY_BELGIAN = 2, HID_COUNTRY_CANADIAN_BILIN...
static char help[] = "3D, bi-linear quadrilateral (Q1), displacement finite element formulation\n\ of linear elasticity, with anisotropy in the z-direction and a Robin-type lateral boundary condition.\n\ Unit square domain with Dirichlet boundary condition on the z=0 side in the z-direction only only.\n\ Load of 1.0 in...
/* Copyright 2008-2012 <NAME> Copyright 2008-2011 <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 t...
/* * @file: simple.c * @author: chenhaoran * chrH323 test *****************************************************************************/ #include "chrTypes.h" #include "chrTrace.h" #include "chrSocket.h" #include "chrCapability.h" #include "chrLogicalChannels.h" #include "chrChannels.h" #include "chrCallSession.h" #i...
/* * FIPS-180-2 compliant SHA-384/512 implementation * * Copyright (C) 2006-2007 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above co...
/* * Copyright 2008 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Copyright 2009 <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, includin...
#define _BSD_EXTENSION #define _POSIX_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <limits.h> #include <ctype.h> #include <string.h> #define NROFF (!TROFF) /* Site dependent definitions */ #ifndef TMACDIR #define TMACDIR "lib/tmac/tmac." #endif #ifndef FONTDIR #define FONTDIR "lib/f...
/* * WPA Supplicant - Basic mesh mode routines * Copyright (c) 2013-2014, cozybit, Inc. All rights reserved. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "utils/...
/** * Search PSSM procedure * Coded in C programming language (C99 standard) and MPI * Copyright (c) 2009 <NAME> * Affiliation: CBU, BCCS, UNIFOB AS, UiB, Berezovsky Group. */ /* INPUT: extracted.matrix: matrices in frequency format. the needles subject: the haystack. SCOP for example sear...
/* sqPlatformSpecific-Win32.c -- Platform specific interface implementation for Unix * * Copyright (C) 2016 by <NAME> * All rights reserved. * * This file is part of Minimalistic Headless Squeak. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and as...
#include "pysam.h" /* The MIT License Copyright (C) 2003-2006, 2008-2010 by <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without...
/* Copyright 2020 <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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
/** * Copyright (c) <NAME> <andreas[dot]fitzek[at]gmail[dot]com> * 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 no...
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 2007 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
/* * svnauthz.c : Tool for working with authz files. * * ==================================================================== * 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...
/* * libata-acpi.c * Provides ACPI support for PATA/SATA. * * Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 <NAME> */ #include <linux/ata.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/acpi.h> #include <linux/libata.h> #include <linu...
/* $OpenBSD: bog.c,v 1.20 2009/10/27 23:59:24 deraadt Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * Copyright (c) 2017 STMicroelectronics International N.V. * Al...
/* ep_finalize.c event processing code for MJD - up to 16 digitizer modules for the Ge detectors, plus - QDCs etc for the veto <NAME> Nov 2016 */ /* Close out processing of the events that have been handled by eventprocess() - write histograms to file - if there are enough data, also: - e...
/** * @file print.c Input event device info * * Copyright (C) 2010 <NAME> */ #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/input.h> #include <re.h> #include <baresip.h> #include "print.h" #define test_bit(bit, array) ...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * Abstract font dump. */ #include "absfont.h" #include <stdio.h> ...
/* ********************************************************************* INPUT1.C -- Input Functions for EPANET Program VERSION: 2.00 DATE: 5/30/00 9/7/00 11/19/01 6/24/02 2/14/08 (2.00.12) AUTHOR: <NAME> US EPA - NRMRL This...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: NPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Netscape Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the Lice...
/* * Control_program_frame.c * * Created on: 25 juli 2021 * Author: <NAME> */ #include "../Touch_screen.h" #include "../Hardware/ILI9341.h" #include "../../Functions.h" /* Holders for program */ static uint8_t prg = 0; static float program_parameters[20] = {0}; /* These parameters are only for specific pro...
#include <asf.h> #include <asf_meta.h> #include <asf_contact.h> #include <asf_license.h> #include <asf_test.h> #include <ceos.h> #include <asf_convert.h> #include <proj.h> #include <unistd.h> #include "CUnit/Automated.h" #include "CUnit/Basic.h" /*==================BEGIN ASF AUTO-GENERATED DOCUMENTATION===...
/* * Copyright (c) 2018, Commonwealth Scientific and Industrial Research * Organisation (CSIRO) * All rights reserved. */ /* Includes -------------------------------------------------*/ #include "FreeRTOS.h" #include "semphr.h" #include "task.h" #include "bma280.h" #include "bma280_device.h" #include "csiro_mat...
/* Diffuse Irradiance - cubemaps used for lighting in PBR are pre-computed because an integral needs to be solved by convolution - this lets us represent the full hemisphere of angles of radiance - they assume the centre of the cube is the surface being lit, which doesn't work well for things spread throughout an inter...
#include <u.h> #include <libc.h> #include <bio.h> #include <regexp.h> #include <thread.h> #include <fcall.h> #include <plumb.h> #include "plumber.h" enum { Stack = 32*1024 }; typedef struct Dirtab Dirtab; typedef struct Fid Fid; typedef struct Holdq Holdq; typedef struct Readreq Readreq; typedef struct Sendreq Sendr...
/* * Copyright (C) 2016-2017 Redis Labs * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This progra...
/* fpcosp.f -- translated by f2c (version 20190311). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
#include "mm.h" #include "config.h" static int free_page_number = TOTAL_PAGE_NUMBER; void receive_slub(unsigned long); void init_buddy_sys(){ for(int i=0;i<MAX_ORDER;i++){ INIT_LIST_POINTER(&page_buddy[i]); } } void print_buddy_info(){ for(int l = 0; l < MAX_ORDER; l++){ if(!is_list_empty(&page_buddy...
#include <stm32l1xx_rcc.h> #include <stm32l1xx_gpio.h> #include <misc.h> #include <spi.h> #include <sdcard.h> SDCard_TypeDef SDCard; // SD card parameters // Calculate CRC7 // It's a 7 bit CRC with polynomial x^7 + x^3 + 1 // input: // crcIn - the CRC before (0 for first step) // data - byte fo...
/* * Copyright (c) 2012, Intel Corporation * * 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 fol...
// Copyright (c) 2021 <NAME> #include <auxv.h> #include <common.h> #include <elf.h> #include <io.h> #include <syscalls.h> #include <stdbool.h> #include <stdint.h> // {{{ Global constans enum { // Hard-coded page size. // We assert against the `AT_PAGESZ` auxiliary vector entry. PAGE_SIZE = 4096, // ...
#include "add-load-save.h" #include "gfftypes.h" #include "narrate.h" #include "new-character.h" #include "popup.h" #include "view-character.h" #include "mouse.h" #include "port.h" #include "gff.h" #include "gff-char.h" #include "rules.h" #include "gpl.h" #include "player.h" #include "ds-load-save.h" #include "settings...
/* * journal.c --- code for handling the "ext3" journal * * Copyright (C) 2000 <NAME> * Copyright (C) 2000 <NAME> * * Parts of the code are based on fs/jfs/journal.c by <NAME> * Copyright (C) 1999 Red Hat Software * * This file may be redistributed under the terms of the * GNU General Public License version 2...
/* $OpenBSD: qereg.h,v 1.4 1999/03/12 18:56:18 jason Exp $ */ /* * Copyright (c) 1998 <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 ret...
/** @file text.c @brief This file contains dialogues processing. It contains text and font functions. TwinEngine: a Little Big Adventure engine Copyright (C) 2013 The TwinEngine team Copyright (C) 2008-2013 Prequengine team Copyright (C) 2002-2007 The TwinEngine team This program is free software; you can r...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <time.h> #define SEARCH_FAILURE 0xffffffffffffffff #define ROOT_ID 0xffffffffffffffff #define ENTRIES_PER_BLOCK (...
/* * $QNXLicenseC: * Copyright 2009, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute 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...
#include "libcheat.h" #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int a; int b; int c; } test_level3; typedef struct { int n[10]; test_level3 *l3[5]; } test_level2; typedef struct { int n[5]; test_level2 *l2[5]; } test_level1; typedef struct { int n[8...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include <lualib.h> #define s2s "s2s" #define DEBUG 0 #define DBG_MAQAO printf("function : %s line : %d\n",__FUNCTION__,__LINE__); typedef struct configLoop { int id; int line; char** label; i...
/******************************************************************** * FILE: cisml-sax.c * AUTHOR: <NAME> * CREATE DATE: 7 September 2010 * PROJECT: MEME suite * COPYRIGHT: 2010, UQ ********************************************************************/ #include <ctype.h> #include <errno.h> #include <limits.h> #i...
#include <stdint.h> #include "ece391support.h" #include "ece391syscall.h" #define BUFSIZE 6 // FUnction declerations void draw_pixel(uint32_t *screenBase, uint32_t screenWidth, uint32_t x, uint32_t y, uint32_t color); void draw_thick_line_vertical(uint32_t *screenBase, uint32_t screenWidth, uint32_t x1, uint32_t y1, ...
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 <NAME> * Copyright (C) 2009-2013 <NAME> * Copyright (C) 2010-2012 <NAME> * Copyright (C) 2010-2013 <NAME> * Copyright (C) 2012-2013 <NAME> * See AUTHORS file for a more comprehensive list of co...
/* <NAME> * Creation Date: 26/7/2019 * Latest Version: 26/7/2019 * ---------------------------------------------------------------------------- * This is the main source file for the AVL Trees library. * See the comments above each function definition for information about what * each one does. See the library he...
/* * Program: Mail library test program * * Author: <NAME> * Networks and Distributed Computing * Computing & Communications * University of Washington * Administration Building, AG-44 * Seattle, WA 98195 * Internet: <EMAIL> * * Date: 8 July 1988 * Last Edited: 7 April 2005 * * The IMAP toolkit pr...
#include "gl_utils.h" #include "apg_maths.h" #include "glcontext.h" #include <assert.h> #include <string.h> #define SHADER_BINDING_VP 0 #define SHADER_BINDING_VT 1 #define SHADER_BINDING_VN 2 /* 4th channel used to store 'heightmap surface' factor of 1 or 0 */ #define SHADER_BINDING_VC 3 #define SHADER_BINDING_VPAL_ID...
/* * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* rescoff.c -- read and write resources in Windows COFF files. Copyright 1997, 1998, 1999, 2000, 2003 Free Software Foundation, Inc. Written by <NAME>, Cygnus Support. This file is part of GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the G...
/* * dump mmcr of Elan520 uController (incomplete, see 22005b pg23+). * * Copyright 2005 <NAME> * Copyright 2006 coresystems GmbH * * 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...
/* * Open Surge Engine * brick.c - brick module * Copyright (C) 2008-2010, 2012 <NAME> <<EMAIL>martf(at)gmail(dot)com> * http://opensnc.sourceforge.net * * 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 Soft...
#include <stdint.h> #include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <cmocka.h> #include <string.h> #include "gene.c" #include "gene.h" static void test_generating_mRNA(void ** state){ // Test if the algorithm is OK unsigned short bin_dna_seq[16] = { 0,0,1,1,1,0,0,1 }; assert_string_equal("...
/** * @brief Main bootloader logic. * * Does all the heavy lifting after configuration options have * been selected by the user. Loads the kernel and ramdisk, * sets up multiboot structures, and jumps to the kernel. * * @copyright * This file is part of ToaruOS and is released under the terms * of the NCSA / U...
#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...
/* $OpenBSD: d1_srvr.c,v 1.88 2017/05/07 04:22:24 beck Exp $ */ /* * DTLS implementation written by <NAME> * (<EMAIL>) for the OpenSSL project 2005. */ /* ==================================================================== * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. * * Redistribution an...
/* * cdbfilerepresyncworker.c * * Copyright 2009-2010 Greenplum Inc. All rights reserved. * */ #include "postgres.h" #include <signal.h> #include <fcntl.h> #include "cdb/cdbvars.h" #include "cdb/cdbfilerep.h" #include "cdb/cdbfilerepprimary.h" #include "cdb/cdbfilerepprimaryrecovery.h" #include "cdb/cdbfilerep...
/* lzo_init.c -- initialization of the LZO library This file is part of the LZO real-time data compression library. Copyright (C) 1996-2002 <NAME> <NAME> All Rights Reserved. The LZO library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
// COMP2521 20T2 ... the Fury of Dracula // main_game_view.c: GameView ADT implementation #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <err.h> #include <math.h> #include <memory.h> #include <stdbool.h> #include <string.h> #include <sysexits.h> #include "Game.h" #include "GameView.h" #include "M...
/* * This software is derived from the software developed by <NAME> * and is available at http://github.com/mschwern/y2038. That software is * originally derived from Paul Sheer's pivotal_gmtime_r.c. * The code has been modified by <NAME> to incorporate several concepts * taken from Ruby 1.9.3, regarding the mappi...
#include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <shmem.h> #include <time.h> #include <sys/time.h> #include "mrg.h" #include "packed_edge.h" #include "utilities.h" #include "generator.h" static int pe = -1; static int npes = -1; volatile long long n_local_ed...
/* ############################################################################ Name : evaluation.c Company : ALCON 2009 Project : Finding Clones Programmer : ALCON 2009 Revisor : <NAME> Description : Evaluation Functions Procedure Description ========...
static bool collide_ray_plane(struct vec3 *_contact, const struct ray *ray, const struct plane *plane) { float t = 0.0f; // w = plane.p - ray.p // t = (plane.n * w) / (plane.n * ray.d) float denom = v3_dot(&plane->n, &ray->d); if (fabs(denom) > EPSILON) { ...
/* * viciivsid-fetch.c - Phi2 data fetch for the MOS 6569 (VIC-II) emulation. * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * ...
#line 185 "/home/zhy/work/test/splash2-master/codes/null_macros/c.m4.null.POSIX_BARRIER" #line 1 "main.C" /*************************************************************************/ /* */ /* SPLASH Ocean Code ...
/*********************************************************************** * * mexspbalance.c * ============== * * Sparse matrix balancing for Matlab. * * * License * ------- * * Copyright <NAME> <<EMAIL>> 2013 - 2016. Distributed * under the Boost Software License, Version 1.0; see below or copy at ...
/* * Copyright (c) 2017, <NAME>. * Copyright (c) 2022, <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 * ...
#include <stdio.h> #include <stdlib.h> struct Node{ int num; struct Node *prox; }; typedef struct Node node; int tamFilaDec, tamFilaAte; void inicia(node *FILA); int vazia(node *FILA); node *aloca(int IdAviao); void insere(node *FILA, int IdAviao); node *retira(node *FILA); int mandarPraPista(node *FILA); void ex...
#include "postgres.h" #include "lp_function.h" #include "utils/builtins.h" #include "utils/memutils.h" #include <limits.h> #include <funcapi.h> // TODO: Improvement: remove variables with zero factors /* ** Input/Output routines */ PG_FUNCTION_INFO_V1(lp_function_in); PG_FUNCTION_INFO_V1(lp_functio...
// Sudoku Solver #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <math.h> #include <string.h> #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_RESET "\x1b[0m" const int MAXDIMENSION = 16; // Max dimension of sudoku. >9 is experimental & known to be combinatorially explosive. ...