text
stringlengths
3.12k
18.7k
#include <u.h> #include <libc.h> #include <draw.h> #include <cursor.h> #include <event.h> #include <bio.h> #include "proof.h" static int checkmouse(void); /* static int buttondown(void); */ static char *getmousestr(void); static char *getkbdstr(int); extern Cursor blot; extern char *track; Mouse mouse; void mapscre...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2018 Rubicon Communications, LLC (Netgate) * * 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 ...
// // SIKE-Weierstrass // // InfoSec Global Inc., 2017-2019 // <NAME> <<EMAIL>> // #include <sike_params.h> #include <sidh.h> #include <isogeny.h> #include <encoding.h> #include <stdlib.h> #include <random.h> static void lift_to_isogeny(const weier_curve_t *E, unsigned long l, unsigned...
/* * Copyright 2005-2018 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/******************************************************************************* * 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 Electronics Corporation and is protected ...
#include "keymap.h" /* Maps a key to a game action. */ void bind_key(const action_t action, const int key) { unsigned int b; if (action >= ACTIONS || action < 0) return; unbind_key(key); b = 0; do { if (keymap[action][b] == 0) { keymap[action][b] = key; return; } } wh...
/* * kmp_stub.c -- stub versions of user-callable OpenMP RT functions. */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses....
/***************************************************************************** * Copyright (C) Queen's University Belfast, ECIT, 2016 * * * * This file is part of libsafecrypto. * * ...
/* * FreeRTOS+UDP V1.0.0 (C) 2013 Real Time Engineers ltd. * * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license * terms are different to the FreeRTOS license terms. * * FreeRTOS+UDP uses a dual license model that allows the software to be used * under a pure GPL open source li...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...
/* * "streamable kanji code filter and converter" * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. * * LICENSE NOTICES * * This file is part of "streamable kanji code filter and converter", * which is distributed under the terms of GNU Lesser General Public * License (version 2) as published by t...
// SPDX-License-Identifier: GPL-2.0-only /* nf_nat_helper.c - generic support functions for NAT helpers * * (C) 2000-2002 <NAME> <<EMAIL>> * (C) 2003-2006 Netfilter Core Team <<EMAIL>> * (C) 2007-2012 <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/gfp.h> #include <linux/types.h> #include <linux/skbu...
/* * PVA Debug Information file * * Copyright (c) 2017-2018, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * T...
// tcprewrite -D 192.168.1.255:127.0.0.1 -i ./2.pcap -o ./3.pcap // udpreplay -i lo 3.pcap -r 10 -c 100 #include <errno.h> #include <inttypes.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <sys/socket.h> #include <unistd.h> #include <czmq.h> #include "../j2735/MessageFr...
/* Copyright (c) 2019 <NAME>. All rights reserved. */ #include <fcntl.h> #include <netdb.h> #include <netinet/in.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "log.h" #include "net/socket.h" static int sock_geterr(int fd) { int err = 1; socklen_t len = sizeof...
/* * 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 main.c * @brief Nano1xx RTC Driver Sample code * @version 1.0.1 * @date 04, September, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. ******************************...
/* ChibiOS - Copyright (C) 2006..2016 <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 la...
#include "chibidit.h" void updateRow(Erow *row) { unsigned int tabs = 0, nonprint = 0; int j, idx; free(row->render); for (j = 0; j < row->size; j++) if (row->chars[j] == TAB) tabs++; unsigned long long allocsize = (unsigned long long) row->size + tabs * 8 + nonprint *...
/** * \file * \brief Code responsible for booting application cores */ /* * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK...
#include <glib.h> #include <libnotify/notify.h> #include <locale.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <gdk-pixbuf/gdk-pixbuf.h> static gchar *appname = "dunstify"; static gchar *summary = NULL; static gchar *body = NULL; static NotifyUrgency urgency = NOTIFY_URGENCY_NORMAL; static g...
#include <errno.h> #include <logger.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> #include "config_t.h" #include "error_codes.h" #include "request.h" #include "response.h" #include "router.h" #include "server.h" #define BACKLOG 4 #if...
// ---------------------------------------------------------------------------- // ATMEL Crypto-Devices Software Support - Colorado Springs, CO - // ---------------------------------------------------------------------------- // DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR //...
/* * Copyright (C) 2014 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...
/* ecavisual.c Copyright (c) 2018 andynines MIT License */ // Includes #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "eca.h" #include "ecaio.h" #include "allocs.h" #include "utils.h" #include "SDL.h" // TODO: Test with Valgrind memcheck // Constants #define WINDOW_TITLE ("ECA Visual") #de...
/* ************************************************************* * This program reads raw.segs generated by readNets. It then * segments them into pieces that will be used in partionGenomes * procedure. * ************************************************************/ #include "util.h" #include "species.h" #define ...
/********************************************************************** * * This file is part of the AWeb-II distribution * * Copyright (C) 2002 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the AWeb Public License as included in this * distribution. *...
/* * Copyright 2011 <NAME> | stefasab at <EMAIL> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
/* * 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 * http://www.wtfpl.net/ for more details. */ ...
/****************************************************************************** * * Copyright (C) 2010 - 2015 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...
/* @(#)timefunc.c 2.7 02/21/97 */ /*====================================================================== * * Misc. time related functions. * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * Copyright (c) 1997 Regents of the University of California. * All rights reserved. * - - - - - ...
/* kc85.c Stripped down KC85/2../4 emulator running in a (xterm-256color) terminal, rendering the ASCII buffer of the KC85 through curses. Requires a UNIX environment to build and run (tested on OSX and Linux). Select the KC85 model with cmdline args: kc85-ascii type=kc85_2 kc85-a...
/******************************************************************************************* * * raylib - sample game: snake * * Sample game developed by <NAME>, <NAME> and <NAME> * * This game has been created using raylib v1.3 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View...
#include "factories.h" #include <stdint.h> #include <math.h> #include "ui/handlers.h" #include "utility/clocks.h" #include "utility/c8math.h" #include "rendering/textures.h" #include "utility/logging.h" #define BUFFER_OFFSET(offset) ((void*)(offset)) static const GLfloat cube_verts[] = { // POS (x,y,z) ...
/*Reviewed: Color Converter*/ #include <stdlib.h> #include <strings.h> #define RGB2BGR(R, G, B) ((unsigned)(B) << 16 | (G) << 8 | (R)) static struct { const char *s; unsigned bgr; } cols[] = { /*Std Color Definition*/ {"aliceblue", RGB2BGR(240, 248, 255)}, {"antiquewhite", RGB2BGR(250, 235, 215)}, {"aqua", RGB...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef float float3[3]; typedef int int3[3]; typedef float float2[2]; enum { X, Y, Z }; typedef struct __obj_final_t { float3 *vertices, *normals; float2 *uvs; } obj_data_t; void obj2h(const char* p) { FILE* fh = fopen(p, "r"); size_t p_len = strlen...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 2 $ * $Date: 16/10/25 4:28p $ * @brief Implement WDT time-out interrupt event to wake up system and generate time-out reset system event while WDT time-out reset delay period expired...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <pthread.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> /* 스레드 처리를 위한 함수 */ static void *clnt_connection(void *arg); int sendData(FILE* fp, char *ct, char *filename); void sendOk(FILE* ...
/* ##################################################################### # File : SBCONSTANT.h # Project : # Created : 14-2-14 # DevTeam : eastmoney # Author : Thomas # Notes : ##################################################################### ### Change Logs ########################################...
/* * Calcurse - text-based organizer * * Copyright (c) 2004-2022 calcurse Development Team <<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: * * - Redistributions of sourc...
#include "../bios/devices.h" #include <libtinyc.h> #include <stdint.h> char inputbuf[128]; void load_color_palette() { static uint8_t default_palette[8][3] = { { 0, 0, 0 }, // black { 200, 0, 0 }, // red { 0, 200, 0 }, // green { 200, 200, 0 }, // yellow { 0, 0, 200 }, // b...
/* $OpenBSD: cpu.c,v 1.7 2004/09/09 22:11:38 pefo Exp $ */ /* * Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se) * * 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 retai...
#pragma ident "$Id: header.c,v 1.4 2015/11/13 20:53:16 dechavez Exp $" /*====================================================================== * * Pack MiniSEED header (FSDH + B1000 + (B1001) + (B100)) * *====================================================================*/ #include "mseed.h" static int PackSeq...
/* $Header: /ker/i386/RCS/tioc.c,v 2.5 93/10/29 00:57:26 nigel Exp Locker: nigel $ */ /* * Convert COH286 tty ioctl's to Sys 5 compatible calls. * * $Log: tioc.c,v $ * Revision 2.5 93/10/29 00:57:26 nigel * R98 (aka 4.2 Beta) prior to removing System Global memory * * Revision 2.4 93/08/19 10:38:10 nigel ...
#ifndef PSHAPE_H #define PSHAPE_H #include "tinyobjloader-c/tinyobj_loader_c.h" #include "stb/stb.h" #include "stb_vec.h" typedef struct { float bmin[3]; float bmax[3]; // bounding box tinyobj_material_t* materials; size_t num_materials; tinyobj_shape_t* shapes; size_t num_shapes...
#include <stdio.h> #include <string.h> #include <openssl/err.h> #include <openssl/ec.h> #include <openssl/evp.h> #include <openssl/pem.h> #include <openssl/rand.h> #include <openssl/bio.h> #include <openssl/bn.h> #include <openssl/hmac.h> const char key[] = \ "-----BEGIN PRIVATE KEY-----\n" \ "<KEY>" \ "<KEY>" \ "<KEY...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "machine.h" #include "pascal.h" #define HASH_SIZE 1021 Type *boolean_type; Type *char_type; Type *integer_type; Type *real_type; Type *text_type; Type *nil_type; Type *empty_set_type; Constant *nil_constant; int symbol_level = 0; long parameter_offs...
/***************************************************************************** * * XVID MPEG-4 VIDEO CODEC * - ME-based Frame Type Decision - * * Copyright(C) 2002-2003 <NAME> <<EMAIL>> * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
/* HandmadeTest.h This is Handmade Math's test framework. It is fully compatible with both C and C++, although it requires some compiler-specific features. To use Handmade Test, you must #define HANDMADE_TEST_IMPLEMENTATION in exactly one C or C++ file that includes the header, like this: #define HANDM...
#include "internal.h" #include <c2d/text.h> #include <stdlib.h> #include <stdarg.h> static C3D_Tex* s_glyphSheets; static float s_textScale; typedef struct C2Di_Glyph_s { u32 lineNo; C3D_Tex* sheet; float xPos; float width; struct { float left, top, right, bottom; } texcoord; } C2Di_Glyph; struct C2D_TextBu...
#include "telnet.h" #include "host.h" #include "rbt.h" #include <event2/event.h> #include <event2/buffer.h> #include <event2/bufferevent.h> #include <event2/util.h> #define BACKLOG 32 #define MAX_EPOLL 64 #define COLS 80 #define ROWS 24 #define ECHO 1 #define SUPPRESS_GO_AHEAD 3 enum option_status { INACTIVE, ...
/* * Copyright (c) 2011-2012, Freescale Semiconductor, 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: * * o Redistributions of source code must retain the above copyright notice, this...
/* * This file is part of nmealib. * * 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 i...
// <NAME> // lu599305 #include <stdio.h> #include <string.h> #include <stdlib.h> #define INPUT_FILE "processes.in" #define OUTPUT_FILE "processes.out" // custom string type const int STRING_SIZE = 5; typedef char string[STRING_SIZE]; // possible algorithms to use // type def makes declaration easier typedef enum a ...
/** * \file * Bcollect resource * \author * White_CPS */ #include <string.h> //#include "rest-engine.h" #include "coap-engine.h" #include "net/ipv6/uip.h" #include "net/routing/rpl-lite/rpl.h" #include "net/routing/rpl-lite/rpl-icmp6.h" #include "net/routing/rpl-lite/rpl-types.h" #include "net/routing/...
/* * QEMU VGA Emulator. * * Copyright (c) 2003 <NAME> * Copyright (c) 2006 Openedhand Ltd. * * 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 lim...
#include "SDL.h" #include "SDL_gpu.h" #include <math.h> #include "compat.h" #include "common.h" #define PI 3.14159265359 void getScreenToWorld(float screenX, float screenY, float* worldX, float* worldY) { GPU_Target* screen = GPU_GetContextTarget(); GPU_Camera camera = GPU_GetCamera(screen); if(screen == NULL) ...
// // main.c // splitring // #include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h> #include <getopt.h> #include <sysexits.h> void SRHandleError(OSStatus status, int requireSuccess); char * SRCFStringCopyUTF8String(CFStringRef aString); void SRListMatchingItems(CFDictionaryRef query); CFArrayRef ...
/* * Copyright (c) Citrix Systems, 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, this lis...
#include "stdio.h" #ifndef mips #include "stdlib.h" #endif #include "xlisp.h" #include "sound.h" #include "falloc.h" #include "cext.h" #include "instrbowedfreq.h" void bowed_freq_free(snd_susp_type a_susp); typedef struct bowed_freq_susp_struct { snd_susp_node susp; long terminate_cnt; ...
/* |\/| | |UNCHER Authored by abakh <<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 received a copy of the CC0 Public Domain D...
/** ****************************************************************************** * File Name : stm32l4xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. *********************************************************...
/*- * Copyright (c) 1999 <NAME> <<EMAIL>> * Copyright (c) 1999 <NAME> <<EMAIL>> * Copyright (c) 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 sourc...
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the...
/* Copyright (c) 2007, Adobe Systems, Incorporated 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 ...
#include<stdio.h> #include<malloc.h> #include<string.h> #include<math.h> #include<stdlib.h> #include<windows.h> int max=9,j=0; struct Drone { int dr_no; float max_distance,load_capacity; float high_distance,high_weight; char dr_name[20]; }; struct Drone dr[20]; struct Delivery { int drone_id; ch...
/* Copyright (C) 1996-1997 Id Software, 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 2 of the License, or (at your option) any later version. This program is distributed in th...
/**************************************************************** FUNCTION NAME: colortable SYNTAX: colortable(table); PARAMETERS: NAME: TYPE: PURPOSE: -------------------------------------------------------- table RGBDATA * pointer to structure containing colortable RGB values DESCRIPTION: Create...
#include "Doom.h" mobj_t *linetarget; /* Object that was targeted */ mobj_t *tmthing; /* mobj_t to be checked */ Fixed tmx,tmy; /* Temp x,y for a position to be checked */ Boolean checkposonly; /* If true, just check the position, no actions */ mobj_t *shooter; /* Source of a direct line shot */ angle_t attac...
/**************************************************************************** * $Id:: rs485.c 6097 2011-01-07 04:31:25Z nxp12832 $ * Project: NXP LPC17xx RS485 example * * Description: * This file contains RS485 code example which include RS485 * initialization, RS485 interrup...
#include "util.h" #include "hsd.h" #include "melee.h" #include <string.h> // Start offset to copy the end of player struct #define PLAYER_COPY_START 0x1830 #define PLAYER_COPY_SIZE (sizeof(Player) - PLAYER_COPY_START) typedef struct _State_JObj { struct _State_JObj *next_sibling; struct _State_JObj...
/* ANSI-C code produced by gperf version 3.1 */ /* Command-line: gperf -m100 lib/svg_tags.gperf */ /* Computed positions: -k'3,7' */ /* Filtered by: mk/gperf-filter.sed */ #include "replacement.h" #include "macros.h" #include "ascii.h" #include <string.h> #define TOTAL_KEYWORDS 36 #define MIN_WORD_LENGTH 6 #define M...
/* * @file qot_admin_sysfs.c * @brief Admin sysfs interface to the QoT core * @author <NAME> * * Copyright (c) Regents of the University of California, 2015. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
/**************************************/ #include <stdlib.h> /**************************************/ #include "Bitmap.h" #include "Colourspace.h" #include "Qualetize.h" #include "Tiles.h" /**************************************/ //! When not zero, the PSNR for each channel will be displayed #define MEASURE_PSNR 1 /*...
/*------------------------------------------ * Copyright (c) 2017, Synopsys, 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 copyri...
/** * File: mat3f.c * Author: <NAME> <<EMAIL>> * Description: * * Implementation for a 3x3 matrix. */ #include <string.h> #include "cgmath.h" #if defined(CGMATH_MATRIX_DIMS_DEFINED) #undef CGMATH_MATRIX_WIDTH #undef CGMATH_MATRIX_HEIGHT #undef CGMATH_MATRIX_ELEMS #undef CGMATH_MATRIX_SIZE #undef CGMATH_MATRIX_D...
/* * Copyright 2018-2021 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "update_functions.h" #include "../../../errors.h" #include "../../../query_ctx.h" #include "../../../datatypes/map.h" /* set a property on a graph entity * for ...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> //int8_t #include <math.h> #include "templates.h" #include <unistd.h> //sleep #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> // serial ports /* baudrate settings are defined in <asm/...
#include "grid_operations.h" #include <assert.h> #include <math.h> #ifndef MAX #define MAX(X,Y) ( ((X)<(Y)) ? (Y) : (X) ) #endif #ifndef MIN #define MIN(X,Y) ( ((X)>(Y)) ? (Y) : (X) ) #endif Grid* grid_new_bin(Grid* g, int scale_exponent) { /* int pixel_ratio = (int)pow(2., scale_exponent); */ int pixel_ratio = 1 ...
/* *effectue tout le pretraitement pour un mot donne. * *@author:<NAME> * * * * *Antecedent:double *fitness,int *rang ne sont pas initialises. * char *mot_ref est un mot de la reponse donnee * int nbremot est le nombre de mot du dico * char **mot_du_dico pointe sur des pointeur...
/* * mixed_xor.c */ #include <assert.h> #include <string.h> #include <roaring/bitset_util.h> #include <roaring/containers/containers.h> #include <roaring/containers/convert.h> #include <roaring/containers/mixed_xor.h> #include <roaring/containers/perfparameters.h> /* Compute the xor of src_1 and src_2 and write th...
/* lldb ./cmdline -- single d503201f b decode r */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include "decode.h" #include "format.h" int verbose = 1; char *arrspec_to_str(enum ArrangementSpec as) { switch(as) { case ARRSPEC_NONE: return "NONE"; case A...
// geohash-native.c // (c) 2008-2010 <NAME> // <EMAIL> // // (The MIT License) // // Copyright (c) 2008 <NAME>, Roundhouse Technologies LLC // // 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 Sof...
#pragma once /** * @file * @author Surface Concept GmbH * @date Oct 2013 * @version 1.5 * @brief TDC Interface types. */ #ifndef ssize_t #ifdef __linux__ #include <sys/types.h> #elif _WIN32 #ifdef _MSC_VER #include <BaseTsd.h> typedef SSIZE_T ssize_t; #elif __MINGW32__ #include <sys/types.h> ...
/* * sift_scale_space_calculation.c * * Created on: Oct 31, 2014 * Author: peter */ #include "sift_scale_space_calculation.h" #include "sift_math.h" #include "sift_sse4_2_typedef.h" #include "sift_util.h" #include <string.h> // Copy image, up-sample rows and take transpose // The output image has dimension...
/* Copyright 2017 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Test Base-32 encoding/decoding */ #include <stdio.h> #include "common.h" #include "base32.h" #include "test_util.h" #include "util.h" static in...
// DOM-IGNORE-BEGIN /******************************************************************************* * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is ...
/* * Copyright Notice for * Proactive Data Containers (PDC) Software Library and Utilities * ----------------------------------------------------------------------------- *** Copyright Notice *** * Proactive Data Containers (PDC) Copyright (c) 2017, The Regents of the * University of California, through Lawrenc...
typedef unsigned int bool; #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include "halide_blur_gen.h" /* typedef struct buffer_t { uint64_t dev; uint648_t* host; int32_t extent[4]; int32_t stride[4]; int32_t min[4]; int32_t elem_size; bool host_dirty; bool dev_dirty; } b...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2016-20 Intel Corporation. */ #include <assert.h> #include <elf.h> #include <errno.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/mman...
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #include "aiot_dynreg_api.h" #include "aiot_mqtt_api.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #include "module_aiot.h" #include "py/runtime.h" #include "py_defines.h" // #include "be_inl.h" #define MOD_STR "AIOT_DYNREG" /* 位于portfiles...
/* * @UBERXMHF_LICENSE_HEADER_START@ * * uber eXtensible Micro-Hypervisor Framework (Raspberry Pi) * * Copyright 2018 Carnegie Mellon University. All Rights Reserved. * * NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING * INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON ...
/* -*- linux-c -*- * hpifan.cpp * * Copyright (c) 2003,2004 by FORCE Computers * (C) Copyright Nokia Siemens Networks 2010 * (C) Copyright <NAME> 2011 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or F...
/*************************************************************************** * command-line qico control tool * $Id: qctl.c,v 1.21 2004/05/31 13:19:59 sisoft Exp $ ***************************************************************************/ #include <config.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef H...
/* Copyright 2016 Vanderbilt University 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...
/* Author: <NAME> (<EMAIL>) Copyright (c) 2014 Cromulence LLC 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...
/* AUTHOR: <NAME> YEAR: 2019-20 LICENSE: MIT EMAIL: <EMAIL> or <EMAIL> */ #include <stdio.h> #include <string.h> #include "f_nano_crypto_util.h" #define OK " [ OK ]\n" #define FAIL " [ FAIL ]\n" #define SUCCESS " [SUCCESS]\n\n" #define HELP "\ USAGE:\n\ ======\ \n\n\ \t\"help\" -> This help\n\ \t\"open\" -> Open...
/* Copyright (c) 2007 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distr...