text
stringlengths
3.12k
18.7k
/*---------------------------------------------------------------------------- * Copyright (c) Huawei Technologies Co., Ltd. 2013-2020. All rights reserved. * Description: Ota Sota Hal * Author: Huawei LiteOS Team * Create: 2013-01-01 * Redistribution and use in source and binary forms, with or without modificatio...
/* * * Harware Handler Interface * */ #include "hw_handlers.h" #include "mmap.h" #include "memory.h" #include "interrupt.h" #include "klibc.h" #include "vm.h" #include "fs/file.h" #include "process.h" #include "kthread.h" /* copy vector table from wherever QEMU loads the kernel to 0x00 */ void init_vector_table(...
/************************************/ /* name: okul.h date: 2017 */ /************************************/ #define PUTS_BUFFER_LIMIT 100 #define READ_BUFFER_LIMIT 100 #define check_control(control) (control >= 0)?0:-1 #define stream_control(stream) if (stream == NULL){ stu_error ("Hata: Akış...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * umloperation.c : refactored from uml.c, class.c to final use StdProps * PROP_TYPE_DARRAY, a list where each element is a set * of properies described by the same StdPropDesc * Copyright (C) 2005 <N...
#include "engine.h" #include "hex.h" #include "hextile.h" #include "perlin_noise2d.h" int mouse_is_down = 0; struct map_pos center_pos = {0,0}; struct map_pos scroll_pos; struct screen_pos mouse_pos = {0,0}; struct screen_pos current_mouse_pos = {0,0}; struct tileset *glob_tiles = NULL; static void init(void **data) ...
/* $OpenBSD: usrdb.c,v 1.9 2010/08/30 16:14:36 matthew Exp $ */ /* * Copyright (c) 1994 <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 ret...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.0.0 * svn version: exported * Options: --check-global -s 1731 * Seed: 1731 */ #include "random_runtime.h" long __undefined; /* --- Struct/Union Declarations --- */ struct S0 { uint32_t f0; volatile uint32_t f1; int8_t f2; ...
/* This file is provided under a dual BSD/GPLv2 license. When using or redistributing this file, you may do so under either license. GPL LICENSE SUMMARY Copyright(c) 2021 Cornelis Networks. Copyright(c) 2018 Intel Corporation. This program is free software; you can redistribute it and/or modify it un...
#include <stdio.h> #include <stdarg.h> #include <string.h> #include <strings.h> #include <ctype.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include <pthread.h> #include <syslog.h> #include <errno.h> #include "xprint.h" /* global variables */ unsigned int glTaskTraceMask = FMS_CLB | FMS_DBM ...
/****************************************************************************** * qHttpd - http://www.qdecoder.org * * Copyright (c) 2008-2012 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <stdbool.h> #include <pthread.h> #include <sys/epoll.h> #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <netdb.h> #include <time.h> #include "Tests/minunit.h" #include "Tests/Reque...
#include "mmcc.h" static char *cur_filename; static char *cur_input; void error(char *fmt, ...) { va_list arg; va_start(arg, fmt); vfprintf(stderr, fmt, arg); fprintf(stderr, "\n"); exit(1); } // report an error message in the following format and exit void verror_at(int line_num, char *loc, cha...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/rcache/t_rcfile2.c - rcache file version 2 tests */ /* * Copyright (C) 2019 by the Massachusetts Institute of Technology. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are per...
/*!============================================================================= ============================================================================== \ingroup SLtask \file SL_sine_task.c \author <NAME> \date 1999 ========================================================================...
// (C) Copyright 2020-2021, <NAME>. All rights reserved. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <mysql.h> #include <time.h> #include <libconfig.h> #define CONFIG_FILE "/usr/local/etc/zappi.cfg" void exit_on_error(char* call, MYSQL *con) { fprintf(st...
/* * Copyright (c) 2015 Jonas '<NAME>. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
#include "../../src/AwFmIndexStruct.h" #include <immintrin.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdint.h> #include <getopt.h> #include <time.h> //without cache stuff (using same vector), awFmVectorPopcountShift is ~8% faster than mula size_t length; volatile s...
/* $Xorg: HVCMxV.c,v 1.3 2000/08/17 19:44:37 cpqbld Exp $ */ /* * 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. TekColor is a * ...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
/* spectrum - quick an dirty spectrum analyzer Written in 2012 by <<NAME>> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have receive...
/* Simple proxy from raw terminal to erlang server. */ #include <sys/socket.h> #include <sys/select.h> #include <sys/un.h> #include <sys/ioctl.h> #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> #include <term....
/** * Copyright 2006 <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 w...
/* Simple session layer for multiple perf events. */ /* * Copyright (c) 2015, Intel Corporation * 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 s...
#include "gateway.h" char** createCharArray(int m, int n) { int i; char* values; char** rows; values = calloc(m*n, sizeof(float)); rows = malloc(n*sizeof(float*)); for(i=0; i<n; ++i){ rows[i] = values + i*m; } return rows; } void destroyCharArray(char** arr) { free(*...
/****************************************************************************** * * Copyright (C) 2009 - 2014 Xilinx, 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 Softw...
/****************************************************************** ***** ***** ***** Name: display.c ***** ***** modified version of <NAME> ***** ***** Includes only display specific code. ***** ...
/* * Copyright (c) 2008 <NAME> (snavely (at) cs.washington.edu) * and the University of Washington * * 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, ...
/***************************************************************** * Program magni_to_photons * To convert magnitude to flux in photons/second * * Formulae: magni = -2.5 log10 (e/e0) * or e = e0 10**(magni/-2.5) * Cf Lena p90, in V: e0=3.92e-8 W/m2/micrometer * (previous version: 30-03-1993) * * JLP * Version 3...
/* * adfread.c * * Read Amiga Disk File (ADF) images and write contents to a local directory * in the host environment. * * Written in 2011 by <NAME> */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unis...
/** * @file memory_allocator.c * @brief * @author WeixiongLin (<EMAIL>) * @version 1.0 * @date 2020-12-21 * * @copyright Copyright (c) 2020 WeixiongLin * * @par 修改日志: * <table> * <tr><th>Date <th>Version <th>Author <th>Description * <tr><td>2020-12-21 <td>1.0 <td>WeixiongLin <td>内容 * </t...
/* legend define draw_method as the corresponding macro based on the platform to build DRAW_NCONS: building to console with native libraries. DRAW_NCURS: building to console with ncurses libraries + native. DRAW_GRAPH: building to sdl (in progress). */ FILE *fp_global; #define DRAW_NCONS 1 #def...
/* * This file is a part of Poly2Tri-C * (c) <NAME> <<EMAIL>> * http://code.google.com/p/poly2tri-c/ * * 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 cod...
/* SPDX-License-Identifier: MIT * Copyright (c) 2014-2021 <NAME> */ #include "../inc/kos_constants.h" #include "../inc/kos_error.h" #include "../inc/kos_instance.h" #include "../inc/kos_memory.h" #include "../inc/kos_object.h" #include "../inc/kos_string.h" #include "../inc/kos_system.h" #include "../inc/kos_threads...
/*- * Copyright (c) 2017-2019 * <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, thi...
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
/****************************************************************************** * * Copyright (c) 2019 Intel. * * 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.apac...
#include <pthread.h> #include <stdio.h> #include <assert.h> #include "rdef_common.h" #include "rdefender.h" #include <unistd.h> #include "rdef_net.h" #include "rdef_react.h" #include "rdef_signal.h" #define RDEF_MAX_PROCS 17 #define rdef_cmdsvr_conf() (&rdef_cmdsvr_conf_buff) #define RDEF_CMD_STRS \ "rdef_ac...
#include <stdio.h> #include <mpi.h> #include <unistd.h> #include<stdlib.h> #define TRUE 1 #define FALSE 0 #define MASTER_RANK 0 #define SUB_MASTER_RANK 1 #define NUM_MACRO_MESO_ITER 5 #define NELX_MACRO 35 #define NELY_MACRO 35 void callMatlab(int mode, int macro_meso_iteration, int element); int main ( int argc, c...
/* See the file "COPYING" for the full license governing this code. */ #include "dcp.h" #include "handle_args.h" #include "treewalk.h" #include "copy.h" #include "cleanup.h" #include "compare.h" #include <getopt.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <inttypes.h> /** Options specifie...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <SDL2/SDL.h> #define WIDTH 320 #define HEIGHT 240 #define nil NULL #define MAX(a,b) ((a)>(b) ? (a) : (b)) #define MIN(a,b) ((a)<(b) ? (a) : (b)) SDL_Surface *pixmap; SDL_Surface *screen_surface = NULL; SDL_Surface *bitmap_font_surface = NULL; SDL_Win...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
// // internal.c // memory allocation and innards // // (c) 2008 why the lucky stiff, the freelance professor // #include <stdio.h> #include <stdlib.h> #include <string.h> #include "potion.h" #include "internal.h" #define TYPE_BATCH_SIZE 64 PN PN_allocate, PN_break, PN_call, PN_compile, PN_continue, PN_def, PN_del...
#include "MessageDecoder.h" #include "Boot.h" #include "Cpu.h" #include "../../EurorackShared/Eeprom.h" #include "../../EurorackShared/DAC_BitBang.h" void ShiftOut(){} int32_t avg = 9000; int32_t min = 9000; int32_t max = 9000; int32_t totalblocks =0 ; int32_t totalblocksflashed =0 ; int32_t totalchunksreceived = ...
#include "headerT2.h" /* ---------- Início das Funções de Criação. ---------- */ /* Inicializa o grafo. */ Grafo* criar_grafo (int tamanho) { int v; Grafo *G = (Grafo *)malloc(sizeof(Grafo)); G->E = 0; G->V = tamanho; G->listaAdj = (Vertice **)malloc(tamanho * sizeof(Vertice *)); for (v = 0; v < G->V; v...
#include "renderer_hardware.h" #include <stdio.h> #include <stdlib.h> #include <GL/glew.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "panic.h" /** vertices cover the entire screen. */ static const struct { float x, y; /* float r, g, b; */ } vertices[] = { { -1.0f, -1.0f, }, // 1.0f, 0.0...
/** * mdfourier-amiga * Copyright (C) 2022 <NAME> <<EMAIL>> * * main.c * Program entry point. */ #include <clib/alib_protos.h> #include <hardware/cia.h> #include <hardware/custom.h> #include <hardware/dmabits.h> #include <proto/dos.h> #include <proto/exec.h> #include <stdbool.h> #include <stdint.h> #include <st...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
/* ****************************************************************************** File: main.c Info: Generated by Atollic TrueSTUDIO(R) 9.3.0 2020-01-28 The MIT License (MIT) Copyright (c) 2019 STMicroelectronics Permission is hereby granted, free of charge, to any person obtaining a copy of...
#include "utils.h" #include <stdlib.h> #include <string.h> #include <errno.h> #include <stdio.h> #ifdef _WIN32 #include <Windows.h> #include <process.h> #else #include <unistd.h> #endif #ifdef _WIN32 static const unsigned __int64 EPOCH = ((unsigned __int64)116444736000000000ULL); #endif nodeval_t **alloc_2d(const...
/*- * Copyright (c) 2007, 2008 <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...
/*------------------------------------------------------------------------ * Copyright 2007-2009 (c) <NAME> <<EMAIL>> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser Public License as...
#include "rpgmap.h" #include <event.h> static Box map[100][100]; static Image *grey; static Image *canvas; static Box box(Rectangle r) { Box b; Rectangle t; Point p; t = Rect(r.min.x+Wallpt, r.min.y, r.max.x, r.min.y+Wallpt); b.top = (Wall){ t, nil }; t = Rect(r.min.x, r.min.y+Wallpt, r.min.x+Wallpt, r.max.y);...
/* * 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 above copyright * notice, this list of conditions an...
/* Demo for TroglOS * ______ * .-------. /\ \ * / o /| /o \ o \ * /_______/o|/ o\_____\ * | o | |\o /o / * | o |o/ \ o/ o / * jgs | o |/ \/____o/ * '-------' */ #include <ctype.h> #include <poll.h> #inclu...
/************************************************************ * HMMER - Biological sequence analysis with HMMs * Copyright 1992-1995 <NAME> * * This source code is distributed under the terms of the * GNU General Public License. See the files COPYING and * GNULICENSE for details. * ***********************...
/* Linux-specific ptrace manipulation routines. Copyright (C) 2012-2013 Free Software Foundation, Inc. This file is part of GDB. 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...
/* drv-x11.c : X11 driver */ /*- * Copyright (c) 2019 <NAME> * * 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 conditi...
/** * @file main.c * @author <NAME> * @date 2015-02-11: Created * @date 2015-02-15: Last updated * @date 2015-02-16: Complete re-write * @brief Emulate a print server system * @copyright MIT License (c) 2015, 2016 */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,...
#include "py/obj.h" #include "pin.h" // Returns the pin mode. This value returned by this macro should be one of: // GPIO_MODE_INPUT, GPIO_MODE_OUTPUT_PP, GPIO_MODE_OUTPUT_OD, // GPIO_MODE_AF_PP, GPIO_MODE_AF_OD, or GPIO_MODE_ANALOG. //The GPIO ALT #define IfxPin_Mode_inputNoPullDevice 0 /**< \brief Input No p...
/** * @file hal_nvmem.c * @author * @version * * @brief Non-volatile memory part of the Hardware Abstraction Layer. * */ #include <stdbool.h> #include <stdint.h> #include "../drivers/sdcard/SDCard.h" #include "../drivers/stdio/emb-stdio.h" #include "string.h" #include "hal.h" static bool sdcard_init(uint32_t); ...
#include <stdlib.h> #include "instructions.h" #include "nes.h" static int zero_flag; static int sign_flag; static int overflow_flag; static int break_flag; static int decimal_flag; static int interrupt_flag; static int carry_flag; static unsigned int addr; static unsigned int program_counter; static unsigned int tmp, ...
/** * @file h3_uart.c * */ /* Copyright (C) 2021 by <NAME> mailto:<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...
#include "commands.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> //Get a line for 'stdin' and return the string containing that line char * getCommand(){ char * command = NULL; size_t size; if(getline(&command, &size, stdin) == -1) return NULL; return command; } //C...
/* * @(#)xv_canvas.c 2.6 11/29/91 * * XView preview for HIPS-2 images V1.0 * * Author: <NAME> * (c) The Turing Institute * * Fri Aug 9 17:06:10 BST 1991 * * xv_canvas.h : */ #include <X11/cursorfont.h> #include "xv_frame.h" #include <xview/canvas.h> #include "xv_animation.h" #include "appl.h" #include ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "proto.h" #include "ngbtree3d.h" void allocate_3d(int Nsize); void set_particle_pointer(int Nsize, float* x, float* y, float* z, float* vx, float* vy, float* vz, float* mass); void free_memory_3d(int Nsize); void kernel_main(doubl...
/* * gy_88.c * * Created on: Dec 26, 2021 * Author: <NAME> */ #include "gy_88.h" // Stores the current orientation of the MPU6050 Gyro_PositionTypeDef gyro_pos; // Last time measured since last MPU6050 reading uint32_t gyro_last_timer_count; // If the MPU6050 has been initialized enum gyro_state_enum { ...
// Intel notes - cf. InstructionSet-A-M-253666.pdf - section 2.1; InstructionSet-N-Z-253667.pdf section B.1/B.2 : // b prefix = binary code // ----------------------------------------------------------------------- // instuction format ( in bytes ) // prefixes opcode modRm sib disp immediate // 0 - 4 1...
/* * Copyright 2012, 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 cond...
#include "lily_alloc.h" #include "lily_vm.h" #include "lily_value.h" #include "lily_seed.h" lily_hash_val *lily_new_hash_val() { lily_hash_val *h = lily_malloc(sizeof(lily_hash_val)); h->gc_entry = NULL; h->refcount = 1; h->visited = 0; h->num_elems = 0; h->elem_chain = NULL; return h; } ...
#if __APPLE__ /* In Mac OS X 10.5 and later trying to use the daemon function gives a “‘daemon’ is deprecated” ** error, which prevents compilation because we build with "-Werror". ** Since this is supposed to be portable cross-platform code, we don't care that daemon is ** deprecated on Mac OS X 10.5, so we use this p...
/********************************************************************** Copyright(c) 2011-2018 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source co...
/* Bluetooth Gamepad Firmware The Circuit Push Button (x14) -5V to push button -10k resistor from GND to pushbutton -SN74HC165N data input to 10K resistor Thumb Joystick (x2) -VCC to 5V -VERT to arduino analog pin -HORZ to arduino analog pin -SEL to arduino digital pin, 10k resistor to ard...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> // Defines a spot on the board typedef enum { empty = -1, x = 1, o = 0 } spot; // Defines all possible game(board) states typedef enum { xwin, owin, tie, nowin } gamestate; // Defines a node, used to make a tree of all possible board states typedef struct...
/* * Copyright (c) 2019-2021 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 appli...
/* compile with: gcc -O0 -o SDS_transfer_rename SDS_transfer_rename.c -I/usr/local/TOOLKIT/SDPToolkit_gfortran44-5.2.17/hdf/linux64/hdf-4.2.5/include/ \ -L/usr/local/TOOLKIT/SDPToolkit_gfortran44-5.2.17/hdf/linux64/hdf-4.2.5/lib/ -lmfhdf -ldf -ljpeg -lz -lsz -lm */ #include <ctype.h> #in...
#include <stdio.h> #include <math.h> #include "mvtrialanderror.h" #define TRUE 1 #define FALSE 0 //compile for windows: //tcc -mwindows -o graph3D.exe graph3D.c mvtrialanderror.c //compile for linux: //tcc -lm -o graph3D mvtrialanderror.c graph3D.c //execute directly with: //tcc mvtrialanderror.c -run graph3D.c //v...
/* * Copyright 2016-2017 China Mobile, 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 ag...
/* * Copyright (c) 2007, 2008 University of Tsukuba * 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 ...
/* * lighty memory profiler * prints a backtrace for every object not free()d at exit() * */ #include <lighttpd/settings.h> #include <lighttpd/profiler.h> #include <lighttpd/utils.h> #include <fcntl.h> #ifdef HAVE_EXECINFO_H # include <execinfo.h> #endif #if defined(LIGHTY_OS_MACOSX) # include <malloc/malloc.h...
#include <unistd.h> // NOTE: Needs `cirq` as a library #include "cirq/benchmark.h" #include "grid.h" #include "utils.h" #include "terminal_control.h" #define WIRE(_i) ((wire_t*) grid->fields[_i]->wire) void get_coor_from_stdin(uint8_t *x, uint8_t *y); void get_coor_from_stdin(uint8_t *x, uint8_t *y) { // Read n...
#include <stdint.h> #include <string.h> #include "RVCOS.h" #include "Data.h" #include "Map.h" #define DEFAULT_COLOR_WHITE 0x0F #define DEFAULT_COLOR_BLACK 0x10 #define DEFAULT_COLOR_TEAL 0x06 #define SCREEN_WIDTH 0x200 #define SCREEN_HEIGHT 0x120 #define SPRITE_WIDTH 0x10 #...
#include <CUnit/Basic.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <openssl/bio.h> #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/pem.h> #include <openssl/x509.h> #include <openssl/x509_vfy.h> #include <openssl/x509v3.h> #include <openssl/ocsp.h> #include <openssl/asn1...
/* $Id 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, or (at your option) any later version. This program is distributed in the hope that it will be u...
/* * Write a cross-referencer that prints a list of all words in a document, and for each word, a list of the line numbers * on which it occurs. Remove noise words like "the" and "and" so on. * */ /* * 1. Add all the word structures (word structure will have word and line numbers to the tree. * 2. A word can o...
/******************************************************************** * BenchIT - Performance Measurement for Scientific Applications * Contact: <EMAIL> * * $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $ * $URL: svn+ssh://<EMAIL>@<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/communication/bandwidth/C/MPI/...
/*---------------------------------------------*/ /* >>>Slip<<< */ /* <NAME> */ /* VUB Software Languages Lab */ /* (...
//++ // // Copyright (C) Microsoft Corporation, 1987 - 1999 // // Module Name: // // regutil.c // // Abstract: // // Queries into network drivers // // Author: // // Anilth - 4-20-1998 // // Environment: // // User mode only. // Contains NT-specific code. // // Revi...
/******************************************************************************* * utest-config.c * * Configuration parameters parsing * * Copyright (c) 2016 Cogent Embedded Inc. ALL RIGHTS RESERVED. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
/****************************************************************************** @{ @file TEM.c @brief TEM measurement of water quality. @par Revision History: @version V0.2 @author ADI @date Feb 2020 @par Revision History: - V0.2, Feb 27th 2020: initial version. Description: -- For TEM (tempere...
#include <math.h> #include <stdio.h> #include "Python.h" #include "fortran.h" #include "blas.h" #define SPMATRIX_UNIQUE_SYMBOL itsolvers_spmatrix #include "spmatrix.h" #include "gmres.h" #define SpMatrix_PRECON(prec_obj, n, x, y) \ {if (SpMatrix_Precon((prec_obj),(n),(x),(y))) return -1;} #define SpMatrix_MATV...
/* 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...
// SPDX-License-Identifier: GPL-2.0-only /* * motu-protocol-v2.c - a part of driver for MOTU FireWire series * * Copyright (c) 2015-2017 <NAME> <<EMAIL>> */ #include "motu.h" #define V2_CLOCK_STATUS_OFFSET 0x0b14 #define V2_CLOCK_RATE_MASK 0x00000038 #define V2_CLOCK_RATE_SHIFT 3 #define V2_CLOCK_SRC_MAS...
/* $OpenBSD$ */ /* * Copyright (c) 2017 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause OR Arm’s non-OSI source license */ #define CC_PAL_LOG_CUR_COMPONENT HOST_LOG_MASK_SECURE_BOOT /************* Include Files ****************/ #include "secureboot_basetypes.h" #include "secu...
/* * FreeRTOS Kernel V10.3.0 * Copyright (C) 2017 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, includ...
/* * qsolve.c: direct approach at solving some polynomial equations * See `psolve.c' for the slow approach, needed for equations too complex. */ #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <math.h> /* * Since the Renaissance, it was proven impossible to direct solve * beyond degree MAX_P...
#include "infra_types.h" #include "soc_api.h" #include "kal_public_defs.h" #include "kal_public_api.h" #include "kal_general_types.h" #include "soc_api.h" extern kal_uint32 g_ali_nwk_account_id; unsigned int get_cur_time(void) { unsigned int tick, cur_time; kal_get_time(&tick); cur_time = k...