text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright (c) 2014 Jonas 'Sortie' Termansen.
*
* 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 AUT... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "i2c_comm_180302.h"
#include "wait_msec_nsec_180301.h"
/*
* v1.1 Jul. 17, 2018
* - remove wait_clock_stretching_release()
* - add Test_sendCommand()
* - add send_stopContinuousMeasurement()
* - add wait_clock_stretching_release()
* -... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* Copyright (c) 2002 Naval Research Laboratory (NRL/CCS) */
/*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all ... |
/*
* Copyright © 2007 <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, publish, distr... |
/* Copyright 2018 Canaan 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 law or agreed to in ... |
/* Copyright (c) 2001-2011 <NAME>
Copyright (c) 2008-2009 Xiph.Org Foundation */
/*
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, t... |
/*
* ADTS muxer.
* Copyright (c) 2006 <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg 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
... |
/*
* pluconv.c
* (c) 2007
* The ROM in the IBM PC starts the boot process by performing a hardware
* initialization and a verification of all external devices. If all goes
* well, it will then load from the boot drive the sector from track 0, head 0,
* sector 1. This sector is placed at physical address 07C00h.
* b... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <inttypes.h>
#include <string.h>
#include <segments.h>
uint16_t bitsize;
uint16_t lastCapture=0;
static uint8_t ltc_status=0;
uint16_t captureData=0;
uint16_t longBit = 6400;
uint16_t shortBit = 3200;
const uint16_t min_short = 2400;
uint16_t max_short = 4500;
... |
//
// BBRUtilMath.c
// Core Ethereum
//
// Created by <NAME> on 3/10/2018.
// Copyright © 2018-2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
#include <stdlib.h>
#inclu... |
/*
* Arquivo: user.h
*
* Descrição:
* Header para rotinas de configuração o ambiente do usuário.
*
* DESKTOP -> WINDOW STATION -> USER SECTION.
*
* USER -> USER SECTION.
* USER -> WINDOW STATION.
* USER -> DESKTOP.
*
* PROCESS -> WINDOW STATION.
* THREAD -> DESKTOP.
*
*
* ... |
/**
* @file net_if_atheros_tcp.c
*
* @copyright
* Please read the Exosite Copyright: @ref copyright
*
* @if Authors
* @authors
* - <NAME> (<EMAIL>)
* - <NAME> (<EMAIL>)
* @endif
*
* @brief Net_dev_operations implementation for the Atheros network stack for TCP
**/
#include <string.h>
#include <stdlib.h... |
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include "parse_json.h"
#include "mem.h"
#include "construct_packet.h"
#include "log... |
/*
* Copyright 2013 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
/*
opensl_io.c:
Android OpenSL input/output module
Copyright (c) 2012, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, ... |
/*
* arch/powerpc/oprofile/op_model_7450.c
*
* Freescale 745x/744x oprofile support, based on fsl_booke support
* Copyright (C) 2004 <NAME> <<EMAIL>>, IBM
*
* Copyright (c) 2004 Freescale Semiconductor, Inc
*
* Author: <NAME>
* Maintainer: <NAME> <<EMAIL>>
*
* This program is free software; you can redistrib... |
/*
* FIPS-180-2 compliant SHA-256 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 copyrigh... |
/*
* self_pipe.c - dual process ping-pong example to stress PMU context switch of one process
*
* Copyright (c) 2008 Google, Inc
* Contributed 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"... |
/*
* Copyright 2000-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 code must retain the above copyright
* notice, this list of co... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2007 The University of Tennessee and The University
* ... |
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include "tze_tz.h"
#include "tze_err.h"
#include "tze... |
/*
* (C) Copyright 2000-2004
* <NAME>, DENX Software Engineering, <EMAIL>.
* <NAME>, Kieback & Peter GmbH & Co KG, <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General ... |
/* Copyright (c) 2016, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <example_debug.h>
#include <odp_api.h>
#include <odp_l3fwd_lpm.h>
/**
* This is a simple implementation of... |
#include <u.h>
#include <libc.h>
#include "iotrack.h"
#include "dat.h"
#include "fns.h"
#define HIOB 31 /* a prime */
#define NIOBUF 80
static Iotrack hiob[HIOB+1]; /* hash buckets + lru list */
static Iotrack iobuf[NIOBUF]; /* the real ones */
#define UNLINK(p, nx, pr) ((p)->pr->nx = (p)->nx, (p)->nx->pr = (p)-... |
/*
* FreeRTOS V202111.00
* Copyright (C) 2020 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 "Software"), to deal in
* the Software without restriction, including ... |
/*
*
* 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... |
/*
* stm32f10x.c
*
* Core and peripheral registers.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
struct extra_exception_frame {
uint32_t r4, r5, r6, r7,... |
/* Copyright (c) 2020, 2021 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
/*
* Wirekite - MCU code
* Copyright (c) 2017 <NAME>
* Licensed under MIT License
* https://opensource.org/licenses/MIT
*/
/* Simple memory management
*
* The entire heap as initially added to the freelist.
* The heap is never extended.
*
* Allocation requests search for the smallest chunk in the freelist
... |
/*
* Copyright (c) 2019, Wind River Systems, Inc.
*
* 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 followin... |
#include <device.h>
#include <drivers/flash.h>
#include <fs/nvs.h>
#include <logging/log.h>
#include <power/reboot.h>
#include <storage/flash_map.h>
#include <string.h>
#include <zephyr.h>
#include "ens_error.h"
#include "ens_fs.h"
#include "sequencenumber.h"
#include "storage.h"
#define STORED_CONTACTS_INFO_ID 0
st... |
/*
* FUJITSU Extended Socket Network Device driver
* Copyright (c) 2015 FUJITSU LIMITED
*
* 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 Free Software Foundation.
*
* This program is... |
/*************************************************************************
I/O functions
---------------------------------------------------------------------
Copyright (c) 2005-2011
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
Copyright (c) 2009-2011
<... |
/*
* Copyright © 2013-2017 <NAME>
*
* This file is part of FreshPlayerPlugin.
*
* 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 r... |
/*
Copyright (c) 2020-2021 <NAME> and openTIDAL contributors
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... |
#include "win32.h"
#include <AccCtrl.h>
#include <AclAPI.h>
#include <stdlib.h>
#pragma comment(lib, "advapi32.lib")
// Check if handle is not NULL, close it and assign NULL to it
#define CHECK_CLOSE_HANDLE(x) do { if(x) { CloseHandle(x); x = NULL; } } while(0)
/////////////////////////////////////////////////////... |
/* segInfo - Get info about a segment file. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "options.h"
#include "seg.h"
static struct optionSpec options[... |
/*========================================================================*
* Mined.h *
*========================================================================*/
#include <term.h>
#include "config.h"
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#if... |
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "global.h"
#include "opcode.h"
#include "functions.h"
#include "load.h"
static OP ops[] = {
{.pat1 = 0x00, .pat2 = 0x00, .pat3 = 0xE0, .pat4 = 0x0E, .func = ret},
{.pat1 = 0x10, .pat2 = ANY, .pat3 = ANY, .pat4 = ANY, .fu... |
/*
* Copyright 2019 University of Washington, Max Planck Institute for
* Software Systems, and The University of Texas at Austin
*
* 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 withou... |
#define _GNU_SOURCE 1
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#inclu... |
#include "StyleLexers.h"
// ----------------------------------------------------------------------------
KEYWORDLIST KeyWords_R = {
// Language Keywords
"if else repeat while function for in next break "
"true false NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_",
// Base / Default package fu... |
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "foe_fuseball.h"
#include "score.h"
#... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
/*
* SMSC LAN9[12]1[567] Network driver
*
* (c) 2007 Pengutronix, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>
#include <miiphy.h>
#include "smc911x.h"
u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
__attribute__... |
/**
******************************************************************************
* @file Display/LCD_PicturesFromSDCard/Src/main.c
* @author MCD Application Team
* @brief This file provides main program functions
******************************************************************************
* @atten... |
/*-
* Copyright (c) 2004-2005 <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... |
/***************************************************************
* pfunc.c
* Standard Functions
*
* Copyright (C) 2008-2009 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/************************************************************************//**
* (c) Copyright 2015 Hewlett Packard Enterprise Development LP
*
* 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... |
#include "camera.h"
#include "icosphere.h"
#include "loader.h"
#include "log.h"
#include "mat.h"
#include "model.h"
#include "object.h"
#include "platform.h"
#include "worker.h"
struct loader_ {
const char* filename;
/* Model parameters */
GLuint vbo;
GLuint ibo;
uint32_t tri_count;
uint32_t ... |
/*
* Copyright (c) 2007,2008,2009 Zmanda, Inc. All Rights Reserved.
*
* 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 Free Software Foundation.
*
* This program is distributed in the hope that it will b... |
#include <linux/amba/bus.h>
#include <linux/amba/clcd.h>
#include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <linux/of_graph.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include "amba-clcd-nomadik.h"
static struct gpio_desc *grestb;
static ... |
/*
* Ported to the Ti82/83/83+ (rest will follow) by <NAME>
* Extended with different sprite sizes and sound by <NAME>
*
* * * * * * *
*
* dstar.c
*
* DStar Z88 - C Demo
* Original TI game By <NAME>
* Converted to Z88 By <NAME>
* Keys: Q,A,O,P,SPACE,H,G
*
* * * * * * *
*
* dstarz88 is a c... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <png.h>
#include <config.h>
#define FATAL_ERROR(...) printf(__VA_ARGS__); retval = 1; goto ExitProgram
//==================================================================================================
const char HE... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/dif/dif_aes.h"
#include "sw/device/lib/runtime/log.h"
#include "sw/device/sca/lib/prng.h"
#include "sw/dev... |
#include <stdio.h>
#define MAXL 10
#define MAXF 50
typedef struct{
float temperatura;
float precipitacion;
float viento;
}TDatos;
TDatos Observacion[MAXL][MAXF];
int NumeroLugares=0;
char NombreLugar[MAXL][50];
int NumeroFechas=0;
typedef struct{
int dia;
int mes;
int anio;
}F... |
/** file event_chooser.c
* @brief papi_event_chooser utility.
* @page papi_event_chooser
* @section NAME
* papi_event_chooser - given a list of named events,
* lists other events that can be counted with them.
*
* @section Synopsis
* papi_event_chooser NATIVE | PRESET < event > < event > ...
*
* ... |
/*
* ux_pic.c - Unix interface, picture outline functions
*
* This file is part of Frotz.
*
* Frotz 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... |
//dev.c
#include "dev.h"
#include "dev-time.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "event-socket.h"
//todo-list
node_t *todolist_head = NULL;
//all devices include conf and connect
node_t *devlist_head = NULL;
//set-list
node_t *setlist_head = NULL;
//room-list
node_t *roomlist_head =... |
/*
* h/i386/mch.h
* Machine specific header for the i386 compiler.
* Typedefs, register names and macros for all compiler phases.
* This one builds a TINY i386 COHERENT compiler with disk tempfiles.
*/
#define DATE "12/15/94" /* Date */
#define VERSMWC "V4.6.3" /* MWC version number */
#define VERSINT "X324"... |
// SPDX-License-Identifier: MIT
/*
* Copyright © 2019 Intel Corporation
*/
#include "gen7_renderclear.h"
#include "i915_drv.h"
#include "intel_gpu_commands.h"
#define MAX_URB_ENTRIES 64
#define STATE_SIZE (4 * 1024)
#define GT3_INLINE_DATA_DELAYS 0x1E00
#define batch_advance(Y, CS) GEM_BUG_ON((Y)->end != (CS))
str... |
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/* ppc-dis.c -- Disassemble PowerPC instructions
Copyright 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Written by <NAME>, Cygnus Support
This file is part of GDB, GAS, and the GNU binutils.
GDB... |
/****************************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License\n");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... |
/*
* 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 UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
/***************************************************************************
Video Hardware description for Taito Gladiator
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
static int video_attributes;
static int base_scroll;
static int b... |
//
// Created by sachetto on 01/11/18.
//
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "data_utils.h"
#define COMPRESED_BLOCK_SIZE 1 << 15
void calculate_blocks_and_compress_data(size_t total_data_size_before_compression,
size_t *tot... |
/*
* QEMU System Emulator
*
* Copyright (c) 2003-2008 <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, c... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* TC0 System Support.
*/
#include "clock_soc.h"
#include "scp_pik.h"
#include "tc0_core.h"
#include "tc0_scmi.h"
#include "tc0_sds.h"
#include ... |
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* so... |
/*
** Copyright (C) 1999-2009 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program... |
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
/*
* Demo to do the rough equivalent of:
*
* ... |
/*
* perfdraw.c - $Revision: 1.4 $
*/
#include <GL/glut.h>
#include <math.h>
#include <stdio.h>
#include "skyfly.h"
#if !defined(GL_VERSION_1_1)
#if defined(GL_EXT_texture_object)
#define glBindTexture(A,B) glBindTextureEXT(A,B)
#define glGenTextures(A,B) glGenTexturesEXT(A,B)
#define glDeleteTextures(A,B)... |
/*
** Copyright (C) 2002-2011 <NAME> <<EMAIL>>
** Copyright (C) 2007 <NAME>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of the License, or
** (at your option)... |
/*
* Copyright (c) 2009-2013 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*
* @precisions normal z -> z c d s
*
*/
#include "common.h"
#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h"
#incl... |
/*
* udpserver.c - A simple UDP echo server
* usage: udpserver <port>
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <dirent.h>
#define BUF... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "util.h"
#include "commdir.h"
void logistic_loss_function(double z, double *value)
{
double v;
if(z>=0)
v = log(1+exp(-z));
else
v = -z+log(1+exp(z));
... |
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
*
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distr... |
/*******************************************************************************
Copyright 2016 Microchip Technology Inc. (www.microchip.com)
MSD Direct Programming (ICSP) Interface
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
static integer c__4 = 4;
/* Subroutine */ int dlafts_(char *type__, integer *m, integer *n, integer *
imat, integer *ntests, doublereal *result, integer *iseed, doublereal
*thresh, integer *iounit, integer *ie)
{
/*... |
//
// Latest edit by TeeKee on 2017/7/23.
//
#include <errno.h>
#include "http.h"
static const char* get_file_type(const char *type);
static void parse_uri(char *uri, int length, char *filename, char *query);
static void do_error(int fd, char *cause, char *err_num, char *short_msg, char *long_msg);
static void serve_... |
/**
BSD 3-Clause License
Copyright (c) 2019, TheWover, Odzhan. 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
... |
#include <unistd.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <netinet/in.h>
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <linux/can/netlink.h>
#include <netlink/version.h>
#include <netlink/route/link.h>
#include <net... |
/*
*
* Copyright © 2013 <NAME> <<EMAIL>>.
* Copyright © 2013 Canonical Ltd.
*
* 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 Free Software Foundation.
*
* This program is distributed in the hope that... |
/***************************************************************************
* Copyright (C) 2014 by <NAME> *
* <EMAIL> *
* *
* Based on ./src/server/telnet_ser... |
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
int jour;
int mois;
int annee;
}date;
typedef struct
{
char cha[20];
int taille;
}chaine;
typedef struct
{
char username[50];
date playdate;
int score;
}toplayer;
typedef struct
{
toplayer t[100];
}listewinner;
typedef str... |
/*
* Copyright (c) 2017-2019, The Linux Foundation. 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 c... |
/**
Functions built into the powertask system:
implements the interface in powertask.h.
CJ Emerson and <NAME>, 2021-01, public domain
*/
#include <stdio.h>
#include <stdlib.h>
#include "powertask.h"
/// Debug support
static int powertask_debug_level=0;
void powertask_debug(int debug_level) {
powertask_debug... |
/**
* \file
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 ... |
/* ******************************************************************
FSEU16 : Finite State Entropy coder for 16-bits input
Copyright (C) 2013-2014, <NAME>.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modifi... |
/*! @file
*
* @brief Routines for setting up the flexible timer module (FTM) on the TWR-K70F120M.
*
* This contains the functions for operating the flexible timer module (FTM).
*
* @author <NAME> and <NAME>
* @date 2017-04-29
*/
/*!
** @addtogroup ftm_module FTM module documentation
** @{
*/
#include "FTM... |
// <NAME>
// created: 5/8/13
//
// This file contains the code to manage a cache of mmapped regions. Rather than record the individual read/writes,
// we need to store a copy of each region on mapping so that it can be faithfully replayed. This strategy assumes
// that write-shared regions are not accessed in a racy... |
//#include <BmpHandler.h>
#include "MotionEstimation.h"
#include "BmpHandler.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <conio.h>
#ifdef NEW_EMILLY
#define l 4 //Decimation Factor
#define x_dim (128)
#define y_dim (96)
#endif
#ifdef SYNTHETIC1
#define l 4 //Decimati... |
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2009 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and binary forms, with ... |
/*
* ionice: set or get process io scheduling class and priority
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* Released under the terms of the GNU General Public License version 2
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <getopt.h>
#include <unistd.h>
#include <sys/syscall.h>
#includ... |
/*
* dlls/rsaenh/md2.c
* MD2 (RFC 1319) hash function implementation by <NAME>
*
* Copyright 2004 <NAME>
* Based on public domain code by <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 th... |
struct _GAsyncQueue {};
struct _GBookmarkFile {};
struct _GBinding {};
struct _GBytes {};
struct _GChecksum {};
struct _GData {};
struct _GDatagramBased {};
struct _GDateTime {};
struct _GDir {};
struct _GHashTable {};
struct _GHmac {};
struct _GKeyFile {};
struct _GMainContext {};
struct _GMainLoop {};
struct _GMapped... |
#include "cmstr.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define MAXUNICODE 0x10FFFF
#ifdef _MSC_VER
#include <Windows.h>
#endif
int utf8_char_size(const char *str, int str_size, int* plength);
void* utf8_convert(const uint8_t* u8str, int size, int* pchar_size, int* pl... |
/**
* The original code was taken from SQLite site http://www.sqlite.org
*/
#include "sqlite3lib.h"
#import "DBCAdditionalErrorCodes.h"
#if !defined(HAVE_EDITLINE) && (!defined(HAVE_READLINE) || HAVE_READLINE!=1)
# define readline(p) dbc_local_getline(p,stdin)
# define add_history(X)
# define read_history(X)
# defi... |
/*
chronyd/chronyc - Programs for keeping computer clocks accurate.
**********************************************************************
* Copyright (C) <NAME> 2016
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.