text
stringlengths
3.12k
18.7k
#include "msp430x54x.h" #include "hal_lcd.h" #include "board_defs.h" //#include <stdlib.h> //#include <math.h> #include "pong.h" char SCORE[9] = {"S" "C" "O" "R" "E" " " " " " " "\0"}; /* Erase the ball at it's current location * MUST BE CALLED BEFORE THE BALL IS DRAWN */ void eraseBall(Ball *myBall) { ...
/* * Copyright (C) 1999-2010 <NAME> <<EMAIL>, http://www.alomax.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later versi...
#include <string.h> #include <lua.h> #include <lauxlib.h> #include <lualib.h> #include "ircclient.h" #define CALL(f, L, ...) \ ircclient_##f(*(void**)lua_getextraspace(L), ##__VA_ARGS__) static char module_key; static command_cb command_hook_entry; static message_cb message_hook_entry; struct callback_node { ...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com */ #include <linux/kernel.h> #include "k3-psil-priv.h" #define PSIL_PDMA_XY_PKT(x) \ { \ .thread_id = x, \ .ep_config = { \ .ep_type = PSIL_EP_PDMA_XY, \ .mapped_channel_id...
/* * Laplace Equation with Visualizer * Copyright 1999 Real World Computing Partnership * Written by <NAME>, <EMAIL> * * This example is used in the RWCP Video */ #include <stdio.h> #include <mpi.h> #include <math.h> #include <X11/Xlib.h> #define YSIZE 32 #define XSIZE 128 #define EPS 1.0e-6 #define SCALE 4 #d...
/* (c) Copyright 2000-2002 convergence integrated media GmbH. All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>> and <NAME> <<EMAIL>>. This file is subject to the terms and conditions of the MIT License: Permission is hereby granted, free of c...
/* Standard C Includes */ #include <stdio.h> #include <inttypes.h> /* BSP & Xilinx Includes */ #include <xparameters.h> #include <xenv.h> #include <xuartlite.h> /* Project includes */ #include <platform.h> #include <scheduler.h> #include <lcd_cfg.h> #include <rtc.h> #include "lcd.h" /********************* * 01234...
/* * Copyright (C) 2016 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
#include <stdio.h> #include "scanlines.h" #include "minmax.h" // Bilinear subpixel sampling. void sample_line_subpixel(IplImage *input, double x1, double y1, double x2, double y2, int width, float *samples) { double dx = x2 - x1; double dy = y2 - y1; int fx = cvRound(x1); if (fx < 0) fx = 0; if (fx > ...
/* Jitter RNG: Noise Sources * * Copyright (C) 2021, <NAME> <<EMAIL>> * * License: see LICENSE file in root directory * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ui_filters.c :+: :+: :+: ...
#include <assert.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef int KeyType; typedef int ValueType; /** Doubly linked list definition */ struct Node_Record; typedef struct Node_Record *Node; typedef struct { KeyType key; Node ptr; } EntryType; enum Node_Type { ENTRY, ...
/* Copyright (c) 2017, <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditi...
/* all code in this file is original, and was written by: * * <NAME> * COMPLETED MAY 4TH, 2021 * * for * * B-MINOR COMPILER, v1.0 * * * in CSC-425: "Compilers and Interpreters" taught by Professor <NAME>, * over the course of the Spring 2021 semester. I understand that keeping this * code in a public rep...
/* * FIG : Facility for Interactive Generation of figures * Copyright (c) 1985-1988 by <NAME> * Parts Copyright (c) 1989-2015 by <NAME> * Parts Copyright (c) 1991 by <NAME> * Parts Copyright (c) 2016-2020 by <NAME> * * Any party obtaining a copy of these files is granted, free of charge, a * full and unrestrict...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved. * Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. * Copyright (c) 2014 Los Alamos National Security, LLC. All rights * re...
/** * \file * \brief Code synthesizer for bfdmux filters * * This file provides functions to create byte code in Bfdmux Intermediate Language * from filter strings. This byte code can be executed using the functions in vm.c * to filter network packets. */ /* * Copyright (c) 2009, 2010, ETH Zurich. * All rights...
#include <jni.h> #include <android/log.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <GLES2/gl2.h> #include "debug.h" #include "native_main.h" #include "engine.h" #include "matrix.h" #include "shaders.h" #include "gamearea.h" #include "player_fire.h" #include "object.h" ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <pthread.h> #include <netdb.h> #include "clogger/clogger.h" #pragma clang diagnostic push #pragma ide diagnostic ign...
/* * File: sysinit.c * Purpose: Kinetis Configuration * Initializes processor to a default state * * Notes: * */ #include "common.h" #include "sysinit.h" #ifdef DDR_INIT #include "sdram.h" #endif /********************************************************************/ /* Actual system...
// // Flow.c // Flow // // Created by <NAME> on 06/06/2012. // Copyright (c) 2012 Mountainstorm // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including w...
/* See LICENSE for licence details. */ #include <X11/Xatom.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/keysym.h> #define XK_NO_MOD UINT_MAX enum { /* default terminal size 80x24 (8x16 dot font) */ TERM_WIDTH = 640, TERM_HEIGHT = 384, }; struct keymap_t { KeySym keysym; unsigned int mask; char...
// This is free and unencumbered software released into the public domain. // For more information, please refer to <https://unlicense.org> // bbbbbr 2020 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include "common.h" #include "list.h" #include "banks.h" #inclu...
/*$ Copyright (c) 2014-2017, Azel All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <fcntl.h> // for struct addrinfo #include <netdb.h> // for STDIN_FILENO #include <unistd.h> // for poll #include <poll.h> // for strlen #include <string.h> // for time #include <time.h> // for h...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <ctype.h> #include <limits.h> #include <sys/stat.h> #define nil NULL #define nul '\0' #define debugprnt printf("here? %d\n", __LINE__) /* next step would be to * make the cmd into a * char *, so that we can ...
/*++ Copyright (c) 1999 Microsoft Corporation Module Name: iso.c Abstract: Constructs and handle iso transfers. Environment: kernel mode only Notes: Revision History: 1-1-00 : created --*/ #include "common.h" #ifdef ALLOC_PRAGMA #endif // non paged functions ...
/* * Copyright (c) 2018-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, publish...
#include <stdio.h> #include <assert.h> #include <stdlib.h> #include <math.h> #include <inttypes.h> #include <string.h> #include "num.h" void num_init(struct num *num) { num->type = TYPE_INT; num->unit = UNIT_BTC; num->intval = 0LL; } void error_any() { fprintf(stderr, "error: --price argument required when u...
/* author = '<NAME>' email = '<EMAIL>' version = '1.0.2' date = '05-Jan-2016' license = 'BSD-3' copyright = 'Copyright 2013-2016 <NAME>' BSD3_LICENSE = """ Copyright (c) 2015, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pr...
/********************************************************** * Copyright 2022 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 without * restriction, ...
/* bu_humanize_number is derived from FreeBSD's libutil implementation of * humanize_number.c, v 1.14 2008/04/28 * * Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc. * Copyright 2013 <NAME> <<EMAIL>> * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundatio...
/* * Test network address functions for IPv6. * * The canonical version of this file is maintained in the rra-c-util package, * which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. * * Written by <NAME> <<EMAIL>> * Copyright 2005, 2013, 2016-2018, 2020 <NAME> <<EMAIL>> * Copyright 2009-201...
/* * 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 * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in ...
/* * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/* * emif4.c * * AM33XX emif4 configuration file * * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ * * 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 ve...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <sys/select.h> #include <sys/time.h> #include <unistd.h> #include "esp8266.h" #include "socket_esp8266.h" #include "MQTTClient.h" #include "../common/config.h" extern int serial_open_nonblock(const char *devpath); static const char *portname = "/d...
#include <stdio.h> #include <string.h> #include "hstio.h" #include "hstcal.h" #include "c_iraf.h" #include "imphttab.h" /* Function to implement a self-test of this library */ int main(int argc, char **argv){ void c_irafinit (int, char **); void compute_values(char [], char [], double, float, float, FILE *); ...
/* * 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...
#include <sys/ioctl.h> #include <assert.h> #include <pthread.h> #include <stdio.h> #include <string.h> #include "iniparser/iniparser.h" #include "ite/itp.h" #include "ctrlboard.h" #include "scene.h" #define INI_FILENAME "ctrlboard.ini" Config theConfig; static dictionary* cfgIni; static bool cfgIsSaving; static bool...
/* Zgv v3.1 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux. * Copyright (C) 1993-1998 <NAME>. See README for license details. * * rbmenu.c - routines for right-button menus. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "zgv_io.h" #include "3deffects.h" #include "font.h" #in...
#include <stdio.h> #include <math.h> #include <allegro5/allegro.h> #include <allegro5/allegro_image.h> #include <allegro5/allegro_tiled.h> #define FPS 60 #define MAP_DIR "../assets" #define MAP_FILE "map1.tmx" #define SPRITE_TILE_FILE "sprites/character.png" #define BG_WIDTH 640 #define BG_HEIGHT 480 #define BG_...
/* Copyright 2015, Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
#include "qrmask.h" struct mask *init_mask(char *qr, size_t size) { struct mask *mask = malloc(sizeof(struct mask)); if (mask == NULL) err(EXIT_FAILURE, "mask"); mask->mask0 = malloc(size * size); if (mask->mask0 == NULL) err(EXIT_FAILURE, "mask"); mask->mask1 = malloc(size * size...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <json-c/json.h> #include <curl/curl.h> #include "ticker.h" int main (int argc, char **argv) { json_object *json; json_object **pjson = &json; int res; /* Check inputs */ if (argc == 1) { fprintf(std...
/* * This file is part of the coreboot project. * * Copyright (C) 2009 coresystems GmbH * Copyright (C) 2014 Google Inc. * Copyright (C) 2017 Intel Corporation. * * 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 ...
/* functions for managing a stack of file and buffer input streams. */ /* Copyright (c) 2001, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: o Redistributions of source code must re...
/************************************************************** * Compile: * gcc -Wall -fpic -shared -I/usr/include/python${version} tap.c -o tap.so * ${version} is the version number of python, such as 2.7. * * Use: * import tap * fd = tap.open(name, type='tap', block=True) * data = tap.read(fd, 8192) *...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, prop...
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <time.h> #include "rfs.h" #define error_printf printf #define debug_printf if( debugLevel>0 ) printf #define MAX_FILES 256 #define MAX_ARGS 256 void closeFiles(); void dummy_printf(char *ptr,....
#include "video_gr.h" /* Constants for VBE 0x105 mode */ /* The physical address may vary from VM to VM. * At one time it was 0xD0000000 * #define VRAM_PHYS_ADDR 0xD0000000 * Currently on lab B107 is 0xF0000000 * Better run my version of lab5 as follows: * service run `pwd`/lab5 -args "mode 0x105" */ #d...
#include <math.h> #include <stdio.h> #include <time.h> extern void upup_(int *L1,int *L2, int *L3,int *L4,double *s,double *t,double *u,int *iz,double *har,double *hai); extern void downdown_(int *L1,int *L2, int *L3,int *L4,double *s,double *t,double *u,int *iz,double *har,double *hai); extern void flagset_(int *iqed...
/* * FILE: jpeg.c * AUTHORS: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Copyright (c) 2005-2011 CESNET z.s.p.o. * * Redistribution and u...
// This file contains the implementation of the getPublicKey command. It is // broadly similar to the signHash command, but with a few new features. Since // much of the code is the same, expect far fewer comments. // // A high-level description of getPublicKey is as follows. The user initiates // the command on their ...
#include "comm/crc.h" // Reflect bit order of a byte static uint8_t reflect(uint8_t in) { static const uint8_t table[] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 0x18, 0...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <errno.h> #include <getopt.h> #include <sys/stat.h> #include "db/DB.h" #include "lib/pass.h" #include "dalign/align.h" #include "dalign/filter.h" #define TRIM_BIONANO_SINGLETON (1 << 0) // was not inc...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (C) 2014 Intel Corporation * */ #include <stdbool.h> #include <stddef.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include "hal-log.h" #include "hal.h" #include "hal-msg.h" #include "ipc-common.h" #includ...
/** * @file main.c */ #include <blebs_base.h> uint8_t blePacket1[] = { /* Preamble */ 0xAA, /* Access Address */ 0xD6, 0xBE, 0x89, 0x8E, /* Header */ ...
#include <stdlib.h> #include <stdio.h> #include <mpi.h> #include <math.h> #include "stack.h" #include "math_function.h" #define MAX_SIZE 1e-16 #define FALSE 0 #define TRUE 1 #define PROCESSAR 1 #define LIBERAR 2 #define DIVIDIR 3 #define PROCESSADO 4 int function_id; double F(double arg) { math_func_def math_fun...
/* ################################################################### ** Filename : main.c ** Project : Solindar_pro ** Processor : MC9S08QE128CLK ** Version : Driver 01.12 ** Compiler : CodeWarrior HCS08 C Compiler ** Date/Time : 2019-11-01, 11:18, # CodeGen: 0 ** ...
/* mysock_api.c--application interface to the mysocket layer */ #include <stdio.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "mysock.h" #include "mysock_impl.h" #include "network_io.h" #include "con...
/* * Copyright (C) 2022 Arm Limited or its affiliates. * * 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. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 ...
#include "bench_mouvement_SIMD.h" // chronometrie static int iter, niter = 4; static int run, nrun = 5; static double t0, t1, dt, tmin, t; static double cycles; void mesure_routine_FD_SIMD(void) { int si0, si1, sj0, sj1; int vi0, vi1, vj0, vj1; vuint8** img0 = LoadPGM_vui8matrix("car3/car_3000.pgm", &si0, &si...
/**@file * This file is part of the TASTE Runtime Common. * * @copyright 2021 N7 Space Sp. z o.o. * * TASTE Runtime Common was developed under a programme of, * and funded by, the European Space Agency (the "ESA"). * * Licensed under the ESA Public License (ESA-PL) Permissive, * Version 2.3 (the "License"); *...
/* bobmethod.c - method types */ /* Copyright (c) 2001, by <NAME> All rights reserved */ #include "bob.h" /* method handlers */ static BobValue BIF_Decode(BobInterpreter *c); static BobValue BIF_Apply(BobInterpreter *c); /* virtual property methods */ /* Method methods */ static BobCMethod methods[...
/*************************************************************************** * Lempel-Ziv-Welch Encoding Functions * * File : lzwencode.c * Purpose : Provides a function for Lempel-Ziv-Welch encoding of file * streams * Author : <NAME> * Date : January 30, 2005 * **********...
/* 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/MPL/2.0/. */ #include "cryptohi.h" #include "secasn1.h" #include "secitem.h" #include "prerr.h" #ifndef DSA1_SUBPRIME_LEN #defi...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdbool.h> #include <getopt.h> #include <gojira/lexer.h> #include <gojira/parser.h> #include <gojira/config.h> #include <gojira/runtime/runtime.h> #include <gojira/runtime/builtin.h> #include <gojira/runtime/garbage.h> #include <gojira/libs/stack.h> #...
#include "tools.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <regex.h> const char* getExt(const char *path) { const char *dot = strrchr(path, '.'); if(!dot || dot == path) return ""; return dot + 1; } const char* getMime(const char *path) { const char *e...
/* * Copyright (C) 2012 Red Hat Inc. * * 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 * ...
/* * 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...
/* Copyright © <NAME>, 2020-2021, 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 "/home/pi/.zappi.cfg" void exit_on_error(char* call, MYSQL *con) { fprintf(stde...
// // Created by 陈国威 on 2018/2/26. // #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> //#include "../../core/ngx_core.h" //#include "../../http/ngx_http.h" //#include "../../core/ngx_config.h" //#include "../../core/ngx_conf_file.h" //#include "../../core/ngx_string.h" //#include "../../http/ngx_ht...
#include <string.h> #include <graphx.h> #include <debug.h> #include <keypadc.h> #include <compression.h> #include <fileioc.h> #include "defs.h" #include "vars.h" #include "gfx/output/gfx_base.h" #include "gfx/output/gfx_charequtiles.h" //--- void gen_TestDungeon(uint8_t density, uint8_t floorid); //--- void gen_AddD...
#include <stdlib.h> #include <string.h> #include "parse/parse_instruction.h" #include "errors.h" #include "platforms/logging.h" #include "core/instructions.h" #include "core/string.h" #include "core/type_conversion.h" #include "core/parameters.h" /** * Parses the line, and if its a valid instruction, appends it to th...
#define LZST0_WINSZ (1<<15) #define LZST0_WINMSK (LZST0_WINSZ-1) int btshas_blzst0_hash[4096]; int btshas_blzst0_hchain[LZST0_WINSZ]; byte btshas_blzst0_hwin[LZST0_WINSZ]; int btshas_blzst0_hrov; int btshas_blzst0_lookup(byte *cs, byte *cse, int *rbi, int *rbl) { int c, d, bi, bl; int h, n, lim; int i; bi=-1; ...
/* appmanager_app_runloop.c * The main runloop and runloop handlers for the main foregound App * RebbleOS * * Author: <NAME> <<EMAIL>>. */ #include <stdlib.h> #include "rebbleos.h" #include "appmanager.h" #include "overlay_manager.h" #include "notification_manager.h" #include "timers.h" #include "ngfxwrap.h" /*...
/* * Copyright (c) 2001 <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, dis...
#include "preload.h" #if defined(__aarch64__) #include "../module/include/aarch64_syscall.h" #elif defined(__x86_64__) #include "../module/include/x86_syscall.h" #endif int in_segment; int batch_num; /* number of busy entry */ int syscall_num; /* number of syscall triggered currently */ void* mpool; /* memory pool *...
#include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> #include "cFriends.h" #include "cFriendsCommon.h" #undef NDEBUG #include <assert.h> #ifndef static_assert #define static_assert _Static_assert #endif // 定義が見えていたらどうだろう? volatile in...
/*************************************************************************** * (c)2008-2009 Broadcom Corporation * * This program is the proprietary software of Broadcom Corporation and/or its licensors, * and may only be used, duplicated, modified or distributed pursuant to the terms and * conditions of a sep...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
#include <windows.h> #include <stdio.h> #include <string.h> #define ARR_SIZE(arr) (sizeof(arr)/sizeof((arr)[0])) struct clipboard_format { UINT value; const char* name; const char* description; }; static struct clipboard_format clipboard_standard_formats[] = { { 2, "CF_BITMAP", "A handle to a bitmap (HBITMAP...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
#include "../svm/sedona.h" #include "misc/MTypes.h" #include "initializer.h" #define MIN_LINES_MALLOC 10 #define MIN_LINE_MALLOC 10 #define SPACE 32 #define NEWLINE 10 #define CARRIAGE_RETURN 13 // internal forwards static u1* readFileRaw(u1* filename); static u1** readFileLines(u1* filename); static u1 isSpacer(u1 ...
/* s3_lp.c: IBM 1403 line printer simulator Copyright (c) 2001-2012, <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 ...
#include <stdio.h> #include <stdbool.h> #include <string.h> #include <ctype.h> #include <stdlib.h> // Utils #define NELEMS(arr) (arr ? (sizeof(arr) / sizeof(arr[0])) : 0) #define GETBIT(val, bit) ((val & (1 << bit)) >> bit) #define SETBIT(val, bit, state) (state ? (val |= (1 << bit)) : (val &= ~(1 <...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <dirent.h> #include <ctype.h> #include "../headers/fat_variables.h" #include "../headers/fat_prototypes.h" struct mbrSector mbrSector; struct TfileRecord TfileRecord; int fat_write(FILE *img, FILE *sFile, uint3...
/************************************************************************************ sdpktf.c--SD card packet reader to file 05-18-2014 Read SD card from logger and output ascii/hex lines (which can be piped to a file) *************************************************************************************/ /* Hack of sd...
#include <kernel.h> #include <test.h> void test_ipc_6_sender_process_1(PROCESS self, PARAM param) { PORT receiver_port = (PORT) param; int data = 11; check_process("Receiver", STATE_RECEIVE_BLOCKED, FALSE); check_process("Sender 3", STATE_MESSAGE_BLOCKED, FALSE); check_process("Sender 2", STAT...
// // This file is part of the Bones source-to-source compiler examples. This C-code // demonstrates the use of Bones for an example application: 'Hotspot', taken from // the Rodinia benchmark suite. For more information on the application or on Bones // please use the contact information below. // // == More informati...
/* * Just a test program to see how long it would take to * deduplicate verts in C rather than Python (in which it's excruciatingly slow). * * To make it (un)fair, we take in mesh data that is potentially already deduplicated, * then unpack the vertices and then merge them again. */ #include <stdio.h> #include ...
/* * 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions an...
/* ==== SIGNAL HANDLING ==== * * Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.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. Redistributions of source code...
/****************************************************************************** * File Name: main.c * * Description: This is the source code for the XMC MCU: MATH CORDIC example * for ModusToolbox. The example uses the MATH CORDIC block to * perform the circular, hyperbolic and logarithmic ...
/*-------------------------------------------------------------------------- * UFDA-WMEPPG v1.0 * Copyright (C) 2019 * *-------------------------------------------------------------------------- * This ESP-IDF file is part of the project UFDA-WMEPPG: * a Wearab...
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
//String descriptions for various MIDI features. These are helpful for producing //readable debug output. They're set up as arrays where the array index is the //corresponding data byte in the event. //MIDI controls for controller change messages. This includes the channel mode //messages. The array index is the secon...