text
stringlengths
3.12k
18.7k
/* -*- mode: C; c-basic-offset: 3; -*- */ #include <setjmp.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> // isspace #include <fcntl.h> // open #include <unistd.h> // lseek #include <sys/stat.h> // S_IRUSR // This file determines s390x features a proce...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2006 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ /* We need to include the conf file first so that we can use the _SVID_SOURCE if needed before any file includes features.h on GNU systems */ #include "mpidi_ch3_conf.h" ...
/* * panel-a-1080p-14-0.c: Panel driver for a-1080p-14-0 panel. * * Copyright (c) 2013-2018, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Fr...
/* * * 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"); y...
/* * 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 2015 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. * * Power and battery LED control for Cyan. */ #include "battery.h" #include "charge_state.h" #include "chipset.h" #include "ec_commands.h" #include...
/* * $QNXLicenseC: * Copyright 2007, 2008, 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/LICEN...
// Copyright 2015-2018 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 a...
#include "samtools.pysam.h" /* bam.c -- BAM format. Copyright (C) 2008-2013, 2015 Genome Research Ltd. Portions copyright (C) 2009-2012 Broad Institute. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fi...
// Porres 2017 #include "m_pd.h" #include <math.h> #define PI 3.14159265358979323846 #define HALF_LOG2 log(2)/2 typedef struct _lowpass{ t_object x_obj; t_int x_n; t_inlet *x_inlet_freq; t_inlet *x_inlet_q; t_outlet *x_out; t_float x_nyq; int x_bypass; int...
/* * Mesa 3-D graphics library * * Copyright 2007-2008 VMware, Inc. * Copyright (C) 2010 LunarG 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 w...
// ============================================================================= // Program : test.c // Author : <NAME> // Date : Dec/09/2019 // ----------------------------------------------------------------------------- // Description: // This is the minimal time library for aquila. // --------------------...
/* Copyright libuv project contributors. 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 without restriction, including without limitation the * rights to use, cop...
/* +----------------------------------------------------------------------+ | Zend OPcache | +----------------------------------------------------------------------+ | Copyright (c) 1998-2016 The PHP Group | +---------...
/* Copyright 2015 <NAME> L.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 wri...
/* * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
/* Copyright (C) 2007 <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 appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
#include "lzw_mc.h" #include <stdint.h> #include <string.h> #include <stdbool.h> uint16_t lzw_mc_dictionary_total; uint8_t lzw_mc_dictionary[DICTIONARY_TOTAL_LENGTH]; uint16_t lzw_mc_dictionary_position; uint8_t lzw_mc_dictionary_sizes[DICTIONARY_LENGTH]; // a dictionary entry can't be greater than 256 chars uint1...
/* SC A Spreadsheet Calculator * Framed range manipulation * * <NAME> <<EMAIL>> * Originally created: December, 2000 * * $Revision: 7.13 $ */ #include <sys/types.h> #ifdef BSD42 #include <strings.h> #else #ifndef SYSIII #include <string.h> #endif #endif #include <stdio.h> #include <ctype.h> #include "sc.h...
/* Copyright 2020 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 <device.h> #include <drivers/bbram.h> #include <drivers/cros_system.h> #include <logging/log.h> #include "common.h" #include "console.h" ...
#include "mac.h" #include "irq.h" #include "type.h" #include "screen.h" #include "syscall.h" #include "sched.h" #include "test5.h" desc_t *send_desc; desc_t *receive_desc; uint32_t cnt = 1; //record the time of iqr_mac //uint32_t buffer[PSIZE] = {0x00040045, 0x00000100, 0x5d911120, 0x0101a8c0, 0xfb0000e0, 0...
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME>ung (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following condition...
/** * Copyright (C) 2013 <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 to...
#include <stdio.h> #include <string.h> #include <stdlib.h> //#include <unistd.h> // No Linux/Mac #include <windows.h> typedef struct { int codigo; char nome[30]; float preco; } Produto; typedef struct { Produto produto; int quantidade; } Carrinho; void infoProduto(Produto prod); void menu(); void cadastrarProdu...
/** Name and Member Use nodes. * @file * * This source file is part of the Cone Programming Language C compiler * See Copyright Notice in conec.h */ #include "../ir.h" #include <string.h> #include <assert.h> // A list of module names (qualifiers) typedef struct NameList { uint16_t avail; // Max. number o...
/* * Program to configuring the CAN controller * * Copyright (C) 2006 <NAME> <<EMAIL>> * * Copyright (C) 2005, 2006 <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 * t...
// UltrasoundLCDmain.c // Runs on MSP432 // Test the operation of the HC-SR04 ultrasonic sensor by // repeatedly taking measurements. For stand-alone // operation, the measurements are printed to the // Nokia 5110 LCD. // <NAME> // May 4, 2017 /* This example accompanies the book "Embedded Systems: Introduction to...
/* * Misc utility routines used by kernel or app-level. * Contents are wifi-specific, used by any kernel or app-level * software that might want wifi things as it grows. * * Copyright (C) 1999-2011, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement...
/****************************************************************************** * File Name : pay_flt_cnv.c * Date First Issued : 01/15/015 * Board : little endian * Description : Conversion to/from float to half-float IEEE-754 *********************************************************...
//========================================================= // src/InitDevice.c: generated by Hardware Configurator // // This file will be regenerated when saving a document. // leave the sections inside the "$[...]" comment tags alone // or they will be overwritten! //=================================================...
/* * tkUnixSelect.c -- * * This file contains X specific routines for manipulating selections. * * Copyright (c) 1995-1997 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "tk.h" #include "X1...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <signal.h> #include <math.h> #include <time.h> #include "memory.h" #include "frames.h" #include "v4l2uvc.h" #include "image_utils.h" #include "color_detect.h" #include "bitmap.h" #include "utils.h" #include "daemon.h" #include "settings.h" #define F...
/* heliocentric rectangular equatorial coordinates of Jupiter to Pluto; * from Chapront's expansion of DE200/extension of DE200; mean equator J2000.0 * * calculation time (milliseconds) on an HP 715/75, Jupiter to Pluto: * (each coordinate component counted as 1 term, * secular terms included for JD 2448908.5 = 1...
/* $NetBSD: pdqvar.h,v 1.27 2000/05/03 19:17:54 thorpej Exp $ */ /*- * Copyright (c) 1995, 1996 <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 s...
/* * Copyright (C) 2012 Freescale Semiconductor, Inc. * * The OPP code in function cpu0_set_target() is reused from * drivers/cpufreq/omap-cpufreq.c * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Fre...
/* * 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/ * * Software distributed under the License is distributed on an "AS * I...
/* * Copyright (c) 2017 Linaro Limited * Copyright (c) 2018-2019 Foundries.io * * SPDX-License-Identifier: Apache-2.0 */ #define LOG_MODULE_NAME net_lwm2m_obj_firmware #define LOG_LEVEL CONFIG_LWM2M_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <string.h> #include <init.h> #...
/* * pgetopt.c - Portable implementation of getopt() command line args parser, * originally made available by IBM and the authors listed below. * * Created on 8/8/08. * Portions of this document are Copyright (C) 2008, PlexFX, * All Rights Reserved. * * History: ...
/* W A L K _ E X A M P L E . C * BRL-CAD * * Copyright (c) 2004-2021 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * versio...
/* # Copyright 2021 Hewlett Packard Enterprise Development LP # # 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, m...
/****************************************************************************** GLSLparser.c <NAME> This source file provides functionality to parse OpenGL ES 2.0 shader programs and can automatically produce a set of vertex attributes. These attributes can then be bound more easily bound for rendering geometry. ...
/*- * Copyright (c) 2014-2015 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * Fast-delete support. * * This file contains most of the code that allows WiredTiger to delete pages * of dat...
/* * 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 ...
/* * blogc: A blog compiler. * Copyright (C) 2014-2019 <NAME> <<EMAIL>> * * This program can be distributed under the terms of the BSD License. * See the file LICENSE. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <dirent.h> #i...
/*- * Copyright (c) 2005-2009, <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 condit...
//================================= // Real time system //================================= // Missile Guidance // Name: <NAME> (Lor) // Summer 2018 //================================= // 1. Get the elapse time t_setup_drone. // 2. Do the calculations for the direction (angle) and speed of the drone. // The angle of...
/* cdwGetFile - given a file ID and a security token (skipped for public cirm site), send the file using Apache */ /* Copyright (C) 2016 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "...
/* * Copyright (c) 1980, 1986, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)pass5.c 8.9 (Berkeley) 04/28/95"; #endif /* not lint */ #include <sys/param.h> #include <sys/time.h> #include <ufs/ufs/dinode.h> #inclu...
/*- * Product specific probe and attach routines for: * Buslogic BT-54X and BT-445 cards * * Copyright (c) 1998, 1999 <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. R...
/* * Copyright (c) 2018, Exile Heavy Industries * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the disclaimer * below) provided that the following conditions are met: * * * Redistributions of source cod...
/* PipeWire * * Copyright © 2021 <NAME> <<EMAIL>> * Copyright © 2021 <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 limitatio...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> // Required Libraries #include <string.h> #include <ctype.h> // isalnum() #include <sys/types.h> // fork() execvp() waitpid() #include <sys/wait.h> // waitpid() // Defining Constants ...
/* * $QNXLicenseC: * Copyright 2008, 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...
/* * net/tipc/discover.c * * Copyright (c) 2003-2006, 2014-2015, Ericsson AB * Copyright (c) 2005-2006, 2010-2011, Wind River Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * ...
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* dbus-socket-set-epoll.c - a socket set implemented via Linux epoll(4) * * Copyright © 2011 Nokia Corporation * * Licensed under the Academic Free License version 2.1 * * This program is free software; you can redistribute it and/or modif...
#define EMB_USE_TIMING #include <ensemble.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #define Z 200 #define SHOWFENCE 1 #define USE_BARRIER 0 #define REPEAT 10000 #ifdef __TCS__ #include <tmlib/tmlibc.h> # define cache_malloc(length) _cache_malloc(length,-1) # define cache_free(ptr) _cache_f...
/* This file is used to log all of the issues found at the end of the scan */ #include "debug.h" #include "results.h" #include "main.h" #include "cJSON.h" #include "error_logger.h" #include "vector.h" #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include <sys/types.h> #include <string.h> #include ...
/* Header per funzioni e strutture utilizzate da: * Ristorante.c */ #define sizeSTRPort 9 #define SIZEPORT 5 #define BACKLOG_RISTORANTE 300 //dimensione della coda di attesa #define MAX_THREAD_RIDER 2 //Massimo numero di rider che il serverRis può gestire concorrentemente sem_t MutexThread; //Gestione della mu...
/** * Copyright (c) 2020 <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, modify, merge, pub...
/* * Functions for training the database to recognise spam. * * Copyright 2015 <NAME>, distributed under the Artistic License. */ #include "config.h" #include "mailbox.h" #include "spami.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <errno.h> void tick(void); /* * Tra...
/* $OpenBSD: kbd_wscons.c,v 1.25 2008/06/23 17:41:21 miod Exp $ */ /* * Copyright (c) 2001 <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 ...
#include <frbc2ci.h> FR2CI_LiteralInfo *FR2CI_DecodeStruct(FR2CI_Image *img, u32 fcc, byte *data, int dsz) { FR2CI_VarInfo *t_field[1024]; FR2CI_LiteralInfo *tmp; byte *cs, *cse; int sz, al; int i, j, k; tmp=FR2CI_AllocFR2CI_LiteralInfo(img); tmp->image=img; tmp->tag=fcc; tmp->field=t_field; tmp->n_field=...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "error.h" #include <unistd.h> #include <arpa/inet.h> #include <event2/util.h> #include <event2/event.h> #include <json-c/json.h> #include "modules.h" struct udp_packet_s { char data[2000]; ssize_t len; struct udp_packet_s *n...
/* * Copyright 2013 Freescale Semiconductor, Inc. * * Based on imx-sgtl5000.c * Copyright 2012 Freescale Semiconductor, Inc. * Copyright 2012 Linaro Ltd. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or late...
/* * Copyright 2010 <NAME> <<EMAIL>> * Copyright 2006-2010 The Apache Software Foundation * * 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/LICENS...
/* * Copyright (C) 2009-2019 <NAME> <<EMAIL>> * Copyright (C) 2017 <NAME> <<EMAIL>> * * Licence: wxWindows Library Licence, Version 3.1 */ #include "gumstalker.h" #include "fakeeventsink.h" #include "gumarm64writer.h" #include "gummemory.h" #include "testutil.h" #include <stdlib.h> #include <string.h> #define ...
/* Definitions for Intel 386 running Linux with ELF format Copyright (C) 1994, 1995 Free Software Foundation, Inc. Contributed by <NAME>. Modified for stabs-in-ELF by <NAME>. This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Publ...
#include "stdio.h" #include <stdint.h> #include <stdbool.h> #include "global_config.h" #include "global_build_info_time.h" #include "global_build_info_version.h" #include "libmaix_cam.h" #include "libmaix_disp.h" #include "libmaix_image.h" #include "libmaix_nn.h" #include "main.h" #include <sys/time.h> #include <unis...
/* Simple utility to make a single-image install kernel with initial ramdisk for Sparc tftpbooting without need to set up nfs. Copyright (C) 1996,1997 <NAME> (<EMAIL>) <NAME> <<EMAIL>> endian fixes for cross-compiles, 2000. Copyright (C) 2011 <NAME> <<EMAIL>> This program is free software; you can r...
// Copyright 2020 The Pigweed Authors // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <unistd.h> #include <time.h> #include "mtcp.h" #include "mos_api.h" #include "memory_mgt.h" #include "scalable_event.h" #define PROFILE_ON #include "profile.h" event_t g_first_ev = MOS_NULL_EVENT, g_last_ev = MOS_NULL_EVENT; int g_depth = 0; float g...
/* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2012 - 2019 Xilinx, Inc. All rights reserved. * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Sof...
/* vim: set sw=2 expandtab tw=80: */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "bme280/bme280_port.h" #include "bmi160/bmi160_port.h" #include "bmm150/bmm150_port.h" #include "opt3001/opt3001.h" #include <console.h> #include <i2c_master.h> #include <timer.h> char hell...
/***************************************************************************** * plasma test program for cc65. * * * * (w)2001 by groepaz/hitmen * * ...
// author <EMAIL> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <time.h> #include "macros.h" #include "pass.h" const char *cmd_options_available = "c:e:h:o:p:r:s:u:v:"; const char *cmd_options_help = "\ -c: channels (number of chan...
#include "lisp.h" #include "cell.h" /*** Macros ***/ #define Free(p) ((p)->car=CONTEXT_PTR->Avail, (p)->cdr=0, (p)->meta.type._t=UNDEFINED, CONTEXT_PTR->Avail=(p)) #if INTPTR_MAX == INT32_MAX #include "def32.d" #elif INTPTR_MAX == INT64_MAX #include "def64.d" #else #error "Unsupported bit width"...
/** ****************************************************************************** * File Name : pid_regulator_fuzzy.c * Description : Fuzzy-PID函数 * Author :JunjiaLiu ****************************************************************************** * * Copyright (c) 2019 Team TPP-Shanghai Jiao To...
/* The MIT License (MIT) 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, merge, publi...
/*--------------------------------------------------------------- * Copyright (c) 2018 * Broadcom Corporation * All Rights Reserved. *--------------------------------------------------------------- * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated * ...
#include <inttypes.h> #include <stdarg.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #include <assert.h> #include <unistd.h> #include "alloc.h" #include "vec.h" #include "term.h" #include "utf8.h" #include "log.h" #define CELL(t, y, x) ((t)->buffers[(t)->i][(t)->cols * (y) + (x)]) #define ALT_CELL(t,...
/*$ Copyright (c) 2014-2017, Azel 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 follow...
/***************************************************************************** * shpfile.c * * DESCRIPTION * This file contains some functions to save various types of ESRI * shapefiles * * HISTORY * 3/2007 <NAME> (MDL): Created. * * NOTES *****************************************************************...
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2005,2006 Nokia Corporation. * * Contact: <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; eit...
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * srvrstr.c: Deal with strings from the server. */ #include "client.h" #define...
/* -*- Mode:c++; eval:(c-set-style "BSD"); c-basic-offset:4; indent-tabs-mode:nil; tab-width:8 -*- */ /* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary,...
/* * Copyright (c) 2010,2011,2012,2013,2014,2015,2016,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use ...
/*- * 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 retain the above copyright * notice, this list of conditions a...
/* * Copyright 2012-15 Advanced Micro Devices, 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...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /*-*- Mode: C++ -*-*/ /* */ /********************************************...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <signal.h> #include <unistd.h> #define REAL long double int __times; time_t __t_start, __t_cur; enum { RED = 0x0606, GREEN, BLUE}; typedef struct _Vertex { REAL x,y,z; } Vertex; typedef struct _Vertex Vector; typedef struct _Materi...
/* request.c ========= Authors: <NAME>, <NAME> Functions to parse HTTP request headers. */ #include "request.h" /* MAX_REQ_LINE_LENGTH constant*/ #include "helpers.h" /* readline(), strip() helpers */ #include "dispatch.h" #include <stdio.h> /* printf() */ #include <stdlib.h> /* exit(), malloc(...
#include "convolution.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include "logging.h" //add padding to blob BLOB* pad(BLOB* in, int pad){ //create output blob BLOB* out = blob_calloc(in->d, in->h+2*pad, in->w+pad*2); info("PADDING\n"); info("input_depth: %d\n", in->d); info("input_height: %d...
/********************************************************************* * Copyright 2010, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. * ********************************************************************/ #include "config.h" #include <stdlib.h> #include <string.h> #include...
// SPDX-License-Identifier: GPL-2.0-only /* * Dallas DS1302 RTC Support * * Copyright (C) 2002 <NAME> * Copyright (C) 2003 - 2007 <NAME> */ #include <linux/bcd.h> #include <linux/init.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/rtc.h> #inclu...
#include "../mylibrary.h" #include "../types.h" char *prog_name; int service(SOCKET); int main(int argc, char** argv) { SOCKET s, s_acceptor; // socket and acceptor socket struct sockaddr_in saddr, caddr; // server and client address structures uint16_t lport_n, lport_h; // server port number by hto...
/* * Copyright © 2019 Intel Corporation * * 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, pub...
/* Copyright 2013-present Barefoot Networks, Inc. * * 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 la...
/* ===================================================================== * bstar - Binary Star reactor * ===================================================================== */ #include "bstar.h" // States we can be in at any point in time typedef enum { STATE_PRIMARY = 1, // Primary, waiting for...
#include <Python.h> #include <numpy/ndarrayobject.h> void smoothness004 (const double *restrict f, int n, int fsi, double *restrict sigma, int ssi, int ssr) { int i; double sigma0, sigma1, sigma2, sigma3; for (i = 4; i < n - 4; i++) { sigma0 = ((+8.77916666666667) * (f[(i + 0) * fsi])) * (f[(i + 0) * ...
/** * @file can.c * @author <NAME> * @date 2013.09.25 * @brief CAN bus interface functions * * 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 *...