text
stringlengths
7.55k
41.9k
/** * * <gf2x_arith_mod_xPplusOne.c> * * @version 2.0 (March 2019) * * Reference ISO-C11 Implementation of the LEDAcrypt KEM cipher using GCC built-ins. * * In alphabetical order: * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * ...
/* GStreamer * * Copyright (C) 2009 <NAME> <<EMAIL>>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This...
#pragma once #include "TypeDefs.h" class CPU; namespace OPC { bool exe_nop(CPU* cp); bool exe_di(CPU* cp); bool exe_ei(CPU* cp); bool exe_daa(CPU* cp); bool exe_rlca(CPU* cp); bool exe_rrca(CPU* cp); bool exe_rla(CPU* cp); bool exe_rra(CPU* cp); bool exe_scf(CPU* cp); bool exe_ccf(CPU* cp); bool exe_push...
/* Copyright (c) Microsoft Corporation. * Licensed under the MIT License. */ /* Standard includes. */ #include <string.h> #include <stdio.h> /* Kernel includes. */ #include "FreeRTOS.h" #include "task.h" /* Azure Provisioning/IoT Hub library includes */ #include "azure_iot_hub_client.h" #include "azure_iot_hub_clie...
// SPDX-License-Identifier: GPL-2.0+ /* * Driver for BCM63268 GPIO unit (pinctrl + GPIO) * * Copyright (C) 2021 <NAME> <<EMAIL>> * Copyright (C) 2016 <NAME> <<EMAIL>> */ #include <linux/bits.h> #include <linux/gpio/driver.h> #include <linux/kernel.h> #include <linux/of.h> #include <linux/pinctrl/pinmux.h> #includ...
// This file is part of Deark. // Copyright (C) 2018 <NAME> // See the file COPYING for terms of use. // J2C - JPEG 2000 codestream #include <deark-config.h> #include <deark-private.h> DE_DECLARE_MODULE(de_module_j2c); struct page_ctx { i64 ncomp; i64 j2c_sot_pos; i64 j2c_sot_length; }; typedef struct localctx_s...
/* * Copyright (c) 2004-2006 <NAME> <<EMAIL>> * Copyright (c) 2006-20015 Sippy Software, Inc., http://www.sippysoft.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributio...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2011-01-13 weety first version */ #include <rtthread.h> #include <drivers/i2c.h> #include <dm36x.h> /* ----- global defines -------------------------...
/* pppdump.c * * Copyright (c) 2000 by <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. * * T...
/* * Copyright © 2014 <NAME> <<EMAIL>> * This program is free software. It comes without any warranty, to the extent * permitted by applicable law. You can redistribute it and/or modify it under * the terms of the Do What The Fuck You Want To Public License, Version 2, as * published by Sam Hocevar. See the COPYIN...
#include "mex.h" #include <math.h> #include "param.c" /* #include "stdio.h" */ /* function [neuron]=STDPContinuous(neuron,spikeList,afferentList,dump,beSmart,PARAM) * This code was used in: * <NAME>, <NAME>, <NAME> (2009). Competitive STDP-based Spike Pattern Learning. Neural Computation: in press. * Feel free...
/* Copyright (c) 2003-2010, <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...
#include "okk.h" #ifndef NULL #define NULL 0 #endif #define ALIGN(x, n) (((x) + (n) - 1) / (n) * (n)) #define DIV_UP(a, b) (((a) - 1) / (b) + 1) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define LOCAL_MEM_SIZE okk_local_mem_size_per_npu() // #define LOCAL_MEM_SIZE 800 #define N...
/* * Copyright 2021 ByteDance 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 ...
#include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "esp_log.h" #include "esp_event_loop.h" #include "esp_wifi.h" #include "esp_wps.h" #include "tcpip_adapter.h" #include "include/esp32_wifi.h" static const char *TAG = "esp32_wifi"; // WPS_TYPE_PBC: Start esp32 a...
/* * Copyright © 2002 <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, * di...
/* Wrapper for FFI calls from Turbo.lua, where its is difficult because of long header file, macros, define's etc. Copyright 2013 <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 r...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2016 STMicroelectronics * * Redistribution and use in source a...
/* $Id: tide_db_default.h 1092 2006-11-16 03:02:42Z flaterco $ */ #include "tcd.h" /*****************************************************************************\ DISTRIBUTION STATEMENT This source file is unclassified, distribution unlimited, public domain. It is distributed ...
/****************************************************************************** * * Copyright 2018 Xaptum, 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 * * h...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/** * \file * * \brief KS8851SNL driver for SAM0. * * Copyright (c) 2012-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: ...
/** * This file is part of yasimSBML (http://www.labri.fr/perso/ghozlane/metaboflux/about/yasimSBML.php) * Copyright (C) 2010 <NAME> from LaBRI and University of Bordeaux 1 * * yasimSBML is free software: you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License as publish...
#include "nes.h" #include "mapper.h" #include "ppu.h" #include "render.h" #include "cpu.h" #include "cartridge.h" #include "palette.h" __u8 ppu_reg_read(__u16 addr){ __u8 res = 0; switch(addr){ case 0x2002: if(ppu.vblank_active){ res |= 0x80; ppu.vblank_active = 0; } if(ppu.sprite0_hit){ ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
// Generated by HLC 4.2.1 (HL v4) #define HLC_BOOT #include <hlc.h> #include <h3d/scene/fwd/LightSystem.h> #include <h3d/shader/AmbientLight.h> extern h3d__shader__$AmbientLight g$_h3d_shader_AmbientLight; bool hl_BaseType_check(hl__BaseType,vdynamic*); void h3d_scene_LightSystem_initLights(h3d__scene__LightSystem,h3d...
/* * Copyright 2018-2019 OneCube * * 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 ...
#include "thorupzwick.h" void pp_aseqs (struct aseq **A, int k) { printf("Pretty print all A_i sequences\n"); for (int i = 0; i < k; i++) { if (A[i]->setlength > 0) { for (int j = 0; j < A[i]->setlength; j++) printf ("A_{%d,%d} v_id:%d spest:%d\n", i, j, A[i]->nodes[j].v_id+offset, A[i]->nodes[j].sp_e...
/* * Copyright (C) 2017 <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, pu...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2012 The University of Tennessee a...
/* Copyright 2017, Bloomberg Finance 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 ...
/* events.c Copyright (C) 1999-2003 <NAME>. Copyright (C) 2010-2018 <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, co...
/** * @copyright (c) 2017 King Abdullah University of Science and Technology (KAUST). * All rights reserved. **/ /** * @file time_zpotrf_tile.c * * This file shows how to generate tile low-rank (TLR) matrix and factorize it using Cholesky factorization. * * HiCMA is a software package provid...
// File: mumps/util/util_routine.c // // module MUMPS util_routine - routine functions /* Copyright (c) 1999 - 2014 * <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: * *...
/* * Copyright (c) 2015 Cesanta Software Limited * All rights reserved */ #include "ktypes.h" static int check_cipher(uint16_t suite) { return kr_cipher_get_info(suite) != NULL && kr_hmac_len(suite) >= 0; } static int check_compressor(uint8_t compressor) { switch (compressor) { case COMPRESSOR_NULL: ...
#include "stdio.h" #include "stdlib.h" #include "math.h" #include "float.h" #include "time.h" #include "string.h" #include "levmar.h" #include "c_common.h" #include "gauss2_fitter.h" #ifndef LM_DBL_PREC #error This program assumes that levmar has been compiled with double precision. #endif // A Gaussian 2D fitter usin...
#include <avr/io.h> #define F_CPU 16000000 #include <util/delay.h> #include <stdlib.h> //deklaracja portow wyswietlacza LCD #define DDR_LCD DDRD #define PORT_LCD PORTD #define RS_LCD PD2 #define EN_LCD PD3 #define DB4_LCD PD4 #define DB5_LCD PD5 #define DB6_LCD PD6 #define DB7_LCD PD7 //deklar...
#include "renderer.h" #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL_FontCache.h> #define FRAMES_PER_SECOND 60 // Internal resolution, used in rendering. Defined by SCREEN_SCALE int GAME_SCREEN_WIDTH = 640; int GAME_SCREEN_HEIGHT = 360; // Game window resolution int SCREEN_WIDTH = 1366...
/* Author: <NAME> */ #include <string.h> #include <math.h> #include "ayumi.h" static const double AY_dac_table[] = { 0.0, 0.0, 0.00999465934234, 0.00999465934234, 0.0144502937362, 0.0144502937362, 0.0210574502174, 0.0210574502174, 0.0307011520562, 0.0307011520562, 0.0455481803616, 0.0455481803616, 0.064...
/* * spcp8x5 USB to serial adaptor driver * * Copyright (C) 2010 <NAME> (<EMAIL>) * Copyright (C) 2006 Linxb (<EMAIL>) * Copyright (C) 2006 S1 Corp. * * Original driver for 2.6.10 pl2303 driver by * <NAME> (<EMAIL>) * Changes for 2.6.20 by <NAME> <<EMAIL>> * * This program is free software; you can redistr...
#include <kernel/kernutil.h> #include <kernel/console.h> #include <kernel/initrd.h> #include <kernel/heap.h> #include <kernel/elf.h> #include <kernel/task.h> #include <string.h> #include <kernel/vmm.h> #include <sys/errno.h> #include <kernel/backtrace.h> //#define ELF_DEBUG // Kernel symbols are stored here; userspac...
/* Copyright 1998 <NAME>. * * $Id$ * * Remembered set implementation. * * The set is implemented as a sequential store buffer (SSB) for recording * references, combined with a simple chaining hash table to remove * duplicates. The structure remset_data_t below has all private data. * * Sequential store buff...
/* * Copyright (C) 2018, Xilinx Inc - All rights reserved * Xilinx SDAccel Media Accelerator API * * 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://www.apache.org/licenses/LIC...
// Copyright (c) 2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdint.h> #include <string.h> /** Initialize RIPEMD-160 state. */ static void inline initialize(uint32_t* s) { s[0...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <assert.h> #ifdef NGX_HTTP_MUTLICERT_HAVE_NGXLUA #include "../ngx_http_lua_common.h" #include "../ngx_http_lua_ssl_certby.h" #endif /* NGX_HTTP_MUTLICERT_HAVE_NGXLUA */ #ifdef NGX_HTTP_MUTLICERT_HAVE_KEYLESS #include <ngx_keyless_module.h> ...
// Snipe language compiler. Free and open source. See licence.txt. #include "states.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <assert.h> // A state has a name, an index, a flag to say if it is a starting or continuing // state, an array of actions, and a couple of depth...
/* * Mathlib : A C Library of Special Functions * Copyright (C) 1998-2012 <NAME> and the R Core team. * Copyright (C) 2002-3 The R Foundation * * 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 Softwar...
/* skyeye_mach_gs32eb1.c - gs32eb1 machine simulation Copyright (C) 2003-2007 Skyeye Develop Group for help please send mail to <<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 ...
/*****************************************************************************\ ** ** ** FILE: text.c ** ** AUTHORS: <NAME> (<EMAIL>) ** ** Alexios (portin...
/* * Copyright (c) 2005 Topspin Communications. All rights reserved. * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version...
/* * Custom NGINX upstream implementation for binary manager communication. * * Copyright (C) 2018-2020 <NAME>. All Rights Reserved. * See the LICENSE file accompanying the distribution your rights to use * this software. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "ngx_http_s...
/***************************************************************************//** * @file * @brief EFM internal SPI Protocol implementation ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> *****************...
/* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ /* hgFlyBase - Parse FlyBase genes.txt file and turn it into a couple of * tables. See http://flybase.org/.data/docs/refman/refman-B.html for a * description of these files. ...
/** * kmo/kmo_base.c * Copyright (C) 2005-2012 Opersys inc., All rights reserved. */ /*******************************************/ /* INCLUDES */ #include "kmo_base.h" /*******************************************/ /* karray functions */ karray * karray_new() { karray *self = (karray *) kmo_malloc(sizeof(ka...
#include <stdint.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <sys/param.h> #include "esp_log.h" #include "bt_app_core.h" #include "bt_app_av.h" #include "esp_bt_main.h" #include "esp_bt_device.h" #include "esp_gap_bt_api.h" #include "esp_a2dp_api.h" #include "esp_avrc_api...
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * <NAME> <<EMAIL>> * * Copyright (C) 2001-2009 <NAME> * * 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 publ...
/* The MIT License (MIT) Copyright (c) 2015-? suhetao 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...
#define _XOPEN_SOURCE /* Make sure M_PI is in math.h */ #define _BSD_SOURCE /* Make sure strdup is in string.h */ #include <string.h> #include <ctype.h> #include <assert.h> #include <math.h> #include "pm_c_util.h" #include "shhopt.h" #include "mallocvar.h" #include "nstring.h" #include "ppm.h" #include "ppmdr...
/** * * @file testing_sgels.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author <NAME> * @author <NAME> * @date 2010-11-15 * @generated s Tue Jan 7 11:45:18 2014 * **/ #inc...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
#include <linux/module.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/sched.h> #include <linux/delay.h> #include <ccci_common.h> #define CCIF_DEBUG //ccif issue debug extern unsigned long long lg_ch_tx_debug_enable[]; extern unsigned long long lg_ch_rx_debug_enable[]; static int __cci...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/**HEADER******************************************************************************* * * Copyright (c) 2011 , Freescale Semiconductor; * All Rights Reserved * **************************************************************************************** * * THIS SOFTWARE IS PROVIDED BY FREESCALE "...
#include <stdlib.h> #include <stdio.h> #include <string.h> /* Headers for the C versions of the kernels */ #include "continuity.h" #include "momentum.h" #include "boundary_conditions.h" #include "time_update.h" #include "opencl_utils.h" #include "timing.h" #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <...
/* * Copyright (c) 2016 Dell 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 * * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARR...
/* * Copyright (C) 2010-2021 Arm Limited or its affiliates. All rights reserved. * Copyright (c) 2019 Nuclei Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. ...
/** * * @file testing_dgels.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author <NAME> * @author <NAME> * @date 2010-11-15 * @generated d Tue Jan 7 11:45:18 2014 * **/ #inc...
/* * Copyright (c) 2013, Swedish Institute of Computer Science. * 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 * n...
// Zorro predefined variables ////////////////////////// // redefine variables to less scary names ////////////// // deprecated (see also legacy.h) #define ExitTime g->nExitTime #define TradeExitTime g->tr->nExitTime #define Symbol g->asset->sSymbol #define Weekend g->nWeekend #define Broker g->sBroker #de...
/* 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 may not...
#include "iconic.h" #include <randomkit.h> #include <math.h> #include <stdlib.h> #include <string.h> #define SQR(a) ((a)*(a)) #define FLOOR(a)((a)>0.0 ? (int)(a):(((int)(a)-a)!= 0.0 ? (int)(a)-1 : (int)(a))) #define UROUND(a) ((int)(a+0.5)) #define ROUND(a)(FLOOR(a+0.5)) /* The following forces numpy to con...
/*****************************************************************************\ ** ** ** FILE: vised.c ** ** AUTHORS: Alexios ** **...
// Billion Star 3D Rendering Engine // <NAME> // // 3D rendering engine for the ESA Gaia EDR3 star dataset /* * BSD 3-Clause License * * Copyright (c) 2021, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
/* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * 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 requir...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2019 RDK Management * * 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 ...
/** * @file ptl_rdma.c * * @brief RDMA transport operations used by target. */ #include "ptl_loc.h" /** * @param[in] ni * @param[in] conn * * @return status * * conn must be locked */ static int rdma_init_connect(ni_t *ni, conn_t *conn) { struct rdma_cm_id *cm_id = cm_id; assert(conn->transport.typ...
/*!============================================================================= ============================================================================== \ingroup SLvision \file SL_vision_proc.c \author <NAME> \date June 1999 =================================================================...
/* Electronic Arts Multimedia File Demuxer * Copyright (c) 2004 The FFmpeg project * Copyright (c) 2006-2008 <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 Softwa...
/* Originally written by <NAME> for the OpenSSL project. * ==================================================================== * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
/* * Copyright (C) 2019 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @{ * * @file * @author <NAME> <<EMAIL>> */ #include <assert.h> #include <stdbo...
#include "TreeNode.h" /* ============================================== TreeNode Functions ============================================== */ TreeNodeData * new_tree_node_data (int response_code, enum node_colour colour) { TreeNodeData * tree_node_data; tree_node_data = g_new (TreeNodeData, 1); // allocates 1...
/* ** This C program extracts all "words" from an input document and adds them ** to an SQLite database. A "word" is any contiguous sequence of alphabetic ** characters. All digits, punctuation, and whitespace characters are ** word separators. The database stores a single entry for each distinct ** word together w...
#include <u.h> #include <libc.h> #include <draw.h> #include <thread.h> #include <cursor.h> #include <mouse.h> #include <keyboard.h> #include <frame.h> #include <fcall.h> #include <plumb.h> #include <libsec.h> #include "dat.h" #include "fns.h" int winid; void wininit(Window *w, Window *clone, Rectangle r) { Rectangle...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set expandtab shiftwidth=2 tabstop=2: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/...
/******************************************************************************* * BSD 3-Clause License * * Copyright (c) 2017 <NAME> and <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are ...
#include "parser.h" #include "scheduler.h" static uint32_t* schema = NULL; static thread_arg_t* thread_array; extern int* modes; Flush_t* last_flush = NULL; int flushes = 0; bool first_flush = true; threadpool_t* threadpool; Journal_t** processDefineSchema(DefineSchema_t *s, int *relation_count, int* modes) { uint6...
#include "ncx_slab.h" #include <unistd.h> #define NCX_SLAB_PAGE_MASK 3 #define NCX_SLAB_PAGE 0 #define NCX_SLAB_BIG 1 #define NCX_SLAB_EXACT 2 #define NCX_SLAB_SMALL 3 #if (NCX_PTR_SIZE == 4) #define NCX_SLAB_PAGE_FREE 0 #define NCX_SLAB_PAGE_BUSY 0xffffffff #define NCX_SLAB_PAGE_START 0x80000000 #define NCX_SLAB_S...
//**************************************************************************************************** //Author: <NAME> //Description: Derived from Pstack_ondemand_v1.9_cdctest_yielding_inhee.c // - PRCv13 / PMUv2 / RADv9 / SNSv7 //******************************************************************************...
// trace_skeleton.c // Trace skeletonization result into polylines // // <NAME> 2020 #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <math.h> //================================ // ENUMS //================================ #define SKEL__HORIZONTAL 1 #define S...
#include "recorder_plugin.h" #include <datadog-profiling.h> #include <php_datadog-profiling.h> #include <plugins/log_plugin/log_plugin.h> #include <components/arena/arena.h> #include <components/channel/channel.h> #include <components/string_view/string_view.h> #include <components/time/time.h> #include <ddprof/ffi.h...
/* * SDL - Simple DirectMedia Layer * CELL BE Support for PS3 Framebuffer * Copyright (C) 2008, 2009 International Business Machines Corporation * * 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 Softwa...
/* tablesTables - this module deals with two types of tables SQL tables in a database, * and fieldedTable objects in memory. It has routines to do sortable, filterable web * displays on tables. */ #include "common.h" #include "hash.h" #include "obscure.h" #include "linefile.h" #include "jksql.h" #include "jsHelper.h...
#include <hre/config.h> #include <fcntl.h> #include <ftw.h> #include <limits.h> #include <ltdl.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dm/dm.h> #include <hre/unix.h> #include <hre/user.h> #include <ltsmin-lib/ltsmin-standard.h> #include <pins-lib/pins-util.h> ...
/* * Copyright (c) 2007 - 2020 <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...
#ifndef BUILD_LK #include <linux/string.h> #else #include <string.h> #endif #include "lcm_drv.h" #ifdef BUILD_LK #include <platform/mt_gpio.h> #include <platform/mt_pmic.h> #include <platform/mt_i2c.h> #elif defined(BUILD_UBOOT) #else #include <mach/mt_gpio.h> #include <mach/mt_pm_ldo.h> #endif // --------------...
#pragma once // macro utilities, based on: // http://saadahmad.ca/cc-preprocessor-metaprogramming-basic-pattern-matching-macros-and-conditionals/ // https://github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms#deferred-expression #define M_MAX_ARITHMETIC 126 // Max number to be used in arithmetic #...
/* Copyright (C) 2007-2013 Open Information Security Foundation * * You can copy, redistribute or modify this Program 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 be useful, * but WITHOUT ANY...
/* * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2017, 2020 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_ssd1963.h" /******************************************************************************* * Definitations *********************************...
/* $OpenBSD: day.c,v 1.23 2010/04/28 18:20:15 jsg Exp $ */ /* * Copyright (c) 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdarg.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "../tools/pdp6common.h" #include "threading.h" #define nelem(a) (sizeof(a)/sizeof(a[0])) #define nil NULL #define print printf #define fprint fprintf typedef uint32_t u32;...