text
stringlengths
3.12k
18.7k
#include <3ds.h> #include <string.h> #include <wchar.h> #include "patcher.h" #include "ifile.h" #include "fsldr.h" // Below is stolen from http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm #define ALPHABET_LEN 256 #define NOT_FOUND patlen #define max(a, b) ((a < b) ? b : a) //Max number of pat...
/** * * @copyright &copy; 2010 - 2017, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistri...
/* Copyright (c) 2013, <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, this list of conditions and the following...
/* * Copyright (c) 2019 <NAME> a.k.a. <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...
/* Program to display the contents of used lustre inodes on disk using the ext4 FS layout. This code is written for this file "/home/saisha/Desktop/Ph.D/lustre/oss0" in particular. *It has 4 groups : found using dumpe2fs. can be found using superblock elements. Hence it has only one flex group. */ #include <math.h> #i...
/** * @file pomp_test_addr.c * * @author <EMAIL> * * Copyright (c) 2014 Parrot S.A. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the a...
/*********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. * No other uses are authorized. This software is owned by Renesas Elect...
/* * WML Client implementation and interface functions * Copyright (c) 2016, Shoowing <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of Apache License Version 2.0 * * See README for more details. */ #include <stdio.h> #include <stdlib.h> #include "wml_p...
#include <aos/aos.h> #include <nameserver.h> #include <aos/nameserver_internal.h> //this is only needed for pretty printing #include <stdio.h> #include <stdlib.h> #include <aos/aos_rpc.h> #include <aos/generic_threadsafe_queue.h> struct aos_rpc nameserver_connection; // COPY FROM AOS_RPC.C FIX IF TIME ALLOWS struc...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include <setjmp.h> #include <3ds.h> #include <sys/dirent.h> #include <sys/errno.h> #include <sys/unistd.h> #include <stdbool.h> #define CONFIG_3D_SLIDERSTATE (*(volatile float*)0x1FF81080) #define WAIT_TIMEOUT 1000000000ULL #define WIDTH ...
// // BSD 3-Clause License // // Copyright (c) 2020, <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 abov...
/*********************************************** * Launch a Gosp server from the Apache module * * * * By <NAME> <<EMAIL>> * **********************************************/ #include "gosp.h" /* Invoke an APR call as part of process launch. On failure, log an erro...
#include "vmem_copy.h" #include "xbaseband.h" #include "vmem.h" #include "circular_shift.h" void vmem_copy_rows(const unsigned int input_rows, const unsigned int output_rows, const unsigned int rows){ MVXV_KNOP(V2, input_rows); MVXV_KNOP(V3, output_rows); MVXV_KNOP(V4, 0x1); for (unsigned int i = 0;...
/* ----------------------------------------------------------------- * * This program is free software. You can distribute/modify it under * * the terms of GNU General Public License 3. * * The program has been written by * * ...
/* * check.c - Run Ethash calculation (this is the messy ancestor of mixone) * * Copyright (C) 2021 Linzhi Ltd. * * This work is licensed under the terms of the MIT License. * A copy of the license can be found in the file COPYING.txt * * * Reference example (a job received from ethermine.org): * ./check ...
/* This work was not produced in affiliation with any of the device manufactures and is, and is intended to be, an independent, third-party research project. This work is presented for research and educational purposes only. Any use or reproduction of this work is at your sole risk. The work is provided โ€œas isโ€ an...
#include "../rfxswf.h" #include "../graphcut.c" #include "../log.h" static inline double sqr(double x) {return x*x;} static void draw_line(float*row, float x1, float x2, float y1, float y2, int min, int max, double weight) { if(x2<x1) {int x=x1;x1=x2;x2=x;} if(x1<min || x2>max) { fprintf(stderr, "error: glyp...
/* ../netlib/v3.9.0/dgelqt3.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, a...
/* * FreeRTOS V202012.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, incl...
/* * FSB demuxer * Copyright (c) 2015 <NAME> * * 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 * version 2.1 of the License, or (at your option)...
#ifdef WIN32 #include <windows.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <stdbool.h> #include <pthread.h> #include "hidapi.h" #include "uf2hid.h" #define EP_SIZE 64 typedef struct { hid_device *dev; uint16_t size; uint8_t serial...
// Copyright 2017 The Fuchsia 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 <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <stdio.h> #include <stdlib.h> #inclu...
// RFC3261 20.10 Contact (p167) // Contact: "Mr. Watson" <sip:<EMAIL>>;q=0.7; expires=3600,"Mr. Watson" <mailto:<EMAIL>> ;q=0.1 // The compact form of the Contact header field is m (for "moved"). // m: <sips:bob@192.0.2.4>;expires=60 // 25.1 Basic Rules // HCOLON = *( SP / HTAB ) ":" SWS // LWS = [*WSP CRLF] 1*WSP ; l...
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #define N 10000 #define NITER 50 /* Valor double aleatorio entre 0 y 1 */ #define D01 (rand() / (double)RAND_MAX) /* NOTE: We work with matrices stored by rows */ #define M(i,j) M[(i)*n + (j)] #define Mloc(i,j) Mloc[(i)*n + (j)] void inventa(int m, int n, dou...
/* * Copyright (c) 2007-2018 <NAME> <<EMAIL>> * * Airpcap stuff * * 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 opt...
//------------------------------------------------------------------------------ // GB_mex_rdiv2: compute C=A*B with the rdiv2 operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apac...
/* * Copyright 2015 <NAME> * * 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 * version 2.1 of the License, or (at your option) any later version. * * This library is distri...
/** * \file tsc_adc.c * * \brief This file contains functions which configure the mcpsi */ /* * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#include <stdlib.h> #include <string.h> #include <stdio.h> #ifndef JSI_AMALGAMATION #include "jsiInt.h" #endif #ifndef JSMN_FREE #define JSMN_FREE(p) free(p) #define JSMN_MALLOC(l) malloc(l) #define JSMN_REALLOC(p,l) realloc(p,l) #endif static Jsi_JsonErrEnum jsmn_error(Jsi_JsonParser *parser, Jsi_JsonErrEnum err, cons...
๏ปฟ/* Simple DirectMedia Layer Copyright (C) 1997-2011 <NAME> <<EMAIL>> 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...
#include <sys/types.h> #include <errno.h> #if defined(_WIN32) || defined(_WIN64) #include <winsock.h> #include <io.h> #include <fcntl.h> #include <direct.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #if (!defined __MINGW64__) && (!defined __MINGW32__) typedef int mode_t; #endif #define open _open ...
/* This is the implementation of the P6bigint representation, which holds a * libtommath big integer. */ #define PARROT_IN_EXTENSION #include "parrot/parrot.h" #include "parrot/extend.h" #include "../sixmodelobject.h" #include "P6bigint.h" /* This representation's function pointer table. */ static REPROps *this_repr...
/* * Copyright (c) 1997, 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. Redistributions of source code must retain the above copyright * notice, this list of condition...
#include "mov-writer.h" #include "mov-internal.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> #include <time.h> struct mov_writer_t { struct mov_t mov; uint64_t mdat_size; uint64_t mdat_offset; }; static size_t mov_write_moov(struct mov_t* mov) { int i; size_t size; uint64_t o...
/* * fy-utils.c - Generic utilities for functionality that's missing * from platforms. * * For now only used to implement memstream for Apple platforms. * * Copyright (c) 2019 <NAME> <<EMAIL>> * * SPDX-License-Identifier: MIT */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> ...
/** * adi.c: This file is part of the PolyBench/C 3.2 test suite. * * * Contact: <NAME> <<EMAIL>> * Web address: http://polybench.sourceforge.net */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <polybench.h> /* Include benchmark-spe...
/* * Simulation Statistics * * MARSS-RISCV : Micro-Architectural System Simulator for RISC-V * * Copyright (c) 2017-2020 <NAME> {<EMAIL>} * State University of New York at Binghamton * * Copyright (c) 2018-2019 <NAME> {<EMAIL>} * State University of New York at Binghamton * * Permission is hereby granted, fr...
#include "mti.h" #include <stdlib.h> #include <string.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_gpio.h" #include "stm32f4xx_hal_spi.h" #include "stm32f4xx_hal_tim.h" #include "SD_save.h" #include "main.h" #include "serial_com.h" #include "stm32f4xx_it.h" // External variables extern SPI_...
#include "renderer.h" #include "targa.h" static GLuint Renderer_Upload(Renderer_t* renderer, short w, short h, int rgba, const GLubyte* data) { GLuint tex; glGenTextures(1, &tex); glBindTexture(GL_TEXTURE_2D, tex); if (rgba) { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/* * Mesa 3-D graphics library * Version: 6.1 * * Copyright (C) 1999-2004 <NAME> 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, includ...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdint.h> #include <string.h> #...
/* 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...
// gcc -lm abgabe.c -o abgabe.out -lm // ./abgabe.out // <NAME> <NAME> #include <stdio.h> #include <stdlib.h> #include <math.h> #define Max_steps 10 #define PI 3.14159265358979323846 //aditional arguments are passed as arrays so that derivation and integration works genericaly double integrant(double x, double *z_a...
#include "fibers/vgc.h" #include "logc/log.h" #include <stdlib.h> #include <xmmintrin.h> vgc_counter vgc_counter_init(int count) { return (vgc_counter) { .lock = 0, .counter = count, .waiters_len = 0, .waiters = {0} }; } //http://danglingpointers.com/post/spinlock-implementation/ static void vgc_c...
/* * (C) Copyright 2001 * <NAME>, Wave 7 Optics, <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 Public License as * published by the Free Software Foundation; ei...
/*============================================================================= curlMulti =============================================================================== This is an extension to Curl's CURLM object. The extensions are: 1) It has a lock so multiple threads can use i...
/* floatincgamma.h: incomplete gamma function */ /* Copyright (C) 2009 <NAME>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License , or (at your option...
/*--------------------------------------------------------------------*/ /*--- An expandable array implementation. m_xarray.h ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (...
/* Copyright (c) 2021, <NAME> All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ #ifdef __WIN32 #include <winsock2.h> #include <windows.h> #include <ws2tcpip.h> #else #include <sys/types.h> #include <sys/socket.h> #inc...
#include "sys.h" #include "delay.h" #include "usart.h" #include "led.h" #include "key.h" #include "lcd.h" #include "sram.h" #include "malloc.h" #include "sdio_sdcard.h" #include "w25qxx.h" #include "ff.h" #include "exfuns.h" #include "string.h" #include "usmart.h" #include "fontupd.h" #include "text.h" #include "piclib...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-โ”‚ โ”‚vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viโ”‚ โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก โ”‚ Copyright 2020 <NAME> โ”‚ โ”‚ ...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2016 <NAME> and <NAME> Copyright (C) 2017-2019 <NAME> Copyright (C) 2020-2021 <NAME> and Rubicon Communications, LLC(Netgate) This file is part of CLIXON. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ...
/* * Author <NAME> * * Copyright (c) 2017, OARC, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice...
#include "alignments.h" #define dprint(expr) printf(#expr " = %g \n", (double) expr) #define PI 3.14159265358979 /*----------------------------------------------------------------------------*/ /* append alignment to alignment list */ void append_alignment( alignments_list *g, struct point_alignment *a){ if (g->pos ...
/* ctr_prng.c - TinyCrypt implementation of CTR-PRNG */ /* * Copyright (c) 2016, <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...
#include "robot_controller.h" #include "app_callbacks.h" #include "backend.h" #include "can_devices.h" #include "app_resources_ui.h" #include <gtk/gtk.h> #include <stdio.h> #include <pthread.h> #define MAX_DEVICE_COUNT 30 static struct { /* All the devices that are available from backend */ can_device_t devi...
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include <fcall.h> #include <9pclient.h> #include <thread.h> #include <cursor.h> #include <mouse.h> #include <keyboard.h> #include <frame.h> #include <plumb.h> #include <html.h> #include "dat.h" #include "fns.h" void wininit(Window *w, Window *not...
#include "mysql_wrapper.h" static MYSQL * mysql = NULL; static double ** values = NULL; static unsigned int num_results = 0; // global because of deinit() static unsigned int num_sensors = 0; // global because of deinit() int mywrapper_init(const char * addr, int port, const char * user, const char...
/* * Copyright (c) 2019-2020 by <NAME> (<EMAIL>) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
/* This file is part of jwhois Copyright (C) 1999-2002,2007 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 version 3 of the License, or ...
/* * Copyright (C) 2009-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 DISCLAI...
/* * Copyright (c) 2012 by Farsight Security, 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...
/* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-1999 by Internet Software Consortium. * * 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 ...
#include <bgp.h> void bgp_md_opts() { //tw_opt_add(bgp_opts); } /* * Parse BGP model specific command line arguments */ void bgp_setup_options(int argc, char ** argv) { int i; int c; optind = 0; while(-1 != (c = getopt(argc, argv, "-b:"))) { switch(c) { case 'b': g_bgp_init_file = (char *) ca...
typedef unsigned int uint32; typedef int int32; typedef unsigned long uint64; typedef long int64; typedef short int16; ///// {{{1 from disk_format.h typedef uint32 CacheAddr; const int kIndexTablesize = 0x10000; const uint32 kIndexMagic = 0xC103CAC3; const uint32 kCurrentVersion = 0x20000; // Version 2.0. struct Lr...
/* Cubesat Space Protocol - A small network-layer protocol designed for Cubesats Copyright (C) 2012 GomSpace ApS (http://www.gomspace.com) Copyright (C) 2012 AAUSAT3 Project (http://aausat3.space.aau.dk) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General P...
#include "thai-charprop.h" const gshort thai_char_type[256] = { /* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F */ /* CL1 */ /*00*/ _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, _ND, /*10*/ _ND, _ND, _ND, _ND, _ND, _N...
/* * 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 ma...
/* * ============================================================================ * Copyright (c) 2012 Marvell International, Ltd. All Rights Reserved * * Marvell Confidential * ============================================================================ */ /* * Fi...
/* mz_os.c -- System functions part of the MiniZip project Copyright (C) 2010-2020 <NAME> https://github.com/nmoinvaz/minizip Copyright (C) 1998-2010 <NAME> https://www.winimage.com/zLibDll/minizip.html This program is distributed under the terms of the same license as zlib. See the accompany...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <glob.h> #include "libinjection.h" #include "libinjection_sqli.h" #include "libinjection_html5.h" #include "libinjection_xss.h" static char g_test[8096]; static char g_input[8096]; static char g_expected[8096]; size_t modp_rtrim(c...
#include "cpio.h" #include "uart.h" typedef struct{//cpio_newc_header char c_magic[6]; char c_ino[8]; char c_mode[8]; char c_uid[8]; char c_gid[8]; char c_nlink[8]; char c_mtime[8]; char c_filesize[8]; char c_devmajor[8]; char c_devminor[8]; char c_rdevmajor[8]; char c_rdevminor[8]; char c_namesize[8]; c...
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. 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 as published by the Free Software Foundation; version 2 of the License. This program is distributed in t...
/* $NetBSD: s3c2410_spi.c,v 1.1 2004/02/14 07:19:52 bsh Exp $ */ /* * Copyright (c) 2004 Genetec Corporation. All rights reserved. * Written by <NAME> for Genetec Corporation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/* * ============================================================================ * * Filename: main.c * * Description: A basic character generator for Basic Fantasy * * Version: 1.0 * Created: 09/09/19 12:16:13 * Revision: none * Compiler: gcc * * Author: <NAME> (<...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "common.h" #include "git2/attr.h" #include "git2/blob.h" #include "git2/index.h" #include "git...
/* * This file is part of the coreboot project. * * Copyright (C) 2004 <NAME> <<EMAIL>> * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 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 * t...
/* Copyright (C) 2003, 2004 Red Hat, Inc. * Contributed by <NAME> <<EMAIL>> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #ifndef _dl_assert # define _dl_assert(expr) #endif /* Initialize a DL_LOADADDR_TYPE given a got pointer and a complete load map. */ inline static void __d...
/* * Mesa 3-D graphics library * Version: 6.5 * * Copyright (C) 1999-2006 <NAME> 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, includ...
/************************************************************************* * Copyright (C) 2008 <NAME> <<EMAIL>> * * * * This file is part of The FPFD Library Test Suite. * * ...
/* * 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 agreed to in wr...
#include "reuriInt.h" #include "tip445.h" /* Intrep: * twoPtrValue.ptr1: Tcl list with param -> value pairs * twoPtrValue.ptr2: Tcl dict mapping parameter names to a list of * positions that those params occur. For a=x&b=y&a=z * a -> {0 2}, b -> 1 */ #define PARAMS(irPtr) ((Tcl_Obj*)((irPtr)->twoPtrV...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee a...
/** ****************************************************************************** * @file mesh.c * @author MCD Application Team * @brief Mesh ****************************************************************************** * @attention * * <h2><center>&copy; Copyright c 2017 STMicroelectron...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> // ๅŽŸๅง‹ๆ•ฐๆฎ้กนๆ•ฐ #define DATA_NUM 506 // ่ฎญ็ปƒ้›†ๅ ๆ€ปๆ•ฐๆฏ”ไพ‹,ๅ‰ฉไธ‹็š„ๅณไธบๆต‹่ฏ•้›†,่Œƒๅ›ด(0.0,1.0) #define TRAIN_DATASET_RATIO 0.7 // ่ฎญ็ปƒ่ฝฎๆ•ฐ #define EPOCH 200 // ๅญฆไน ็އ #define LEARNING_RATE 0.01 // ็‰นๅพๆ•ฐ้‡(X)ๆ•ฐ้‡,ๅœจ่ฟ™ไธชๆ•ฐๆฎ้›†้‡Œ,13ไธช็‰นๅพ,ๆœ€ๅŽไธ€ไธชๆ˜ฏๅนณๅ‡ๆˆฟไปท(Y) #define FEATURE_NUM 13 #define PARA_NUM (FEATURE...
#include <timer.h> #include <bcm2836.h> #include <chipset.h> #include <priority_queue.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> typedef struct ScheduledTimer { uint64_t scheduled_count; TimerHandle handle; TimerCallback callback; uint32_t periodic_delay; } ScheduledTimer; typedef u...
#include <gtk/gtk.h> #include <gdk/gdkx.h> #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libswscale/swscale.h> //#define OVERLAY_IMAGE "/home/newmarch/jannewmarch.signature.png" #define OVERLAY_IMAGE "jan-small.png" GtkWidget *image; GtkWidget *window; #if GTK_MAJOR_VERSION == 2 GdkPi...
#include <ruby.h> #include <ruby/encoding.h> #include <trilogy.h> #include "trilogy-ruby.h" #define CAST_STACK_SIZE 64 static ID id_BigDecimal, id_new, id_local, id_localtime, id_utc; static const char *ruby_encoding_name_map[] = { [TRILOGY_ENCODING_ARMSCII8] = NULL, [TRILOGY_ENCODING_ASCII] = "US-ASCII", ...
/* * TI SYSCON regmap reset driver * * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * 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 th...
/***************************************************************************** Copyright (c) 1993-2000, Div. Medical and Biological Informatics, Deutsches Krebsforschungszentrum, Heidelberg, Germany All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
/* Copyright 2018, UCAR/Unidata and OPeNDAP, Inc. See the COPYRIGHT file for more information. */ #include "config.h" #ifdef HAVE_STRINGS_H #include <strings.h> #endif #include "dapparselex.h" #include "dapy.h" #undef URLCVT /* NEVER turn this on */ /* Do we %xx decode all or part of a DAP Identifier: see dapdec...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #define NUM_REELS 5 #define NUM_LINES 5 typedef struct { char *symbol; double weight; } symbol_weight_t; typedef struct { char *symbol; int frequency; double value; } payout_t; typedef struct { char *symbol; int...
#include <snow.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct { char* buf; uint32_t buf_len; uint32_t len; } str_t; void redraw(str_t* text_buf, const str_t* input_buf); void draw_cursor(uint32_t x, uint32_t y); str_t* str_new(const char* str); void str_fre...
/*- * Copyright (c) 2008 <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 (c) 2011 * Author: <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...
/** * Name: <NAME> * Date: November 27, 2016 * Class: COP 2220 * Assignment: Simple Database * Compiled with GCC on Arch Linux */ #include <stdio.h> #include <stdlib.h> #include <string.h> const int ARTISTS = 100; // predefined amount of artists /** * CD Type Node * Stores all the required data for CDs * H...
#include <getopt.h> #include <err.h> #include <inttypes.h> #include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include "ordpath.h" /* * Configuration */ #define UTILITY_VERSION "0.0.1" #define SETUP_LE...
/************************************************************************** * * Copyright 2007 VMware, Inc. * 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 wi...