text
stringlengths
3.12k
18.7k
//freestanding headers #include <stdbool.h> #include <stddef.h> #include <stdint.h> //kernel stdlib headers #include <std/printf.h> #include <std/string.h> #include <std/memory.h> #include <std/common.h> //kernel headers #include <kernel/drivers/text_mode/text_mode.h> #include <kernel/multiboot.h> #include <kernel/bo...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* * dune.h - the libdune API */ #pragma once #include <sys/queue.h> #include <stdbool.h> #include "mmu.h" #include "elf.h" #include "fpu.h" #include "../kern/dune.h" typedef void (*sighandler_t)(int); // utilities static inline unsigned long dune_get_ticks(void) { unsigned int a, d; asm volatile("rdtsc" : "=...
/* -*- c -*- *******************************************************/ /* * Copyright (C) 2003 Sandia Corporation * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the U.S. Government. * Redistribution and use in source and binary forms, with ...
/* <NAME> - 3465 <NAME> - 3488 <NAME> - 3494 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../Headers/TST.h"//Incluíndo o Cabeçalho do TAD void Inicializa(TipoApontador *Raiz){//Inicializa o ponteiro da árvore *Raiz = NULL;//Faz o ponteiro receber NULL } void Inserca...
/* * main.c * * Copyright (c) 2014 <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, mod...
/* * Classifer System implementation * * <EMAIL> * */ #include <stdio.h> #include <time.h> #include <assert.h> #include <string.h> #include "clstypes.h" classifier_t list[MAX_CLASSIFIERS]; unsigned char world[MAX_WORLD_Y][MAX_WORLD_X]; int agent_y, agent_x; const dir_t dir[MAX_DIR]= { {-1, 0}, /* North *...
/* * @file test-csim.c * @brief Checks the correctness of a student's cache simulator * * This program checks the correctness of a student's test cache simulator * (csim) by comparing its output to a reference simulator provided by the * instructors (csim-ref). */ #include <errno.h> #include <getopt.h> #include...
#include "equal.c" #include "bignum_object.h" #include "character.h" #include "clos.h" #include "common.h" #include "constant.h" #include "degrade.h" #include "reader.h" #include "package.h" #include "pathname.h" #include "stream.h" #include "sequence.h" #include "symbol.h" #include "syscall.h" #include "type.h" #inclu...
/* GStreamer * Copyright (C) 2011 <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. * *...
#include <u.h> #include <libc.h> #include <draw.h> Display *display; Font *font; Image *screen; int _drawdebug; static char deffontname[] = "*default*"; Screen *_screen; int debuglockdisplay = 1; char *winsize; /* static void drawshutdown(void) { Display *d; d = display; if(d){ display = nil; closedisplay(...
// // vr4300/interface.c: VR4300 interface. // // CEN64: Cycle-Accurate Nintendo 64 Emulator. // Copyright (C) 2015, <NAME>. // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "bus/address.h" #include "vr4300/cpu.h"...
/* @source pepwindowall application ** ** Displays protein hydropathy. ** @author Copyright (C) <NAME> (<EMAIL>) ** @@ ** Original program by <NAME> and <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 ...
/* * 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...
/* * inputbox.c -- implements the input box * * ORIGINAL AUTHOR: <NAME> (<EMAIL>) * MODIFIED FOR LINUX KERNEL CONFIG 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 Foun...
/* * TI OMAP L4 interconnect emulation. * * Copyright (C) 2007-2009 Nokia Corporation * Written 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 versi...
/* * 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...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/* ohnx was here (2018) */ #include "libgpio.h" #define _LIBGPIO_MODE_EXPORT 248 #define _LIBGPIO_MODE_UNEXPORT 249 /** * @fn static int _libgpio_rwfile(uint8_t gpio, uint8_t mode) * @brief Requests or surrenders access to a GPIO pin * @param gpio The GPIO pin number to request access to * @param m...
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * judge.c: Implementation of judgement and ban checking * */ #include "judge.h" /* * direction specifications * lines & directions: * 1 1 0 * * * * * 0: 1***0 1: * 2: * 3: * * * * * * 0 0 1 * * *...
/* * IEEE 802.1X-2004 Authenticator - State dump * Copyright (c) 2002-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 version 2 as * published by the Free Software Foundation. * * Alternatively, this software ...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <omp.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define myabs(x,y) (((x) > (y))? ((x)-(y)) : ((y)-(x))) #if !defined(point) #define point 7 #endif...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* * Create empty queue. * Return NULL if could not allocate space. */ queue_t *q_new() { queue_t *q = malloc(sizeof(queue_t)); // Successful allocation, assign related value if (q) { q->head = NU...
/******************************************************************************* * Copyright (c) 2009-2014, MAV'RIC Development Team * 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. ...
/* * Convert binary file to Woz monitor format. * * Copyright (C) 2012-2018 by <NAME> <<EMAIL>> * * 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/L...
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2017 <NAME> * Copyright 2017 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
/* FreeRTOS.org V5.3.0 - Copyright (C) 2003-2009 <NAME>. This file is part of the FreeRTOS.org distribution. FreeRTOS.org is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation and modified by th...
/* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> (<EMAIL>). The GNU C 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...
/** * Copyright 1993 Network Computing Devices, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permiss...
/* $OpenBSD: arcbios.c,v 1.2 2004/08/25 18:19:35 pefo Exp $ */ /*- * Copyright (c) 1996 <NAME>. All rights reserved. * Copyright (c) 1996-2004 Opsycon AB. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <hal/ota.h> #include <aos/aos.h> #include <hal/soc/soc.h> #include <CheckSumUtils.h> #include "sys/image.h" #include "sys/ota.h" #define OTA_DEBUG_ON 0 #define OTA_ERROR_ON 0 #define IMAGE_SEQ_0 0 #define IMAG...
/* config.h --- configuration file for OS/2 EMX <NAME> <<EMAIL>> --- Feb 1997 */ /* 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 versio...
/* * Copyright (c) 2018 SignalWire, Inc * * 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...
/* wsrmdemo.h WS-ReliableMessaging and WS-Addressing demo service and client. This file is to be passed to soapcpp2 only. See usage comments below. gSOAP XML Web services tools Copyright (C) 2000-20110 <NAME>, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following lic...
/** * Test the ARM implementation */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include <assert.h> #include <inttypes.h> #include <stdio.h> #include <string.h> #include "arch_arm.h" int main(void) { asm_instr_context ctx; const uintptr_t data_addr = 0xda7a0000; uint8_t data[] = "\x17\x15\xda\x...
#pragma once #include <stdint.h> // Device -> host #define USB_IN 0x80 // Host -> device #define USB_OUT 0 typedef enum { USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH, } USB_Speed; #define USB_REQTYPE_DIRECTION_MASK 0x80 #define USB_REQTYPE_TYPE_MASK 0x60 #define USB_REQTYPE_RECIPIENT_MASK 0x1F #define USB_REQ...
#include "stm32f4xx_hal.h" // Keil::Device:STM32Cube HAL:Common #include "arm_math.h" // ARM::CMSIS:DSP /*DEFINES */ #define SIGNAL_LENGHT 200 #define IMPULSE_RESP_LENGHT 29 /*********************************************/ /*extern DATA TYPE */ extern float32_t InputSignal_f32_1kHz...
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015-2017, Intel Corporation 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 copyrig...
/* scan.c -- display a one-line "scan" listing of folder or messages * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include "h/mh.h" #include "sbr/fmt_new.h" #include "sbr/dtime.h" #inclu...
/*************************************************************************** Name : utilities.c Version : 1.0 Author(s) : <NAME> (<EMAIL>) Date : May 6, 2015 Description : Auxiliary functions and other useful stuff. ----------- Copyright (C) 2015 <NAME> School of ECE, National Technica...
/* * Copyright (c) 2018 * IoTech Ltd * * SPDX-License-Identifier: Apache-2.0 * */ #include <stdio.h> #include <stdbool.h> #include <assert.h> #include <signal.h> #include <math.h> #include <pthread.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <linux/i2c-dev.h> #include <sys/ioctl.h> #in...
/* Planarity-Related Graph Algorithms Project Copyright (c) 1997-2010, <NAME> All rights reserved. Includes a reference implementation of the following: * <NAME>. "Simplified O(n) Algorithms for Planar Graph Embedding, Kuratowski Subgraph Isolation, and Related Problems". Ph.D. Dissertation, University of Victoria...
/** ****************************************************************************** * @file sensor.c * @author Macro <<EMAIL>> * @version V1.0.0 * @date 18-August-2020 * @brief This file provides all the sensor read-write and configure functi- * ons. **********************************...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
/* * Arm SCP/MCP Software * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Description: * Juno Thermal Protection */ #include "config_juno_thermal.h" #include "config_power_domain.h" #include "juno_alarm_idx.h" #include "juno_id.h" #inc...
#include <grub/types.h> #include <grub/err.h> #include <grub/linux.h> #include <grub/misc.h> #include <grub/file.h> #include <grub/mm.h> #include <grub/safemath.h> struct newc_head { char magic[6]; char ino[8]; char mode[8]; char uid[8]; char gid[8]; char nlink[8]; char mtime[8]; char filesize[8]; ch...
/* id.c : operations on node-revision IDs * * ==================================================================== * 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 * regar...
/* * Add a linux user using LDAP to look up their information. * * gcc RACcreateuser.c -o RACcreateuser -lldap -llber -lresolv * * may need to force 32-bit compile with * gcc -m31 RACcreateuser.c -g -o RACcreateuser -L/usr/lib -lldap_r * * Typical User: * * # RA00001, People, ROCK.org.gke * dn: u...
/* Driver for Nuvoton 8-16 channel USB-HID relay controller This works with the Nuvoton relay controler. However the device->port changes when device is unpluged and reattached. A stable path is needed for identificatio, since it has no serial number. * * Description: * usb hid relay controller board, from Nuvot...
/* * ATI Mach64 Hardware Acceleration */ #include <linux/sched.h> #include <linux/delay.h> #include <linux/fb.h> #include <video/mach64.h> #include "atyfb.h" /* * Generic Mach64 routines */ void aty_reset_engine(const struct atyfb_par *par) { /* reset engine */ aty_st_le32(GEN_TEST_CNTL, a...
/** * @file main.c * @brief main programme * @author <NAME> (<EMAIL>), <NAME> (<EMAIL>) * @date 27/02/2021 */ #include <getopt.h> #include <signal.h> #include <slow5/slow5.h> #include "misc.h" #include "error.h" #include "cmd.h" // TODO put all in header file #define USAGE_MSG "Usage: %s [OPTION]... [COMMAND] [...
// // main.c // Polynomial 多项式 // 链表里面的每个node里面有coeff和power,然后两个链表进行加法或乘法 // https://www.geeksforgeeks.org/adding-two-polynomials-using-linked-list/ // https://www.geeksforgeeks.org/multiplication-of-two-polynomials-using-linked-list/?ref=rp // Created by <NAME> on 07/04/2020. // Copyright © 2020 <NAME>. All rig...
#ifdef HAVE_MEMMEM #define _GNU_SOURCE #endif #include <sys/types.h> #include <sys/stat.h> #include <assert.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #ifndef WIN32 #include <pwd.h> #endif #include "util.h" #include "jq.h" #include "jv_al...
/** * Copyright (C) 2012 - <NAME>. All rights reserved. * * Fast base64 codec that supports both standard and URL-safe * schemes with optional padding and without line splitting. */ #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "base64.h" static const int8_t encode_tables[128] = { "AB...
/*************************************************************************************************** Zyan Disassembler Library (Zydis) Original Author : <NAME> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), ...
/** * \file src/GCSR/module.c * \ingroup MATTYPE_GCSR * \brief Generalized compressed sparse row (GCSR) implementation. */ #include <oski/config.h> #include <stdarg.h> #include <oski/common.h> #include <oski/matrix.h> #include <oski/GCSR/format.h> #include <oski/GCSR/module.h> #include <oski/CSR/module.h> co...
/* * (C) Copyright 2015 * <NAME>, <<EMAIL>> * * Copyright 2015 ATS Advanced Telematics Systems GmbH * Copyright 2015 Konsulko Group, <NAME> <<EMAIL>> * * (C) Copyright 2014 * STMicroelectronics * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/io.h> #include <asm/arch/stm32.h> #def...
/* * Copyright 2005-2017 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...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause OR Arm’s non-OSI source license */ /* system includes */ #include "dmpu_integration_test.h" #include <stdlib.h> #include <string.h> /* cc_productionLib */ #include "cc_dmpu.h" #include "cc_...
#include <gb/gb.h> #include <gb/gbdecompress.h> #include "main.h" #include "out/tiletitle.h" #pragma bank 2 #define FADE_FRAMES 8 #define WAIT_FRAMES 30 #define TITLETOP_WIDTH 14 #define TITLETOP_HEIGHT 4 #define GAMEBOY_OBJS 12 #define GAMEBOY_Y 108 #define SLIDE_LAG 30 #define PRESS_START_OBJS 8 #define PRESS_...
/* * This file is part of the IOTA Access distribution * (https://github.com/iotaledger/access) * * Copyright (c) 2020 IOTA Stiftung * * 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 *...
/* Donut that can run on an embedded system... Originally written by <NAME> <<EMAIL>> Licensed under the UNLICENSE (See LICENSE) */ #include <stdio.h> #include <emscripten.h> #define PI 3.14159265358979323846 // First 21 digits of pi // Global variables to make emscripten main loop easier to code int sizex =...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "fileutils.h" #include "test_macros.h" #include "minunit/minunit.h" FUDir *dir; MU_TEST(test_fu_isabs) { mu_assert_int_eq(1, fu_isabs("/")); mu_assert_int_eq(1, fu_isabs("/usr/bin/ls")); mu_assert_int_eq(1, fu_isabs("C:\\...
/* Unix SMB/CIFS implementation. RPC pipe client Copyright (C) <NAME> 2000 Copyright (C) <NAME> 2005. 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 ...
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <strings.h>//to use "bzero" #include <time.h>//to estimate the runing time #include "bisection.h" #include "struct.h" #define NLINKS 100000000 //maximum number of edges for memory allocation, will increase if needed //compute the maximum of three u...
#include "socket.h" #include <utmp.h> #include <unistd.h> #include <netinet/tcp.h> #include <stdio.h> static udp_data UDP_STACK[500000]; static int UDP_STACK_INDEX = 0; static pthread_mutex_t UDP_LOCK; fntpSocket *create_socket(int tcp_sock, int udp_sock, remote_addr udp_addr, BOOL isServer) { fntpSocket * retSoc...
/* * dropstats.c - drop statistics * * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <inttypes.h> #include <malloc.h> #include <stdbool.h> #include <getopt.h> #include <asm/types.h> #incl...
/* P L O T 3 G E T F R A M E . C * BRL-CAD * * Copyright (c) 1988-2021 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version ...
// // Copyright 2012 Two Lives Left Pty. Ltd. // // 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...
/* Partner(s) Name & E-mail: <NAME> & <EMAIL> * Lab Section: 021 * assignment: Lab3 Exercise 2: Servant code * Write a "pattern" synchSM for each pattern described in the * "Overall System Description" part of the lab. Each "pattern" * synchSM writes its pattern to a unique shared variable. * * Created:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "types.h" //struct matrix *init_mat(uint16_t *size, uint8_t dim, err_ret *error) { err_ret init_mat(int *size, uint8_t dim, struct matrix **out) { *out = malloc(sizeof(**out)); if(!*out) { return e_malloc; } //dim of the matrix out[0]->dim = ...
/* Copyright (C) 2012 Modelon AB This program is free software: you can redistribute it and/or modify it under the terms of the BSD style license. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL...
#include "stm32f10x.h" #include "stm32f10x_it.h" #include "EIE3810_LED.h" #include "EIE3810_Clock.h" #include "EIE3810_TFTLCD.h" void Delay(u32); void JOYPAD_Init(void); void JOYPAD_Delay(u16 t); u8 JOYPAD_Read(void); void EIE3810_TIM3_Init(u16 arr, u16 psc); void EIE3810_NVIC_SetPriorityGroup(u8 prigroup); int main(v...
/* libh2o -- steam & water properties * (c) 2012 <NAME> * Released under the terms of the 2-clause BSD license */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "consts.h" #include "region1.h" #include "xmath.h" /* Based on IF97-Rev, s. 5: Equations for Region 1 */ /* coefficient table; n[0] added fo...
#include <stdio.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <png.h> #include <jpeglib.h> #include "imgcurses.h" void image_swap_red_blue(image_t img) { for(int x = 0; x < img.width; x++) for(int y = 0; y < img.height; y++) { color_t col = image_get(img, x, y); int r = col.r; ...
// Copyright (c) 2012 DotNetAnywhere // // 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...
/* Set operations for device-inode pairs stored in a space-efficient manner. Copyright 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ver...
/*************************************************************************** * * Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved. * Copyright (C) 2005-2013 Sourcefire, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pub...
#include "redismodule.h" #include <ctype.h> #include <errno.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <strings.h> #define SET_COMMAND_DIFF 0 #define SET_COMMAND_INTER 1 #define SET_COMMAND_UNION 2 /* copied from redis/src/util.c since unfortunately there isn't something similar expose...
#include "common.h" /* contains routines common to direct and indirect sparse solvers */ #define MIN_SCALE (1e-3) #define MAX_SCALE (1e3) #define NUM_SCALE_PASSES 1 /* additional passes don't help much */ idxint validateLinSys(Data *d) { AMatrix * A = d->A; idxint i, rMax, Anz; if (!A->x || !A->i || !A->p) { scs...
/* * This file is part of the Nice GLib ICE library. * * (C) 2008-2009 Collabora Ltd. * Contact: <NAME> * (C) 2007-2009 Nokia Corporation. All rights reserved. * Contact: <NAME> * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file ex...
/* H0 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ /* H0 X */ /* H0 X libAtoms+QUIP: atomistic simulation library */ /* H0 X ...
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string.h> #include <ctype.h> #include <time.h> #define min void binarySearch( int vetorOrdenado[], int tamanhoInformado ); int quickSort(); //===== EXECUTA O QUICK SORT, JA COM O PIVO DEFINIDO LOGO A BAIXO ===== int dividirVetorQuickSort( int ve...
/*- * 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 * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
/* * $Source: f:/miner/source/main/editor/rcs/kdefs.h $ * $Revision: 2.1 $ * $Author: yuan $ * $Date: 1995/03/08 16:07:10 $ * * Prototypes for functions called from keypresses or buttons. * * $Log: kdefs.h $ * Revision 2.1 1995/03/08 16:07:10 yuan * Added segment sizing default functions. * * Revision 2...
/* * pression.c * * Created on: 5 juin 2014 * Author: nicolas */ #include "pression.h" int16_t AC1; int16_t AC2; int16_t AC3; uint16_t AC4; uint16_t AC5; uint16_t AC6; int16_t B1; int16_t B2; int16_t MB; int16_t MC; int16_t MD; I2C_TransferReturn_TypeDef I2CDRV_Transfer(I2C_TransferSeq_TypeDef *seq) { uin...
void display_window(int argc, char *argv[]) { printf("\n>>XLIB>>\n"); dpy = XOpenDisplay(NULL); if(dpy==NULL){ fprintf(stderr, "Cannot open display\n"); exit(1); } //printf("Connected to X server %s\n", XDisplayName(display_name) ); screen_num = DefaultScreen( dpy ); ...
/* * Copyright (c) 2004-2008 Voltaire 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 2, available from the file * COPYING in the main directory of this source...
// xembiggen - display text using the biggest font size possible // (assuming a fairly short maximum text length). for those awkward // moments when someone asks you the coffee shop wifi password amid // noise and mumbling over a mask. granted, this is a technological // solution to what really is a social problem ...
/* * * USP3 * ==== * * Trivial utility to control an Chromoflex RGB LED controller * See http://www.xeroflex.com/Usp3_com.pdf for protocol specs * * Written by <NAME> <<EMAIL>> * Free to use * */ #define VERSION "1.2" #include <stdio.h> #include <getopt.h> #include <stdlib.h> #include <string.h> #include ...
/* Copyright (c) 2010-2013 <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 THE AUTHOR DISCLAIMS...
/*****************************************************************************\ ** ** ** FILE: clubop.c ** ** AUTHORS: Alexios ** **...
/* * Copyright 2019 NXP. * * 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 disclaimer. * * Redistribut...
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2003-2008 Free Software Foundation Europe e.V. Copyright (C) 2011-2012 Planets Communications B.V. Copyright (C) 2013-2013 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of...
#include "debug.h" #include <stdio.h> #include <string.h> #include <math.h> #include <time.h> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> double max_error = 1.0e-4; void Generate_signal(double* signal, int samples) { double f1, f2, a1, a2; f1 = 1.0 / 8.0; f2 = 2.0 /...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
/**************************************************************************** * * Copyright (c) 2017-2018 <NAME> <<EMAIL>> * * This file is part of Zeroconf-Lookup. * Project home: https://www.railduino.de/zeroconf-lookup * Source code: https://github.com/railduino/zeroconf-lookup.git * * Permission is hereby ...
/** Copyright (C) 2003-2005 <NAME>, <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, modif...
/* * 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...