text
stringlengths
5.8k
28.2k
/* * (C) Copyright 2001 * <NAME>, Nexus Technologies, Inc. <EMAIL> * * (C) Copyright 2001-2004 * <NAME>, DENX Software Engineering, <EMAIL>. * * (C) Copyright 2003 * Texas Instruments, <www.ti.com> * <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This progr...
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program 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 Software Foundation. * * This program is distributed...
/* * 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...
/* config.c: Loading and processing of config file Copyright (c) 2012-2016, <NAME> <EMAIL>, www.retrocmp.com 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 wi...
/*------------------------------------------------------------------------- * * bgwriter.c * * The background writer (bgwriter) is new as of Postgres 8.0. It attempts * to keep regular backends from having to write out dirty shared buffers * (which they would only do when needing to free a shared buffer to read ...
# include "jam.h" # include "lists.h" # include "variable.h" # include "expand.h" # include "pathsys.h" # include "newstr.h" # include <assert.h> /* * expand.c - expand a buffer, given variable values * * External routines: * * var_expand() - variable-expand input string into list of strings * * ...
#include <stdint.h> #include <stdlib.h> typedef unsigned char uchar; typedef uchar byte; typedef unsigned int uint; typedef int32_t int32; typedef uint32_t uint32; typedef int64_t int64; typedef uint64_t uint64; typedef struct Ms Ms; typedef struct Job Job; typedef struct Tube ...
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. 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 retai...
#include <malloc.h> #include <sba/sba.h> #include "poser.h" #include "survive_imu.h" #include <survive.h> #include "assert.h" #include "linmath.h" #include "math.h" #include "poser_general_optimizer.h" #include "string.h" #include "survive_cal.h" #include "survive_config.h" #include "survive_reproject.h" typedef str...
/* Copyright 2018 - 2021, MIT Lincoln Laboratory % SPDX-License-Identifier: BSD-2-Clause */ #define _USE_MATH_DEFINES /* Use definitions defined in math.h */ #include <stdlib.h> #include <math.h> #include "mex.h" #include "matrix.h" #include "minmax.h" /* Input Arguments */ #define I_in prhs[0] /* initial AC1 */ #de...
/*- * Copyright (c) 2016 <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 * notice, this list of conditions and the followi...
/* * jcmaster.c * * Copyright (C) 1991-1997, <NAME>. * Modified 2003-2019 by <NAME>. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains master control logic for the JPEG compressor. * These routines ar...
/* * Intel CHT Whiskey Cove PMIC I2C Master driver * Copyright (C) 2017 <NAME> <<EMAIL>> * * Based on various non upstream patches to support the CHT Whiskey Cove PMIC: * Copyright (C) 2011 - 2014 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or * modify ...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* $Id: stp222x-timer.c,v 1.3 2010/06/05 14:38:00 fredette Exp $ */ /* ic/stp22xx/stp222x-timer.c - emulation of the timers of the UPA to SBus interface controller (STP2220) and the UPA to PCI interface controller (STP2222): */ /* * Copyright (c) 2009 <NAME> * All rights reserved. * * Redistribution and use...
/* vi: set sw=4 ts=4: */ /* * arping.c - Ping hosts by ARP requests/replies * * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * * Author: <NAME> <<EMAIL>> * Busybox port: <NAME> <<EMAIL>> */ //#include <sys/ioctl.h> //#include <signal.h> #include <arpa/inet.h> #include <net/if.h>...
/* * copyright (c) 2007 <NAME> <<EMAIL>> * * some optimization ideas from aes128.c by <NAME> * * This file is part of Libav. * * Libav 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 * ...
/* ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for ** distribution information. */ #if HAVE_CONFIG_H #include "config.h" #endif #include "rfc2045.h" #include "rfc2045charset.h" #if HAVE_UNISTD_H #include <unistd.h> #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string...
/* $OpenBSD: schizo.c,v 1.16 2003/06/24 21:54:39 henric Exp $ */ /* * Copyright (c) 2002 <NAME> (<EMAIL>) * Copyright (c) 2003 <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...
/****************************************************************************** * Copyright (c) 2016, NECST Laboratory, Politecnico di Milano * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
#include "jmesh_provisioning.h" #include "../../onchip_system/os_timer_event.h" #include "../../onchip_system/os_core.h" #include"../../driver/jmesh_system.h" #include"../../jmesh/jmesh_types.h" #include"../../jmesh/jmesh_print.h" #include"../../secure/AES_CMAC/toolbox/security_kn.h" uint8_t LEN_PROVISION_PARAMETERS[]...
/****************************************************************/ /* loadsave.sol.c /* load an euslisp source code file /* load a binary object file /* save current running image to a file /* /* (c) T.Matsui, 1986 /****************************************************************/ static char *rcsid="@(#)$Id$"; #inclu...
#include "poly_mul.h" #include <stdint.h> #include <string.h> #define SCHB_N 16 #define N_RES (SABER_N << 1) #define N_SB (SABER_N >> 2) #define N_SB_RES (2*N_SB-1) #define KARATSUBA_N 64 void evaluation_single(const uint16_t *b, uint16_t sw[7][64]){ // for precomputing B uint16_t r0, r1, r2, r3, r4, r5, r6, r7;...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
/* $OpenBSD: rgephy.c,v 1.29 2008/09/17 07:19:19 brad Exp $ */ /* * 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: * 1. Redistributions of source co...
/***************************************************************************//** * @file * @brief Attribute definitions for the Test Harness plugin. ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ********...
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include "hashtable_gs.h" #include "kdtree.h" #include "dirfibheap.h" //The starting point for generating the partition void buildKDTree(Graph * theGraph) { //each cell gets an id, here we initialize to 0 cellGlobalCounter = 0; kdtree = buildVertexArrayAndG...
/* * 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 Public Lic...
#include <signal.h> #include <mosquitto.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #define LOGGER 1 #include "dsmr-p1-parser/logmsg.h" #include "dsmr-p1-parser/p1-lib.h" #define VERSION "0.1" #define GIT_VERSION "n/a" #define DSMR_EQUIPMENT_ID "dsmr/reading/i...
/************************************************************************** This ugly, sparsely-commented program is the source for text2pdf version 1.1. It should be ANSI-conforming and compile on most platforms. You'll need to change LF_EXTRA to 1 for machines which write 2 characters for \n. These include PCs, of ...
/* * Copyright (c) 2012-2017 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify,...
/* sendkey.c - fake keystroke. */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2009 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either...
/* Copyright (C) 2020 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial appl...
/* * The MIT License (MIT) * * Copyright (c) 2018, hathach (tinyusb.org) * * 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...
// Generated by HLC 4.2.1 (HL v4) #define HLC_BOOT #include <hlc.h> #include <h3d/impl/TextureCache.h> #include <h3d/mat/Texture.h> vdynamic* hl_types_ArrayObj_pop(hl__types__ArrayObj); void h3d_mat_Texture_dispose(h3d__mat__Texture); #include <h3d/mat/TextureFlags.h> void hl_types_ArrayObj___expand(hl__types__ArrayOb...
#ifndef lint static const char RCSid[] = "$Id: falsecolor.c,v 3.10 2011/05/20 02:06:38 greg Exp $"; #endif /* * False color mapping functions. * See falsecolor.h for detailed function descriptions. * * Externals declared in falsecolor.h */ #include "copyright.h" #include <stdio.h> #include <math.h> #include <str...
/** * @copyright * ==================================================================== * 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. ...
/** * Code to compute the bounding box of a DLM display list. * Matrix commands in the display list are observed to properly * transform the vertices we find. */ #include <float.h> #include "cr_dlm.h" #include "cr_mem.h" #include "cr_spu.h" #include "cr_glstate.h" #include "dlm.h" static CRMatrixStack ModelViewS...
/* * Ebizzy - replicate a large ebusiness type of workload. * * Written by <NAME> <<EMAIL>> * * Copyright 2006 - 2007 Intel Corporation * Copyright 2007 <NAME> <<EMAIL>> * * <NAME> <<EMAIL>> - HP/BSD/Solaris port and some * new features * * This program is free software; you can redistribute it and/o...
/******************************************************** * Engine is our container for our main program logic * * This allows us to only place code in main.c that * interacts with the user through our framework and * thus change framework if needed. * ********************************************************/ ...
/*************************************** OSM router using libroutino library. Part of the Routino routing software. ******************/ /****************** This file Copyright 2008-2016 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Publi...
/** * RC Translation - RC@IST/UL * User client - RC45179 16'17 * * @author: <NAME> (ist181045) * @author: <NAME> (ist181586) * @author: <NAME> (ist181700) */ /* Headers */ #include <arpa/inet.h> #include <errno.h> #include <libgen.h> #include <limits.h> #include <netdb.h> #include <netinet/in.h> #include <stdbo...
#include "common/cmd_channel_impl.h" #include "common/debug.h" #include "common/devconf.h" #include "common/guest_mem.h" #include "common/ioctl.h" #include "common/socket.h" #include "common/cmd_handler.h" #include "memory.h" #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/socket.h> #include <linux/vm_sock...
#include "MSPd.h" #include "fftease.h" #if MSP void *ether_class; #endif #if PD static t_class *ether_class; #endif #define OBJECT_NAME "ether~" /* Added a new inlet for the composite index */ typedef struct _ether { #if MSP t_pxobject x_obj; #endif #if PD t_object x_obj; float x_f; #e...
// SPDX-FileCopyrightText: Copyright (c) 2019-2021 Virginia Tech // SPDX-License-Identifier: Apache-2.0 #ifndef __KERNEL__ #include "timestone.h" #else #include <linux/timestone.h> #endif #include "util.h" #include "debug.h" #include "port.h" #include "ckptlog.h" #include "nvm.h" #include "clock.h" #include "qp.h" i...
/****************************************************************** * dcv_deconv_2D * Deconvolution program * * spdiv => Direct spectral division * wiene => Wiener filter * tikho => Tikhonov regularisation * maxen => Maximum Entropy method * * JLP * Version 17/04/2006 *********************************************...
/** @file fat_de.c @author <NAME> @date 23 November 2010 @brief FAT filesystem directory entry operations. */ #include <string.h> #include <ctype.h> #include "fat_de.h" #include "fat_cluster.h" #include "fat_io.h" /* Size of a winentry. */ #define WIN_CHARS 13 #define SLOT_EMPTY ...
#include "finders.h" #include "villagePosList.h" #include <assert.h> #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <math.h> // global constants const int MC = MC_1_16; const int REGION_LENGTH = 512; // configurable // (discrepancy < SEARCH_WIDTH && villageAngleIsBetween) || (villageDistanceFro...
/* * Copyright (C) 2010 The Android Open Source Project * * 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 app...
/* _ (_ _)UDOKU Authored by abakh <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain De...
/* Reserve 128 bits. Y,U,V,d, Pa,Pb,Pc,Pd d==0: Flat or Special Pa==0: Flat Pa==1: 2x2x2bpp Pb=Diff Pc=Pixel Bits Pa==2: 4x4x1bpp Pb=Diff Pc/Pd=Pixel Bits Pa==3: Skip (No Translate) Pa==4: Skip+Translate Pc=Y Offset Pd=X Offset */ #include <bteifgl.h> int clamp255(int i) { return((i<0...
/* IBM Corporation */ /* 01/02/2003 Port to LTP <EMAIL> */ /* 06/30/2001 Port to Linux <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...
// // Created by jw910731 on 2021/6/12. // #include "shell.h" #include "game.h" #include "game_sp/game_sp.h" #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <readline/readline.h> #include <readline/history.h> static int8_t ava_role; // ...
/* * 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 must retain the above copyright * notice, this list of conditions a...
/** ****************************************************************************** * @file LwIP/LwIP_TCP_Echo_Client/Src/ethernetif.c * @author MCD Application Team * @brief This file implements Ethernet network interface drivers for lwIP *****************************************************************...
#ifdef TASE_TEST #include "../../../../test/other/tasetraps.h" #endif /* cksum -- calculate and print POSIX checksums and sizes of files Copyright (C) 1992-2020 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
// SPDX-License-Identifier: BSD-3-Clause // // Copyright(c) 2019 Intel Corporation. All rights reserved. // // Author: <NAME> <<EMAIL>> // Author: <NAME> <<EMAIL>> /* Core IA host SHIM support for Baytrail audio DSP. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h>...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
/* * QEMU Executable loader * * Copyright (c) 2006 <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...
/* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape * media and as a part of the software program in whole or part. Users * may copy or modify Sun RPC without charge, but are not authorized * to license or distribute it to an...
/* * 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, Intel 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. Redistributions of s...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
/* * (C) 2003-15 - ntop * * 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, distribut...
/* Unix SMB/Netbios implementation. Version 1.9. read/write to a files_struct Copyright (C) <NAME> 1992-1998 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 ...
/* * Copyright (C) 2014 <NAME> <<EMAIL>> * * This file is part of libswf. * * 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 appear in all copies. * * THE SOFTWARE IS PR...
#include "mariost.h" #include "battle/battle.h" #include "drv/animdrv.h" #include "drv/arcdrv.h" #include "drv/bgdrv.h" #include "drv/camdrv.h" #include "drv/casedrv.h" #include "drv/dispdrv.h" #include "drv/effdrv.h" #include "drv/envdrv.h" #include "drv/extdrv.h" #include "drv/fadedrv.h" #include "drv/hitdrv.h" #in...
/* * Copyright (C) 2011 Red Hat, Inc. * * 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. * * This librar...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * Copyright (c) 2012, LiteStack, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
/*------------------------------------------------------------------------- * * bufpage.c * POSTGRES standard buffer page code. * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /...
#include <config.h> #include <stasis/util/ringbuffer.h> #include <stasis/util/min.h> #include <stasis/util/latches.h> #include <assert.h> #include <sys/mman.h> #include <stdio.h> /** * A ring buffer implementation. * * This file implements a ring buffer. Reads and writes are to * contiguous regions, and are z...
/* Copyright (C) 1988-2013 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information. */ /* Authored by <NAME> */ #include <stdio.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <limits.h> #include "gabufr.h" #ifndef GABUFR_TBL_DEBUG #define GA...
/* ============================================================================ * Project Name : ezbox Configuration Daemon * Module Name : pop_etc_fonts.c * * Description : ezbox /etc/fonts/fonts.dtd & /etc/fonts/fonts.conf file generating program * * Copyright (C) 2008-2013 by ezbox-project ...
/***********************************/ /* SPICE Modeling for VPR */ /* <NAME>, EPFL/LSI */ /***********************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <sys/stat.h> #include <unistd.h> /* Include vpr...
// SPDX-License-Identifier: GPL-2.0 /* * FB driver for the WiseChip Semiconductor Inc. (UG-6028GDEBF02) display * using the SEPS525 (Syncoam) LCD Controller * * Copyright (C) 2020 Xilinx Inc. */ #include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> #include <spi.h> #inc...
#include <string.h> #include "clint.h" enum {NONE = -1, DISALLOWED, REQUIRED}; static int after_control; static int before_control; static int before_comma; static int after_comma; static int after_left_paren; static int before_right_paren; static int after_left_square; static int before_right_square; static int bef...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include "class_binder.h" #ifdef _MSC_VER # pragma warning(disable : 4204) #endif /* _MSC_VER */ struct aws_napi_class_info_impl { const struct aws_napi_method_info *ctor_method; napi_ref...
/* * Z80SIM - a Z80-CPU simulator * * Common I/O devices used by various simulated machines * * Copyright (C) 2014-2019 by <NAME> * * Emulation of an IMSAI FIF S100 board * * History: * 18-JAN-2014 first working version finished * 02-MAR-2014 improvements * 23-MAR-2014 got all 4 disk drives working * ...
#include<context.h> #include<memory.h> #include<schedule.h> #include<apic.h> #include<lib.h> #include<idt.h> static u64 numticks; static void save_current_context() { /*Your code goes in here*/ } static void schedule_context(struct exec_context *next) { /*Your code goes in here. get_current_ctx() still returns ...
#define _GNU_SOURCE #include <sys/types.h> #include <stdio.h> #include <stdarg.h> #include <time.h> #include <errno.h> #include <unistd.h> #include <signal.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <sys/socket.h> #include <sys/fcntl.h> #include <sys/stat.h> #include <netdb.h> #include <sys...
/* This code solve the dimensionless form of the isothermal Navier-Stokes-Korteweg equations as presented in: <NAME>, <NAME> Isogeometric analysis of the isothermal Navier-Stokes-Korteweg equations CMAME, 2010 Equation/section numbers reflect this publication. */ #include "petiga.h" #define S...
#include "cabin.h" #include "attributes.h" #include "jni.h" #include "meta.h" #include "object.h" typedef struct exception_table ExceptionTable; void exception_table_init(ExceptionTable *et, Class *clazz, BytecodeReader *r) { et->start_pc = bcr_readu2(r); et->end_pc = bcr_readu2(r); et->handler_pc = bcr_...
#include "player.h" #include <gme.h> static const float short_frac = 1.f / 0x8000; static t_symbol *s_mask; /* ------------------------- Game Music Emu player ------------------------- */ typedef struct { t_player z; Music_Emu *emu; gme_info_t *info; /* current track info */ t_symbol *path; /* path to the mo...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/kadm5/str_conv.c */ /* * Copyright (C) 1995-2015 by the Massachusetts Institute of Technology. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
/** Author and Copyright 2017 <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 agree...
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. */ #include <stdbool.h> #include "../modbusCommon.h" #include "mt3620-baremetal.h" #include "mt3620-gpio.h" #include "mt3620-uart.h" // This is the physical TX FIFO size, taken from the datasheet. // To adjust the size of...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "heap.h" #include "util.h" #define BUFSZ 4096 #define S_BUFSZ 256 #define MAXCHARS 264 #define SP_EOF 258 #define COMPRESSED_OUT "compressed" #define DECOMPRESSED_OUT "decompressed" #define HUFFMAN_HEADER 0xdddddddd enu...
/* ============================================================================ * Copyright (c) 2013 <NAME> (Purdue 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: * * Redistrib...
/* * This file is part of libbluray * Copyright (C) 2009-2010 <NAME> * Copyright (C) 2012-2013 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * versio...
/*- * Copyright (c) 2018, 2019 Rubicon Communications, LLC (Netgate) * * 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 (c) 2000 <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) * ...
#include <pebble.h> #include "calibrate_page.h" static Window *calibrate_window = NULL; static GRect window_frame; static Layer *text_layer; static Layer *graph_layer; static Layer *icon_layer; static int16_t weight; #pragma pack(4) static Measurement calibrations[MAX_CALIBRATIONS]; int16_t calibrations_count; floa...
/* $OpenBSD: client.c,v 1.103 2015/10/23 14:52:20 phessler Exp $ */ /* * Copyright (c) 2003, 2004 <NAME> <<EMAIL>> * Copyright (c) 2004 <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 n...
/* -*- Mode: C; c-file-style: "stroustrup" -*- */ /* * Implementation of Federal Information Processing Standards Publication * FIPS 180-1 (17 Apr 1995) which supersedes FIPS 180 (11 May 1993) * * Speed hack version optimised for speed (see also reference version) * uses macros so you need to recompile, not just ...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * This notice applies to any and all portions of this file * that are not b...
/** * * Copyright (c) 2017-2020, King Abdullah University of Science and Technology * All rights reserved. * * ExaGeoStat is a software package provided by KAUST **/ /** * * @file examples.c * * * * @version 1.0.0 * * @author <NAME> * @date 2020-01-19 * **/ #include "examples.h" void set_args_de...
#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...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // dahash - function definitions // A dahash hashtable consists of a control block (an instance of dahash_table_t) which // records all the properties of the table, and includes a link to a block of memory // representin...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <inttypes.h> #include <xcb/xcb.h> #include <xcb/xcb_ewmh.h> #include <xcb/xcb_icccm.h> #include <xcb/render.h> // This is for the wrappers #include <xcb/xcb_renderutil.h> #include <ft2build.h> #include FT_FREETYPE_H #include "../...
#include <string.h> #include <math.h> #include "mmpriv.h" #include "kalloc.h" static inline void mm_cal_fuzzy_len(mm_reg1_t *r, const mm128_t *a) { int i; r->fuzzy_mlen = r->fuzzy_blen = 0; if (r->cnt <= 0) return; r->fuzzy_mlen = r->fuzzy_blen = a[r->as].y>>32&0xff; for (i = r->as + 1; i < r->as + r->cnt; ++i) {...