text
stringlengths
3.08k
10.5k
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
#include <stdlib.h> #include "debug.h" #include "message.h" // Append the finished current context to the queue void append_current(MessageQueue* queue) { MessageContext* last = queue->first; while (last != NULL && last->next != NULL) last = last->next; if (last == NULL) { queue->first = queue->current;...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
/********************************************************************** * * PostGIS - Spatial Types for PostgreSQL * http://postgis.refractions.net * * Copyright (C) 2001-2006 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU General Public L...
#include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "ph.h" #define EPS 6.0e-8 #define EULER 0.57721566 #define MAXIT 100 #define PIBY2 1.5707963 #define FPMIN 1.0e-30 #define TMIN 2.0 #define ONE Complex(1.0,0.0) /* CAUTION: This is the ANSI C (only) version of the Numerical Recipes ...
// BLADJ // $Revision: 3.37 $ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "phylocom.h" #include "nrutil.h" void Bladj(phylo Intree) { int i, j, q, z, l = 0; int *action; int *AgeFixed; char nameI[50]; float ageI; int matched; char line[201]; // array of charac...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Configure SPI0 as Slave mode and demonstrate how to communicate * with an off-chip SPI Master device with FIFO mode. This sample * code needs to work with SPI_MasterF...
/* * ********************************************************************* * ASSIGNMENT 6: OPERATOR PRECEDENCE WITH ERROR DETECTION AND RECOVERY * * AUTHORS: <NAME> AND <NAME> * * ROLL: 12/CS/06 AND 12/CS/07 * * * ********************************************************************...
/*************************************************************************** Copyright (c) 2013-2019, The OpenBLAS Project 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...
#include <api.h> void SystemManual_setup() { ecs_tracing_enable(-3); } static void Iter(ecs_iter_t *it) { Position *p = ecs_term(it, Position, 1); Velocity *v = NULL; Mass *m = NULL; if (it->term_count >= 2) { v = ecs_term(it, Velocity, 2); } if (it->term_count >= 3) { ...
#include <malloc.h> #include <string.h> #include <3ds.h> #include "task.h" #include "../../error.h" static Result task_data_op_check_running(data_op_data* data, u32 index, u32* srcHandle, u32* dstHandle) { Result res = 0; if(task_is_quit_all() || svcWaitSynchronization(data->cancelEvent, 0) == 0) { ...
/**************************************************************************** Module d:\me218b\Lectures\Lecture 29\Acquiring.c Revision 1.0.1 Description This is the Acquiring state machine for the nested case example. Notes History When Who What/Why -----------...
/* * ivykis, an event handling library * Copyright (C) 2002, 2003, 2009 <NAME> * Dedicated to <NAME>. * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version * 2.1 as published by the Free Software Foundation. * * This libra...
/* * (C) Copyright 2002 * <NAME>, esd gmbh germany, <EMAIL> * * See file CREDITS for list of people who contributed to this * project. * * 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; ...
/* Part of Fail-Safe C Runtime. Produced by <NAME>. (c) 2001-2005 <NAME>. (c) 2005-2006 AIST. (c) 2006 Lepidum Co. Ltd. This file is written by <NAME> in 2004-2006. This file is distributed under Apache License 2.0 with a special exception. See the file LICENSE contained in the distribution. */...
/* * os_specific_l.c * * Created on: May 28, 2012 * Author: bkemper */ #include "os_specific.h" void update_environment(char* base_path) { /* Set the following environment variables: 1) PIN_VM_LD_LIBRARY_PATH (put pin_libs in front of existing LD_LIBRARY_PATH) 2) PIN_LD_RESTORE_REQUIRED ...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <drivers/system_timer.h> #include <sys_clock.h> #include <spinlock.h> #define HPET_REG32(off) (*(volatile u32_t *)(long) \ (CONFIG_HPET_TIMER_BASE_ADDRESS + (off))) #define CLK_PERIOD_REG HPET_REG32(0x0...
/** ************************************************************************** * @file system_at32f435_437.c * @version v2.0.5 * @date 2022-02-11 * @brief contains all the functions for cmsis cortex-m4 system source file ************************************************************************** ...
#include <stdlib.h> #include <string.h> #include <ctype.h> #include "expr.h" #include "rubi.h" #include "asm.h" #include "parser.h" extern int make_stdfunc(char *); static inline int32_t isIndex() { return !strcmp(tok.tok[tok.pos].val, "["); } static void primExpr() { if (isdigit(tok.tok[tok.pos].val[0])) { // ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <ip6tables.h> #include <linux/netfilter_ipv6/ip6_tables.h> #include <linux/netfilter/xt_NFLOG.h> enum { NFLOG_GROUP = 0x1, NFLOG_PREFIX = 0x2, NFLOG_RANGE = 0x4, NFLOG_THRESHOLD = 0x8, }; static struct option opts[] = { { "n...
/*- * Copyright (c) 1994, <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following discla...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <limits.h> #include "util.h" #include "problem.h" #include "linear.h" #include "stump.h" int to_test = 0; int to_cross_validate = 0; int num_folds = 2; int quiet = 0; void exit_with_help() { printf("Usage: train-adaboost-stump [o...
/************************************************************************** * * Copyright 2007-2008 VMware, Inc. * Copyright 2012 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "S...
/* * constants for type 340 words * (use for writing test programs) */ /* * Copyright (c) 2018, <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, includin...
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. 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 retai...
/** * @file lv_draw_triangle.c * */ /********************* * INCLUDES *********************/ #include "lv_draw_triangle.h" #include "../lv_misc/lv_math.h" #include "../lv_misc/lv_mem.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS ****************...
/* * Copyright (c) 2018 <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, modify, mer...
#include "xmfract.h" #include "fractype.h" #include "macros.h" #include "helpdefs.h" #include "mpmath.h" #include "globals.h" #include "prototyp.h" #ifndef NO_IDENT #ident "$Id: resize_window.c,v 1.400 1995/06/20 15:39:23 darryl Exp $" #endif /*ARGSUSED*/ void resize_window( Widget w, XtPointer client_data, XtPointe...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ui_jtoc_efj_helper2.c :+: :+: :+: ...
/* Part of libvboxfs - (c) 2012, <NAME> */ #include "inc.h" /* * Convert a VirtualBox timestamp to a POSIX timespec structure. * VirtualBox' timestamps are in nanoseconds since the UNIX epoch. */ static void get_time(struct timespec *tsp, u64_t nsecs) { tsp->tv_sec = (unsigned long)(nsecs / 1000000000); tsp->tv...
/* * Copyright 2018 High Performance Computing Center, Stuttgart * * 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 appl...
/* * waveshaper.c - Audiality 2 simple waveshaper unit * * Transfer function: * y = ( (3*a + 1) * x - (2*a * x*abs(x)) ) / (x*x * a*a + 1) * * This waveshaper maintains what is perceived as a quite constant output * power regardless of shaping amount, for input in the [-.5, .5] "0 dB" * range. The downside is...
/* Copyright (c) [2014 Baidu]. 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 by applicable law or a...
/* frame.c - manage physical frames */ #include <conf.h> #include <kernel.h> #include <proc.h> #include <paging.h> #define SETZERO 0 #define SETONE 1 #define TWOTEN 1024 extern int page_replace_policy; /*------------------------------------------------------------------------- * init_frm - initialize frm_tab *--...
/*$T \Sources/main.c GC 1.150 2011-09-22 20:52:18 */ /*$6 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /*$F ***...
#include "utils.h" // Compute the Internet Checksum (https://tools.ietf.org/html/rfc1071). One // of the particularly clever features of the Internet Checksum is its byte // order independence. In other words, it is not a bug that this function // does not contain any calls to `ntohs` or `htons`. uint16_t checksum(con...
/*! ***************************************************************************** * @file: Services.c * @brief: * @version: $Revision$ * @date: $Date$ *----------------------------------------------------------------------------- * Copyright (c) 2016-2017 Analog Devices, Inc. All rights reserved. Redistr...
/* * Copyright (c) 2015-2017 Contributors as noted in the AUTHORS file * * This file is part of ukvm, a unikernel monitor. * * 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 permission ...
/* $OpenLDAP: pkg/ldap/servers/slurpd/args.c,v 172.16.17.32 2003/03/24 03:56:09 kurt Exp $ */ /* * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* * Copyright (c) 1996 Regents of the University of Michigan. * All rights reserved. * * Redist...
/* * ngtcp2 * * Copyright (c) 2017 ngtcp2 contributors * * 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, m...
#include "c_types.h" #include "esp8266_auxrom.h" #include "esp8266_rom.h" #include "eagle_soc.h" #include "ets_sys.h" #include "gpio.h" #include <usb.h> #define CUSTOM_BUFFERSIZE 2100 uint8_t usb_custom_acc[CUSTOM_BUFFERSIZE]; uint8_t usb_custom_ret[CUSTOM_BUFFERSIZE]; //This might look a little odd, but, keep in m...
/* * Copyright (C) 2018 <NAME> * * This program 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 program is d...
// // BRTezosTransfer.c // WalletKitCore // // Created by <NAME> on 2020-06-17. // Copyright © 2020 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // #include <stdlib.h> #inc...
/***************************************************************************** * filter_picture.h: Common picture functions for filters ***************************************************************************** * Copyright (C) 2007 VLC authors and VideoLAN * $Id: 30aec839a746bc92053b673a16eb4eb5937d2380 $ * * ...
/* * File: petri_net_printer.c * Author: <NAME> * Email: <EMAIL> * Company: LAAS-CNRS / Vertics * Created on July 7, 2009, 3:08 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 a...
#include "ameba_soc.h" #include "ftl_int.h" #include "main.h" #include "bsp_touch.h" void app_init_psram(void) { u32 temp; PCTL_InitTypeDef PCTL_InitStruct; /*set rwds pull down*/ temp = HAL_READ32(PINMUX_REG_BASE, 0x104); temp &= ~(PAD_BIT_PULL_UP_RESISTOR_EN | PAD_BIT_PULL_DOWN_RESISTOR_EN); t...
/* * Copyright (c) 2008-2020 <NAME> (<EMAIL>) * Copyright (c) 2008 <NAME> (<EMAIL>) * Copyright (c) 2008 <NAME> (<EMAIL>) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribu...
/***************************************************************************** * * \file * * \brief ACIFA example driver for AVR UC3. * * This file provides an example for the ACIFA on AVR UC3 devices. * * Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License ...
/*-----------------------------------------------------------------------------*/ /* LCD autonomous demo 3 */ /* Copyright (c) 2013 <NAME> */ /* ...
/*------------------------------------------------------------------------- * * prepkeyset.c * Special preperation for keyset queries. * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * *---------------------------...
/* $OpenBSD: cardbus_exrom.c,v 1.4 2005/09/13 18:44:38 fgsch Exp $ */ /* $NetBSD: cardbus_exrom.c,v 1.4 2000/02/03 06:47:31 thorpej Exp $ */ /* * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to * The NetBSD Foundation by <NAME>. * * Red...
/* * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application * Copyright (C) 2005-2014, <NAME> <<EMAIL>> * * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Li...
// SPDX-License-Identifier: MIT // // -- this file should not be included directly -- // // It is included by sys_impl.h and contains code adapted from Linux and // is licensed under the MIT license (<linux-src>/LICENSES/preferred/MIT) // // MIT License // // Copyright (c) <year> <copyright holders> // // Permission is...
/*! * \file * \brief LR3 Click example * * # Description * This example reads and processes data from LR 3 clicks. * * The demo application is composed of two sections : * * ## Application Init * Initializes the driver, enables the click board and configures it for the selected mode. * * ## Application...
/**************************************************************************/ /*! @file cpu.c @author <NAME> (microBuilder.eu) @date 22 March 2010 @version 0.10 @section DESCRIPTION Initialises the CPU and any core clocks. By default, the core clock is set to run at 12MHz. In o...
/* * 金棒 (kanabō) * Copyright (c) 2012 <NAME> <<EMAIL>>. All rights reserved. * * 金棒 is a tool to bludgeon YAML and JSON files from the shell: the strong * made stronger. * * For more information, consult the README file in the project root. * * Distributed under an [MIT-style][license] license. * * Permis...
#include <math.h> #include <libavutil/opt.h> #include <libavcodec/avcodec.h> #include <libavutil/channel_layout.h> #include <libavutil/common.h> #include <libavutil/imgutils.h> #include <libavutil/mathematics.h> #include <libavutil/samplefmt.h> #define INBUF_SIZE 4096 /* * Video encoding example */ static void vi...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include "storm.h" #include "hash.h" #include "collections/hash_table.h" #define NUM_WINDOW_CHUNKS 5 #define DEFAULT_SLIDING_WINDOW_IN_SECONDS (NUM_WINDO...
/* * mtdpart.c * * Copyright 2015 The Chromium OS Authors. * * 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. * * Overview: * This utility adds or removes a partition fro...
// // tlcache.c - part of the Virtual AmigaDOS Machine (VADM) // contains the routines that implement the translation cache // // Copyright(C) 2019, 2020 <NAME> // #include "tlcache.h" #include "vadm.h" #include "util.h" TranslationCache *gp_tlcache; // The cache is implemented as a binary search tre...
/*! * * \file PWMInput.c * \author no1wudi */ #include "PWMInput.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_tim.h" #include "misc.h" #include "LED.h" void TIM2_IRQHandler(void) { if (TIM2->SR & TIM_IT_CC1) { TIM_ClearITPendingBit(TIM2, TIM_IT_CC1); return; ...
/* Copyright 2021 <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, distribute, sublicense, ...
#include "stdinc.h" #include "dat.h" #include "fns.h" enum { Top = 1, Bottom = 1, Left = 40, Right = 0, MinWidth = Left+Right+2, MinHeight = Top+Bottom+2, DefaultWidth = Left+Right+500, DefaultHeight = Top+Bottom+40 }; QLock memdrawlock; static Memsubfont *smallfont; static Memimage *black; static Memimage *b...
#include <err.h> #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <limits.h> #include <libgen.h> #include <sys/utsname.h> #include <jansson.h> #include "lib.c" ulong str2id(const char *s) { ulong id; if (sscanf(s, "0x%lx", &id) != 1 && sscanf...
/* Test mpq_inp_str. Copyright 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP 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 ...
/** * File: isaac.c * * This code is part of Data Transfer Security Protocol (DTSP) library. * * Optimised ANSI C code for ISAAC secure pseudorandom number generator. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to an...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include "openssl/crypto.h" #include "openssl/ssl.h" #include "test_common.h" SSL_CTX *create_context() { ...
/* * $Id: s_event.c,v 1.22 2005/02/19 00:37:40 slava Exp $ * * Copyright (C) 2000-2005 by <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1.Redistributions of source code must retain ...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
/* SCCS Id: @(#)gntext.c 3.4 2000/07/16 */ /* Copyright (C) 1998 by <NAME> <<EMAIL>> */ /* NetHack may be freely redistributed. See license for details. */ #include "gntext.h" #include "gnmain.h" #include <gnome.h> /* include the standard RIP window (win/X11/rip.xpm) */ #include "gn_rip.h" /* dimensions of the pixm...
/* * Copyright (c) 2015,2016,2019 <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 cond...
/* * Copyright (c) 2021, Xilinx Inc. and Contributors. All rights reserved. * * SPDX-License-Identifier: MIT */ #include "layer0/uio.h" #include "layer0/xrtbuffer.h" #include "layer0/dm.h" #include <semaphore.h> #define DDR_BASED 0 #define PL_BASED 1 #define HW_NODE 0 #define SW_NODE 1 #define IO_NODE 2 #de...
#include <ctype.h> #include <setjmp.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "sighandler.h" /* * Because the parser is implemented here doesn't take care of * strings, character constants or comments, we hide the { } inside * macros. */ #define LEFT '{' #define RIGHT '}' /** ** @br...
/* Copyright (c) 2007-2009 <NAME> <<EMAIL>> Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg 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 ...
/* (c) Copyright 2012-2013 DirectFB integrated media GmbH (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org) (c) Copyright 2000-2004 Convergence (integrated media) GmbH All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <...
#include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include "chpllaunch.h" #include "chpl-mem.h" #include "chpltypes.h" #include "error.h" #define LAUNCH_PATH_HELP WRAP_TO_STR(LAUNCH_PATH) #define WRAP_TO_STR(x) TO_STR(x) #define TO_STR(x) #x #def...
#include "calibrationcurvegenerator.h" #include "math.h" static float modulo(float x, float y) { float b = fmodf(x,y); return b < 0 ? b + y : b; } static void getHarmonics(float angleErrorArrayInDegree[], const unsigned int sizeAngleArray, unsigned int har...
#pragma once #include <brutal/alloc.h> #include <brutal/base/macros.h> #include <brutal/mem.h> struct vec_impl { char **data; int data_size; struct alloc *alloc; int *length; int *capacity; }; bool vec_expand_impl(struct vec_impl *impl); bool vec_reserve_impl(struct vec_impl *impl, int n); boo...
#include <stdio.h> #include <string.h> #include <stdint.h> #include <inttypes.h> uint64_t lua_bind_hash(void* data_, size_t len) { int64_t *data = data_; int64_t *plVar1; int64_t *plVar2; uint64_t uVar3; uint64_t uVar4; int64_t lVar5; uint64_t uVar6; uint64_t uVar7; uint64_t uVar8; ...
/** * \file main.c * * \brief MAC Serial Interface Application * * Copyright (c) 2013-2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/* * Copyright (c) 2015 Kaprica 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, modify, mer...
/* * Copyright (c) 2015-2016, Texas Instruments 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 * n...
// =================================================================== // // Copyright (c) 2005, Intel Corp. // 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 ...
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
#define ACCEL 0x30 #define GRAVITY 0x50 #define MAX_SPEED 0x240 #define JUMP_VEL -0x600 #define MAX_RIGHT 0x9000 #pragma bss-name(push, "ZEROPAGE") // GLOBAL VARIABLES unsigned char pad1; unsigned char pad1_new; unsigned char collision; unsigned char collision_L; unsigned char collision_R; unsigned char collision_U...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <lib/type.h> #include <errno.h> #include <porting/system_port.h> #include <porting/net_port.h> #include <ssl_client.h> #include <lib/debug.h> #include <lib/sf_malloc.h> #include <lib/mem_check.h> #include <lib/error.h> #include <assert.h> #include "...
#include "logger.h" #include <string.h> #include <time.h> #include <stdarg.h> #include <sys/time.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <unistd.h> #include <pthread.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> static const int file_max_coun...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <discodb.h> static void print_cursor(struct ddb *db, struct ddb_cursor *cur) { if (!cur){ const char *err; ddb_error(db, &err); fprintf(stderr, "Query failed: %s\n", err); ...
#include "../include/v_loader.h" #include "../include/v_memory.h" #include "../include/v_buffer.h" #include "../include/v_program.h" #include "../include/v_state.h" #include "../include/v_types.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <GL/gl.h> #define BIN_DIR "/bin" #define SHADER_DIR "...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
/* * Copyright (C) 2017 - 2018 FIX94 * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <stdio.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> #include "../cpu.h" #include "../ppu.h" #include "../mapper.h" #inclu...
/** \file * \brief Progress bar Control * * See Copyright Notice in "iup.h" */ #include <windows.h> #include <commctrl.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <memory.h> #include <stdarg.h> #include "iup.h" #include "iupcbs.h" #include "iup_object.h" #include "iup_attrib.h" #inclu...
/* * Copyright 2021, alex at staticlibs.net * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * a i r e t r e a t . c * * AIMODE_RETREAT * * Copyright (c) 1997 Probe Entertainment Limited * All Rights Reserved * * Authors: Phillipd, Collinsd */ #include <stdio.h> #include <math.h> #include <malloc.h> #include <dplay.h> #include "typedefs.h" #include "main.h" #include "new3d.h" #include "quat.h" #inc...
/** * Ip2region lua c binding * * @author chenxin<<EMAIL>> * @date 2018/10/04 */ #include <stdio.h> #include <stdlib.h> #include <lua.h> #include <lauxlib.h> #include "../c/ip2region.h" #define L_METATABLE_NAME "Ip2region_MT" /** create a new ip2region object with a specified dbFile */ static int lua_ip2regi...
#include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 16 #define ROUNDS 5 #define KEY_SIZE 32 unsigned short sbox[16] = {14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7}; //HARD CODED SBOX unsigned short sbox_inv[16] = {14,3,4,8,1,12,10,15,7,13,9,6,11,2,0,5}; //HARD CODED INVERSE OF SBOX unsigned short pbox_re...
/** * The MIT License (MIT) * * Copyright (c) 2013-2018 Winlin * * 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,...
// Copyright(c) 2016 Purpasmart // The MIT License // // 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...
#include "Tokenizer.h" static bool IsLetter(char c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); } static bool IsDigit(char c) { return c >= '0' && c <= '9'; } static bool IsWhitespace(char c) { return c == ' ' || c == '\t'; } static bool IsValidInIdentifier(char c) { return IsLetter(c) || IsDigit(c) ...
//! ============================ //! A區剩餘車位的MCU //! ============================ #include <Nano100Series.h> #include <stdio.h> #include <string.h> // Setting AP //#define SSID "dlink-F8F8" //#define PASSWD "<PASSWORD>" #define SSID "DCTV_2GH186U" #define PASSWD "<PASSWORD>" void lcd_init(void); void lcd_print(uint8_...