text
stringlengths
3.12k
18.7k
#include <darnit/darnit.h> #include <math.h> #include <protocol.h> #include <network.h> #include "player.h" #include "object.h" #include "main.h" #include <common_math.h> struct { int x; int y; int focus_object; int home; } camera; static DARNIT_TILE *powermeter; static DARNIT_TILE *velocitymeter; static DAR...
#include <stdlib.h> #include <string.h> #include "util/entity.h" #include "util/list.h" #include "render/model.h" #define SLIDE_BIAS 0.008 #define VERY_CLOSE_DIST 0.001 #define SLOPE_WALK_ANGLE 0.80 #define DOWN_DIRECTION -1.0 #define DOWN_AXIS 1 // y ex_entity_t* ex_entity_new(ex_scene_t *scene, vec3 radius) { ex_...
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <math.h> #include <float.h> static int Slfit (double *, double *, double *, int, double *, int *, int, double **, void (*funcs)(double, double [], int)); static int Sgaussj (double **, int, double **, int); static void Scovsrt (dou...
#include "FEL.h" /* struct FEL_st{ int* ArrivalsLeft; int* Lambda; int Mu; ListNode* EventList; }; */ //This function will return a random exponentially distributed variable static int expDist(float constant); static int uniDist(int max); static ListNode* FEL_PopNodes(FEL* futureList, int n); static void FE...
/* * ble_app.c * * Created on: Nov 3, 2021 * Author: steelph0enix */ #include <ble_app_services.h> #include "ble_app.h" #include "print_utils.h" #include "FreeRTOS.h" #include "cmsis_os.h" #include "hci.h" #include "hci_tl.h" #include "hci_const.h" #include "bluenrg1_aci.h" #include "bluenrg1_hci_le.h" #i...
/* * flow2ascii.c * * Copyright (c) 2018 Merit Network, Inc. * Copyright (c) 2012 The Regents of the University of California. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this p...
/* * BSD 3-Clause License * * Copyright (c) 2020, Northern Mechatronics, 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 c...
/** * || ____ _ __ * +------+ / __ )(_) /_______________ _____ ___ * | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmware * * Copyright (C) 2011-2012 Bi...
/* * 1394-Based Digital Camera Control Library * * Mac OS X Digital Camera Control Code * * Written by <NAME> <<EMAIL>> * * 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 ...
/* * Copyright (c) 2015 <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, ...
/// /// Copyright (c) 2019, 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 copyright /// notice, this list of conditions ...
#include "client.h" #include "http_parser.h" #include "http.h" #include "server.h" #include "worker.h" #include "websocket.h" #include "cmd.h" #include "conf.h" #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <hiredis/hiredis.h> #include <hiredis/async.h> #define CHECK_ALLOC(c,...
/* * File: hash_driver.c * Author: <NAME> * Email: <EMAIL> * Company: LAAS-CNRS / Vertics * Created on November 22, 2010, 4:27 PM * * LICENSE * * MIT License * * Copyright LAAS-CNRS / Vertics * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and as...
/* * The functions * * cosine_cdf * cosine_invcdf * * defined here are the kernels for the ufuncs * * _cosine_cdf * _cosine_invcdf * * defined in scipy.special._ufuncs. * * The ufuncs are used by the class scipy.stats.cosine_gen. */ #include "cephes/polevl.h" #include <math.h> // M_PI64 ...
/* * Copyright 2008 <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 * on the rights to use, copy, modify, merge, pub...
#include <errno.h> #include <fcntl.h> #include <linux/limits.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <libinput.h> #include "lid.h" #include "log.h" static int libinput_open_restricted(const char *path, int flags, void *data) { // user permissions are sufficient for input devices, no ...
#include "bee2/core/mem.h" #include "bee2/math/ec.h" // cost: 0I+31M+13S+36A // size: 19*n words void ecDivpJ_4(word *nPs, word const *P, ec_o const *ec, void *stack) { qr_o const *qr = ec->f; size_t const n = qr->n; word const *a = ec->A; word const *b = ec->B; word const *x = P; word const *y = P+n; word *__s = ((wo...
/* * 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...
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/os2/os2_VTsw.c,v 3.17 2006/01/09 15:00:22 dawes Exp $ */ /* * Copyright 1993 by <NAME> <<EMAIL>> * Modified 1996 by <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby grant...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <omp.h> #include "H2Pack.h" #include "block_jacobi_precond.h" // Construct a block_jacobi_precond from a H2Pack structure void H2P_build_block_jacobi_precond(H2Pack_p h2pack, const DTYPE shift, block_j...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright (c) 2013-2016 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013-2015 Inria. All rights reserved. * Copyright (c) 2015 <NAME>. All rights reserved. * Copyright (c) 201...
// Copyright 2017 Silicon Laboratories, Inc. #include PLATFORM_HEADER #include CONFIGURATION_HEADER #include EMBER_AF_API_STACK #include EMBER_AF_API_HAL #ifdef EMBER_AF_API_DEBUG_PRINT #include EMBER_AF_API_DEBUG_PRINT #endif #include EMBER_AF_API_ZCL_CORE // WARNING: This sample application uses fixed ...
#include <include/udp_server.h> #include <include/device_manager.h> #include <include/define.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <time.h> #include <netdb.h> #include <sys/socket.h> #include <sys/types.h> #include <string.h> #include <strings.h> #include <arpa/inet.h> #include <netinet...
/* * pevent.c * potd is licensed under the BSD license: * * Copyright (c) 2018 <NAME> <<EMAIL>> * * 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...
//----------------------------------------------------------------------------- // Copyright (c) 2014, <NAME> SOFT CO LTD. 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...
#include <stm32l433xx.h> #include <stdint.h> #include "util.h" #include "usb_private.h" #include "usb.h" #include "gpio.h" #include "floppy.h" uint8_t pending_addr = 0; uint8_t rx_rdy; void usb_init() { gpio_port_mode(GPIOA, 11, 2, 10, 0, 0); // A11 AF10 gpio_port_mode(GPIOA, 12, 2, 10, 0, 0); // A12 AF10 // E...
/************************************************************************** * * Copyright (c) 2020 <NAME> <<EMAIL>> * * 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 S...
/* Type "make example" to build this example program. */ #include <stdio.h> #include <time.h> #include <stdlib.h> #include "simdcomp.h" /** We provide several different code examples. **/ /* very simple test to illustrate a simple application */ int compress_decompress_demo() { size_t k, N = 9999; __m128i * ...
// SPDX-License-Identifier: GPL-2.0 /* * PCI Error Disconnect Recover support * Author: <NAME> <<EMAIL>> * * Copyright (C) 2020 Intel Corp. */ #define dev_fmt(fmt) "EDR: " fmt #include <linux/pci.h> #include <linux/pci-acpi.h> #include "portdrv.h" #include "../pci.h" #define EDR_PORT_DPC_ENABLE_DSM 0x0C #defi...
/* Test program for adding section and program headers and ehdr updates. Copyright (C) 2015 Red Hat, Inc. This file is part of elfutils. This file 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; ei...
/* * main.c - main line routines * * This file is a part of the SimpleScalar tool suite written by * <NAME> as a part of the Multiscalar Research Project. * * The tool suite is currently maintained by <NAME> and <NAME>. * * Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000 by <NAME> * * This source file ...
/* spi.c Copyright 2021 <NAME> Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <linux/if_ether.h> #include <linux/if_packet.h> #include <linux/in.h> #include "head.h" //caculate ip checksum unsigned short int ip_csum (unsigned short int *addr, int len) { int ...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ #in...
/* * Copyright (c) 2016 Jonas 'Sortie' Termansen. * * 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 AUT...
/* ************************************************************************************************* * * Emulation of NUC970 System Global Control Register * * state: working * * Copyright 2006 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are...
#include "VADContext.h" #include <limits.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define CHUNK_SIZE 160 // ZCR stands for Zero Crossing Rate #define ZCR_MIN 5 #define ZCR_MAX 15 // Defines minimal permissible energy value #define NOISE_ENERGY_MIN 0.001818 struct VADC...
/* BSD 3-Clause License Copyright (c) 2017, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <cyan/image/image.h> #include <cyan/image/fourier.h> #include <cyan/image/sampling.h> #include <cyan/image/transforms.h> #include <cyan/image/wavelet.h> #include <cyan/color/color.h> #include <cyan_fileio/load_pn...
#include "param.h" #include "types.h" #include "defs.h" #include "memlayout.h" #include "traps.h" #include "mmu.h" #include "x86.h" #include "syscall.h" int enable = 0; struct sysCallTraces traces[MAX_PID_NUMS]; void initTraces() { int i; int j; for( j = 0 ; j < MAX_PID_NUMS ; j++) { for( i = ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <stdarg.h> #include "greatest.h" #include "../src/float_utils.c" #include "../src/crf_context.c" SUITE(libpostal_crf_context_tests); static greatest_test_res check_values(double cv, double tv) { ASSERT_IN_RANGE(cv, tv, 1e-9); PASS(); } sta...
#include "downstream.h" #include "cnctypes.h" #include "state.h" #include "cmdqueue.h" int ledCounter; uint16_t spindlePhase; uint16_t spindleCompare; void SetEnablePin(uint8_t axis, bool on) { if (ENABLE_IS_LOW_ACTIVE) on = !on; every_gpio_write(axes[axis].enablePort, axes[axis].enablePin, on); } void SetDirPin(...
/***************************************************************************//** * Copyright 2021 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * The licensor of this software is Silicon Laboratories Inc. Your use of this * software is go...
// zagłodzenie pisarzy #include <unistd.h> #include <stdio.h> #include <pthread.h> #include <stdlib.h> int parseParameters(int argc, char **argv); volatile unsigned int readerCount, writerCount; // Liczby wszystkich czytelników i pisarzy. volatile unsigned int reading; // Liczba aktualnie czytających czytelników. vol...
#include <math.h> #include <stdio.h> #include <assert.h> #include <SDL2/SDL.h> #include "../XError.h" #include "../XFlow.h" #ifndef M_PI #define M_PI 3.141592f #endif #define UNUSED_PARAM(p) ((void) (p)) enum { DEFAULT_WIDTH = 640, DEFAULT_HEIGHT = 480 }; #define DEFAULT_TITLE "Draw Point" static const SDL_C...
/* Copyright (c) 2015, 2018, Oracle and/or its affiliates. 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 as published by the Free Software Foundation; version 2 of the License. This program is distributed in t...
#include <stdio.h> #include <string.h> // memcpy, memcmp #include "value.h" #include "vm.h" // vm_t, vm_realloc #include "write.h" static void ptr_init(vm_t *vm, ptrvalue_t *ptr, ptrvalue_type_t type) { ptr->type = type; ptr->gcmark = false; ptr->next = vm->head; vm->head = ptr; } void ptr_free(vm_...
// // Created by mateus on 06/06/22. // #define PAGESIZE 4096 #define TREEHEADER PAGESIZE #define MAXKEYS 204 #define AUX_FIELDS_SIZE_ON_PAGE (2+1) //number of keys and ”isleaf” bool #define FREE_SPACE_ON_PAGE (PAGESIZE - ((MAXKEYS * 4) + (MAXKEYS * 8) + ((MAXKEYS + 1) * 8) + 3)) #include <stdio.h> #include <stdlib....
/* * hdcp_ddc.c * * HDCP interface DSS driver setting for TI's OMAP4 family of processor. * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ * Authors: <NAME> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU G...
#include "userFunc.h" #include "math.h" #include<stdio.h> /**************************************************************************/ /* This defines userFunc routines for a protoplanetary disk that is being */ /* photoevaporated both by X-ray radiation from the central star and FUV */ /* radiation by stars in the ...
VGErrorCode vgGetError(); void vgFlush(); void vgFinish(); /* Getters and Setters */ void vgSetf (VGParamType type, VGfloat value); void vgSeti (VGParamType type, VGint value); void vgSetfv(VGParamType type, VGint count, const VGfloat * values); void vgSetiv(VGParamType type, VGint count, const VGint * values); VGfl...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <assert.h> #include <string.h> #include "constellations.h" #include "stellarium-constellations.c" struct shortlong { char* shortname; char* longname; }; typedef struct shortlong shortlong_t;...
/* * Copyright 2022 Orange * Copyright 2022 Warsaw University of Technology * * 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 * * Un...
/* ** <NAME> "Damdoshi" ** Hanged Bunny Studio 2014-2016 ** ** LibLapin - Sprite */ #include <stdlib.h> /* EXIT_FAILURE, EXIT_SUCCESS, rand, srand */ #include <time.h> /* time */ #include <stdio.h> /* printf */ #include <errno.h> /* errno, thanks cpt obvious */ #include <lapin.h> #define LOOP_PER_SECONDS 50 ...
// Copyright 2018 Schibsted #include "vtree.h" #include "bconf.h" #include "sbp/buf_string.h" #include "yajl/yajl_parse.h" #include "json_vtree.h" #include "sbp/memalloc_functions.h" #include <stdio.h> #include <string.h> #define MAX_DEPTH 40 #define MAX_KEYLEN 256 struct j_stack { int count; struct bconf_node *n...
/* asn1.c * Common routines for ASN.1 * 2007 <NAME> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Founda...
#ifdef COMPILE_FOR_TEST #include <assert.h> #define assume(cond) assert(cond) #endif void main(int argc, char* argv[]) { int x_0_0;//main::argc T0 int x_1_0;//t3 T0 int x_2_0;//t2 T0 int x_3_0;//functioncall::param T0 int x_3_1;//functioncall::param T0 int x_4_0;//functioncall::param T0 int x_4_1;//functioncall::param...
/* main * lib/crypto/t_encrypt.c * * Copyright 2001, 2008by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or organizat...
/* Written by <NAME> <EMAIL>, * algorithm from https://math.berkeley.edu/~strain/128b.S20/fmm1.pdf */ #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "fmm.h" #include "util.h" #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) int inline...
/* ZEsarUX ZX Second-Emulator And Released for UniX Copyright (C) 2013 <NAME> This file is part of ZEsarUX. ZEsarUX 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 3 of t...
/* * Copyright 2016 Google Inc. 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 required b...
/* * @brief This file contains USB DFU functions for composite device. * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC p...
/* * BCM4710 specific pcmcia routines. * * Copyright 2005, Broadcom Corporation * All Rights Reserved. * * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF M...
/* * Thread pool implementation. * See <thr_pool.h> for interface declarations. */ #include "thr_pool.h" thr_pool_t *thr_pools = NULL; pthread_mutex_t thr_pool_lock = PTHREAD_MUTEX_INITIALIZER; int create_worker(thr_pool_t *pool) { sigset_t oset; int error; pthread_t threadp; (void) pthread_sigmask...
/*** rvnamed - reverse DNS lookup daemon for the IPTraf network statistics utility. Version 2.6.1 Parallel with IPTraf 2.6 Written by <NAME> Copyright (c) <NAME> 1998-2001 rvnamed is a daemon designed to do reverse DNS lookups, but return the IP address immediately while the lookup goes on...
#include <stdlib.h> #include <stdio.h> #include <sys/mman.h> #include <sys/fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/time.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <semaphore.h> #include <stdint.h> #include <xpmem.h> #include <malloc.h> #include <mcheck.h> int cur_...
/* mdma.c * * DMA linked-list buffer management for Linear Systems Ltd. Master devices. * * Copyright (C) 2007-2009 Linear Systems Ltd. * * 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; ...
#include "utils_generator.h" /** * @brief Reverse bits of 32-bit value * * @param[in] x Value to be reversed * * @return Reversed value */ static inline uint32_t bitreverse32(register uint32_t x) { x = (((x & 0xaaaaaaaa) >> 1) | ((x & 0x55555555) << 1)); x = (((x & 0xcccccccc) >> 2) | ((x & 0x33333333) << 2));...
/* sim_fio.c: simulator file I/O library Copyright (c) 1993-2008, <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 th...
/***************************************************************************** * Copyright (c) 2016 The University of Tokyo * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #include <stdio.h> #include <stdlib.h> #includ...
/* * colours.c - Atari colour palette adjustment - functions common for NTSC and * PAL palettes * * Copyright (C) 1995-1998 <NAME> * Copyright (C) 1998-2010 Atari800 development team (see DOC/CREDITS) * * This file is part of the Atari800 emulator project which emulates * the Atari 400, 800, 800XL, ...
/* Copyright (c) 2011 The dLSM Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ #include "dLSM/c.h" #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> co...
#include <stdio.h> //declaring the registers //16 registers, from v0 to vF are avalible unsigned char v[16]; //Program counter //Index register unsigned short pc; unsigned short I; //stack //stack pointer unsigned short stack[16]; unsigned short sp; //memory of the chip8, where all relevant data is loaded //4 kilob...
#include "dropboxClient.h" void synchronize_local(SSL *ssl, int print) { // executa primeiro FileInfo localFiles[MAXFILES]; int number_files_client = 0; char path[MAXNAME * 3 + 1]; char buffer[BUFFER_SIZE]; char file_name[MAXNAME]; char last_modified[MAXNAME]; int number_files_server = 0; number_files...
#include <assert.h> #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bytecode.h" #include "stack.h" #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) h64stack *stack_New() { h64stack *st = malloc(sizeof(*s...
/* * Copyright (c) 2013-2016 by Farsight Security, 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, mo...
/* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2016 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file and others of this release according to the license defined in the LICENSE ...
#include "compaxx.h" #include "compaxx_int.h" #include <math.h> #include <stdio.h> void printPt(const Point* pt, const char* msg) { printf("%s: (%f, %f, %f)\n", msg, pt->x, pt->y, pt->z); } float sq(float n) { return n * n; } void centroid(const CalibrationCtxPoint* points, short numPoints, Point* result) { ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include "array.h" #define inf 1e+40; #include "overlap.h" /* This procedure computes Adjusted Rand index * * Parameters: * N - number of observations * TRUK - true number of clusters * PREDK - estimated number of clusters * trcl -...
/*************************************************************************************** *** *** *** Copyright (c) 2019, <NAME>, Inc. *** *** ...
#include "stdafx.h" /**************************************************************************** * * RDP release 1.50 by <NAME> (<EMAIL>) 20 December 1997 * * rdp_aux.c - rdp semantic routines * * This file may be freely distributed. Please mail improvements to the author. * *******************************************...
#include <raylib.h> #include <rlgl.h> #include "vlc/vlc.h" // Used for lists and thread #include <glib.h> #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 // A video we show. typedef struct { int x,y; // Position uint32_t texW,texH; // Frame width & height uint32_t w,h; /...
#define BTEWS_WFL_HORZ 0x0001 //can connect horizontally #define BTEWS_WFL_VERT 0x0002 //can connect vertically #define BTEWS_WFL_JOIN 0x0004 //connections join in center #define BTEWS_WFL_OUT 0x0008 //output only #define BTEWS_WFL_CN_LF 0x0010 //connect left #define BTEWS_WFL_CN_RT 0x0020 //connect right #defin...
/* * %CopyrightBegin% * * Copyright Ericsson AB 2010-2018. 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 * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "mpi.h" #ifndef DOUBLE_PRECISION typedef float float_t; #else typedef double float_t; #endif #define NDIM 2 //#define DEBUG 0 //------------- Data Structures --------------------------------------------------------...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static doublereal c_b19 = 1.; /* Subroutine */ int dget33_(doublereal *rmax, integer *lmax, integer *ninfo, integer *knt) { /* System generated locals */ doublereal d__1, d__2, d__3; /* Builtin functions */ double d_sign(doubler...
// 0x0700D0A8 - 0x0700D0C0 static const Lights1 wf_seg7_lights_0700D0A8 = gdSPDefLights1( 0x66, 0x66, 0x66, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ); // 0x0700D0C0 - 0x0700D1B0 static const Vtx wf_seg7_vertex_0700D0C0[] = { {{{ -613, 0, -2175}, 0, {-20266, -542}, {0x81, 0x00, 0x00, 0xff}}}, {{{ -...
#pragma ident "@(#)__libmcr_k_mx_sin.c 1.3 04/02/25 SMI" /* ************************************************************ */ /* * Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that t...
/** * \file avr_misc.c * \brief AVR platform specific implementation routines (for Atmega8, rewrite for your MC) */ /* * Copyright (c) 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
#include "vdso_parser.h" #include <stdio.h> #include <link.h> #include <string.h> #include <stdlib.h> #include <logging/logging.h> static const char s_vdso_name[] = "[vdso]"; #ifdef __amd64__ #define CORRECT_ELF_CLASS ELFCLASS64 #define ELF_ST_TYPE ELF64_ST_TYPE #else #define CORRECT_ELF_CLASS ELFCLASS32 #define EL...
/* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * 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 ...
/****************************************************************************** * Spine Runtimes Software License * Version 2 * * Copyright (c) 2013, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable and * non-transferable license to install, execute an...
/* modules.c : irssi Copyright (C) 1999-2000 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
/* * linux/fs/affs/bitmap.c * * (c) 1996 <NAME> * * bitmap.c contains the code that handles all bitmap related stuff - * block allocation, deallocation, calculation of free space. */ #define DEBUG 0 #include <linux/sched.h> #include <linux/affs_fs.h> #include <linux/stat.h> #include <linux/kernel.h> #includ...
/* * The MIT License (MIT) * * Copyright (c) 2014 <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,...
/** * \file arch/x86/paging.c * \brief Contains data and functions used for paging management * * The two main structured linked to paging management are: \n * PGD: Page Directory \n * PGT: Page Table \n * These structures are used by x86 processors to translate virtual * addresses to physical ones when paging is used....
/* * Copyright (c) 2012-2016, DLR Institute of System Dynamics and Control * Copyright (c) 2015-2016, Linkoeping University (PELAB) and ESI ITI GmbH * 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 <time.h> #include <letmecreate/core/gpio.h> #include <letmecreate/core/i2c.h> #include <letmecreate/rpisensehat/attiny88.h> /* I2C slave address */ #define ATTINY88_ADDRESS (0x46) /* Commands */ #define KEYS_CMD (0xF2) #define LEDS_CMD (0x00) ...
#include "coroutine.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stddef.h> #include <string.h> #include <stdint.h> #if __APPLE__ && __MACH__ #include <sys/ucontext.h> #else #include <ucontext.h> #endif // 如果是x64,替代为自己的实现 #if defined(__x86_64__) #define USE_COCTX #include "coctx.h" #endif ...