text stringlengths 5.8k 28.2k |
|---|
/* **********************************************************
* Copyright (c) 2017-2019 Google, Inc. All rights reserved.
* Copyright (c) 2016 ARM Limited. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* ... |
#ifdef COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#else
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "./SlimTracin/core/types.h"
#include "./SlimTracin/math/vec... |
/*-
* Copyright 2014-2015 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2003 <NAME> - All Rights Reserved
* Copyright 1998-2008 <NAME> - All Rights Reserved
*
* Based on the Linux installer program for SYSLINUX by <NAME>
*
* This program is free software; you can redistribute it and/or... |
/* GStreamer Progress Report Element
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Copyright (C) <2003> <NAME> <<EMAIL>>
* Copyright (C) <2004> <NAME> <<EMAIL>>
* Copyright (C) <2006> <NAME> <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU... |
// Based on https://github.com/moononournation/Arduino_GFX/blob/master/src/display/Arduino_ST7789.cpp
/*
* start rewrite from:
* https://github.com/adafruit/Adafruit-GFX-Library.git
* https://github.com/ananevilya/Arduino-ST7789-Library.git
*/
#include <inttypes.h>
#include <stdio.h>
#include <stdbool.h>
#include ... |
/* BEGIN_ICS_COPYRIGHT7 ****************************************
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... |
/**
* Copyright 2020 <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 w... |
// SPDX-License-Identifier: GPL-2.0
/*
* RISC-V code
*
* Copyright (C) 2021 Western Digital Corporation or its affiliates.
*/
#include <linux/compiler.h>
#include <assert.h>
#include "kvm_util.h"
#include "../kvm_util_internal.h"
#include "processor.h"
#define DEFAULT_RISCV_GUEST_STACK_VADDR_MIN 0xac0000
static... |
/*****************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* 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://ww... |
#include <lua.h>
#include <lauxlib.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#define SEARCH_DEPTH 1024
#define BLOCK_WEIGHT 255
struct map {
int width;
int height;
uint8_t m[0];
};
struct pathnode {
int x;
int y;
int camefrom;
int gscore;
int fscore;
};
struct path {... |
/*
* tracer.c: Ray-tracing core
*
* (C) Copyright <NAME> 1999-2014
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "tracer.h"
/* ------------------------------------------------------------------
* Macros
*/
/* #define DEBUG */
#define REFLECTSTOP 0.1
#ifndef INFINIT... |
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#if GC_DEBUG
#include <stdio.h>
#endif
#include "gc-impl.h"
#define POINTER_SIZE sizeof(void*)
static size_t bucket_sizes[] = {
8209,
16411,
32771,
65537,
131101,
262147,
524309,
1048583,
2097169,
4194319,
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <dirent.h>
#include <sys/stat.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <sys/wait.h>
#include <pthread.h>
#in... |
#include <memory.h>
#include "md5.h"
/*
* Implemented from RFC1321 The MD5 Message-Digest Algorithm
*/
#define DATA_ORDER_IS_LITTLE_ENDIAN //md5 use LITTLE_ENDIAN
#include "internal/md32_common.h"
#define INIT_DATA_A (unsigned long)0x67452301L
#define INIT_DATA_B (unsigned long)0xefcdab89L
#defin... |
/*
* Copyright 2018-2022 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "ast.h"
#include "../query_ctx.h"
#include "../errors.h"
#include "../util/arr.h"
#include "../util/qsort.h"
#include "../util/sds/sds.h"
#include "../procedures/proc... |
/*! \file utils.c
* \author <NAME> <<EMAIL>>
* \copyright GNU General Public License v3
* \brief Utilities and helpers
* \details Implementations of a few methods that may be of use here
* and there in the code.
*
* \ingroup core
* \ref core
*/
#include <stdlib.h>
#include <string.h>
#include <sys/s... |
#include <lcom/lcf.h>
#include "game.h"
#include "keyboard.h"
#include "mouse.h"
#include "packet.h"
#include "video.h"
#include "rtc.h"
#include "cursor.h"
#include "xpm.h"
#include "pixmap/play.h"
#include "pixmap/bullet.h"
#include "pixmap/square.h"
#include "pixmap/board_pre.h"
#include "pixmap/b.h"
#include... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define IRIS_ENCODING_SIZE 147
struct CMM create_cmm(int rows, int cols);
int * create_matrix(int rows, int cols);
void print_cmm(struct CMM cmm);
void insert(struct CMM cmm, int* data_vec, int* key_vec);
int * recall(struct CMM cmm, int * key_vector, int * o... |
//
// Created by <NAME> on 2019-07-22.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <assert.h>
//#include </usr/local/include/xenctrl.h>
#include <uuid/uuid.h>
//#include </usr/local/include/xen/sysctl.h>
#include <xenctrl.h>
#include <xen/sysctl.h>
#defi... |
// Copyright (c) <2012> <<NAME>>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify,
// merge, publish,... |
/*
* File: dev_buck_opstates.c
* Author: M91406
* Created on October 9, 2020, 9:16 AM
*/
#include <xc.h> // include processor files - each processor file is guarded.
#include <stdint.h> // include standard integer data types
#include <stdbool.h> // include standard boolean data types
#include "dev_buck_pconf... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// Sun Raster image format
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_sunras);
struct color32desc_type {
u8 channel_shift[4];
u8 has_alpha; // 0=no, 1=yes, 2=autodetect
const... |
/**
* syscall.c
*
* This file holds the implementations of the files declared in syscall.h.
*/
#include "pcb.h"
#include "../fsys/fs.h"
#include "../bootinit/paging.h"
#include "../keyboard.h"
#include "../rtc.h"
#include "../x86_desc.h"
#include "syscall.h"
#include "../terminal.h"
#define EIGHT_MB 0x00800000... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <assert.h>
#include <math.h>
#if __INTEL_COMPILER
#include "mkl.h"
#else
#include <gsl/gsl_cblas.h>
#endif
#include "defs.h"
#include "utils.h"
#include "progressbar.h"
long naive(const double * restrict x1, const double * restrict y1, const int ... |
/*
* Copyright (C) SplinterGU (Fenix/BennuGD) (Since 2006)
* Copyright (C) 2002-2006 Fenix Team (Fenix)
* Copyright (C) 1999-2002 <NAME> (Fenix)
*
* This file is part of Bennu Game Development
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the au... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include "json.h"
#include "json_ascii_utils.h"
#ifdef DEBUG
#define DEBUG_PRINT(x) fprintf(stderr, x)
#else
#define DEBUG_PRINT(x) do {} while (0)
#endif
/* Functions that are used in this file, but are not declared in... |
// Copyright 2013 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 by appl... |
/*
Copyright (c) 2012, Broadcom Europe 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and t... |
// The MIT License (MIT)
// Copyright (c) 2015 <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, co... |
#include "dsl.h"
#include "dsl-manager.h"
#include "ds-state.h"
#include "ds-region.h"
#include "replay.h"
#include "trigger.h"
#include <stdlib.h>
#include <string.h>
typedef struct trigger_node_s {
union {
attack_trigger_t attack;
noorders_trigger_t noorders;
use_trigger_t use;
lo... |
/**********
STAG version 2.7
Copyright 2000 owned by the United Kingdom Secretary of State for Defence
acting through the Defence Evaluation and Research Agency.
Developed by : <NAME>,
Department of Electronics and Computer Science,
University of Southampton,
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "includes/types.h"
#include "includes/map.h"
#include "includes/util.h"
#include "includes/colors.h"
#include "includes/unit.h"
#include "includes/cursor.h"
#include "includes/info_screen.h"
#include "includes/vec... |
/****************************************************************************/
/* */
/* Copyright (C) 1991-2000, all rights reserved */
/* <NAME>, <NAME>, and <NAME> */
/* See file "README" f... |
/*
* Copyright (c) 2002 <NAME>
*
* libDockapp example - Usage of action rectangles
*
* Some clickable and draggable areas for you to play
* with.
*
* There's a bit much in here...
*/
/* The cursor font - stamdard cursor glyphs. */
#include <X11/cursorfont.h>
/* Required because we don't use a pixmap for the ... |
/* specification of the command line arguments for HapCUT2 and I/O of these
*/
// Printing related
int VERBOSE = 0;
int PRINT_FRAGMENT_SCORES = 0; // output the MEC/switch error score of erroneous reads/fragments to a file for evaluation
int OUTPUT_HAPLOTAGS =0; // read-haplotype assignments
int OUTPUT_VCF =1; //... |
//*****************************************************************************
//**************** TANK.C - Compute tanks real water level and ***************
//**************** control their inlet valve positions ***************
//**************** Author: <NAME> ***************
//*****... |
/*
* EOS - Experimental Operating System
* IDT setup functions
*/
#include <kernel/idt.h>
#include <kernel/tty.h>
#include <kernel/io/ports.h>
#include <libk/string.h>
#include <kernel/devices/timer.h>
#include <kernel/pm/scheduler.h>
#define SET_IDT_ENTRY(idx) \
set_idt_entry(idx, (uint32_t) &interrupt_hand... |
/*
* Copyright (C) 2016 Southern Storm Software, Pty Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... |
/* =================================================================== */
/* module get_bpar.c - compute PAR at depth */
/* */
/* This module contains the functions to estimate phytosynthetically */
/* active radiation (PAR... |
#include "gkstring.h"
#include "morphargs.h"
#include "libfiles.h"
struct {
char class_name[MAXWORDSIZE];
long class_num;
} arg_stemclass[] = {
"adj1", ADJSTEM|DECL1|DECL2,
"adj2", ADJSTEM|DECL1|DECL2,
"adj3", ADJSTEM|DECL3,
"noun1", NOUNSTEM|DECL1,
"noun2", NOUNSTEM|DECL2,
"noun3", ... |
#include "imm/imm.h"
/* State IDs */
#define START ((imm_state_id_t)(0U << 11))
#define B ((imm_state_id_t)(1U << 11))
#define M ((imm_state_id_t)(2U << 11))
#define I ((imm_state_id_t)(3U << 11))
#define D ((imm_state_id_t)(4U << 11))
#define E ((imm_state_id_t)(5U << 11))
#define J ((imm_state_id_t)(6U << 11))
#defi... |
#include <tests_internal.h>
#include <kdbproposal.h>
static void test_ro()
{
Key *key;
key = keyNew(0);
key->flags |= KEY_FLAG_RO_VALUE;
succeed_if (keySetString(key, "a") == -1, "read only string, not allowed to set");
succeed_if (keySetBinary(key, "a", 2) == -1, "read only string, not allowed to set");
key-... |
#include <stdio.h>
#include "sweeny_uf.h"
#include <ctype.h>
#include <strings.h>
#include <stdio.h>
#include "../src/uf.h"
#include "../src/queue.h"
#include <math.h>
#include <gsl/gsl_rng.h> //Verwendung von Mersenne-Twister Pseudozufallszahlengenerator
static __s8 dN;
#define MIN(a,b) a <= b ? a: b
#def... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer Software License
*
* IMAGE POWER JPEG-2000 PUBLIC LICENSE
* ************************************
*
* GRANT:
* ... |
/* $NetBSD: pxg.c,v 1.10 2002/03/17 19:41:02 atatat Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
*... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
// screen
// statusbar is append after SCREEN_HEIGHT screen
// actual screen height is SCREEN_HEIGHT+1
#define SCREEN_WIDTH 30
#define SCREEN_HEIGHT 20
// line buffer length
#define LINE_BUFFER_LE... |
//
// sdhc-test.c
// index
//
// Created by <NAME> on 2021-07-28.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "sdhc-test.h"
#include "sd-commands.h"
#define SDHC_ADMA2_DESC_ACT_NOP_Val 0b00
#define SDHC_ADMA2_DESC_ACT_TRAN_Val 0b10
#define SDHC_ADMA2_DESC_ACT_LINK_Val 0b11
#define SDH... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include "delbrot.h"
#include "y.tab.h"
#define UNDEFINED(n) n->type == typeVar && n->var.value == NULL
/* useful for error messages */
static char *typeNames[] = {"integer", "identifier", "string", "clip", "function", "v... |
/* Line numbers refer to:
https://github.com/codybartfast/sicp/blob/master/chapter5/ec-evaluator-00.scm */
#include "eceval.h"
#include <stdbool.h>
#include <stdlib.h>
#include "error.h"
#include "list.h"
#include "mceval.h"
#include "output.h"
#include "primproc.h"
#include "register.h"
#include "storage.h"
#defi... |
/*
* Mach Operating System
* Copyright (c) 1991 Carnegie Mellon University
* Copyright (c) 1991 IBM Corporation
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission noti... |
/*
* The ToAru Sample Game
*
* This is a simple RPG. This is the outdated non-windowed
* fullscreen version that makes direct graphics calls.
*/
#include <stdio.h>
#include <stdint.h>
#include <syscall.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
typedef struct sprite {
uint16_t width;
uint16_t... |
/*
* iodefine_ext.h
*
* update 2018 forester3
*
* 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
*
* Unles... |
/*
*Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
*
*Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
*"Software"), to deal in the Software without restriction, including
*without limitation the rights ... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "gp.h"
#include "gp_int.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "time.h"
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(byte) \
(byte & 0x80 ? '1' : '0'), \
(byte & 0... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/select.h>
#include <poll.h>
#include "prot.h"
#include "queue.h"
#include "cmn_log.h"
#include "capture_poll.h"
#define LOG_ERR1 LOG_LOCAL3
#define LOAD_LEN... |
/*
* invoice-address.c
*
* Copyright 2021 chehw <<EMAIL>>
*
* The MIT License (MIT)
*
* 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 limi... |
/*
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any ... |
/* Sniffer example.
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#incl... |
/* $Xorg: xkbevd.c,v 1.4 2000/08/17 19:54:49 cpqbld Exp $ */
/************************************************************
Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby gran... |
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zfp.h"
#include "macros.h"
/*
File I/O is done using the following combinations of i, o, s, and z:
- i : read uncompressed
- z : read compressed
- i, s: read uncompressed, print stats
- i, o: read and write u... |
/*
* FreeRTOS Kernel V10.4.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, ... |
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2020 <NAME>
//
// Based on tcpconnect(8) from BCC by <NAME>
#include <sys/resource.h>
#include <arpa/inet.h>
#include <argp.h>
#include <signal.h>
#include <limits.h>
#include <unistd.h>
#include <time.h>
#include <bpf/bpf.h>
#include "tcpconnect.h"
#include "tcpconn... |
/*
keyexpand.c
Author: <NAME> <<EMAIL>>
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
All rights reserved.
Utility function allowing expansion (or compression) of a fixed-size
key from arbitrary length passphrase.
*/
#include "sshincludes.h"
#include "sshgetput.h"
#include "sshcrypt.h"... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include <net-snmp/net-snmp-config.h>
#if HAVE_LIMITS_H
#include <limits.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <ctype.h>
#include <signal.h>
#if HAVE_MACHINE_PARAM_H
#include <machine/param.h>
#endif
#if H... |
/* ../netlib/zhsein.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the en... |
/*
The MIT License (MIT)
Copyright (c) 2014 <NAME> & <NAME>
{<EMAIL>|<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, c... |
#include "player.h"
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
static t_symbol *s_done;
static t_symbol *s_pos;
typedef const char *err_t;
/* ------------------------- FFmpeg player ------------------------- */
static t_class *ffplay_class;
typedef struct {
t_symbol **trk; /* m3u list ... |
#include "cache.h"
#include "object.h"
#include "blob.h"
#include "tree.h"
#include "tree-walk.h"
#include "commit.h"
#include "tag.h"
#include "fsck.h"
#include "refs.h"
#include "utf8.h"
static int fsck_walk_tree(struct tree *tree, fsck_walk_func walk, void *data)
{
struct tree_desc desc;
struct name_entry entry;
... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Slabs memory allocation, based on powers-of-N. Slabs are up to 1MB in size
* and are divided into chunks. The chunk sizes start off at the size of the
* "item" structure plus space for a small key and value. They increase by
* a mult... |
/*
* Example code for userdata handling in the moon toolkit.
*
* The moon toolkits provides the following functions for handling
* userdata in an easy and safe way:
* - moon_defobject
* - moon_newobject
* - moon_newpointer
* - moon_newfield
* - moon_killobject
* - moon_checkobject
* - moon_test... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
/***********************************************************************/
/* This file is part of the ARM Toolchain package */
/* Copyright (c) 2010 Keil - An ARM Company. All rights reserved. */
/***********************************************************************/
/* ... |
/*
* This software is Copyright (c) 2016-2017 <NAME>
* [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
*/
#include <stdio.h>
... |
/* main.c
* Created by <NAME> on 06/23/11.
* Version 0.1.5
* Last revision by <NAME> on 06/27/14.
*/
#include <stdlib.h>
#include <stdint.h>
#include <emmintrin.h>
#include <zlib.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include "ssw... |
#include "mdconf.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
mdconfnode *mdconfcreatesibling(mdconfnode *node)
{
if(!node) {
return NULL;
}
while(node->next) {
node = node->next;
}
node->next = (mdconfnode *)malloc(sizeof(mdconfnode));
node->next->key = NULL;
node->next->valu... |
#pragma once
#include "il2cpp-config.h"
#include <stdint.h>
#include "il2cpp-tokentype.h"
// This file contains the structures specifying how we store converted metadata.
// These structures have 3 constraints:
// 1. These structures will be stored in an external file, and as such must not contain any pointers.
// ... |
/*
Copyright 2015, 2017, Bloomberg Finance L.P.
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 o... |
// Code to create hgTracks menu bar
#include "common.h"
#include "dystring.h"
#include "ensFace.h"
#include "agpFrag.h"
#include "ctgPos.h"
#include "hCommon.h"
#include "htmshell.h"
#include "hash.h"
#include "liftOver.h"
#include "wikiLink.h"
#include "web.h"
#include "geoMirror.h"
#include "hgTracks.h"
#include "tr... |
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdlib.h>
#include <string.h>
#include "fn.h"
interposed_funcs_t g_fn;
/*
* Added the ability to get a specific handle for dlsym()
* when working with libmusl. Encountered an issue with
* Go static executables where dlysm() did not resolve
* symbols using RTLD_NEX... |
/* sexputil.c - Utility functions for S-expressions.
* Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG 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 Foundat... |
/**************************************************************************
* Parts copyright (c) 2001 by <NAME>. All rights reserved. *
* Parts copyright (c) 2004, 2008 by <NAME>, /k/ Embedded Java *
* Solutions. All rights reserved. *
* ... |
/*
* Copyright 2019 International Business Machines
*
* 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 applicab... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_kmac.h"
#include "sw/d... |
// Libraries
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// Files
#include "config.h"
#include "options.h"
#include "shadomenu.h"
#define MAX_CATEGORIES 50
#define MAX_TODOS 1000
struct Date {
int month, day, hour, minute;
int ind;
};
struct Rules {
char VERSION[3];
i... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Using AIX */
/* #undef AIX */
/* Broken getaddrinfo */
/* #undef BROKEN_GETADDRINFO */
/* Use bundled libtom */
//#define BUNDLED_LIBTOM 1
/* lastlog file location */
/* #undef CONF_LASTLOG_... |
#include "glmc.h"
inline void glmc_mat3f_add(mat3f dest, mat3f src_a, mat3f src_b)
{
dest[0][0] = src_a[0][0] + src_b[0][0];
dest[0][1] = src_a[0][1] + src_b[0][1];
dest[0][2] = src_a[0][2] + src_b[0][2];
dest[1][0] = src_a[1][0] + src_b[1][0];
dest[1][1] = src_a[1][1] + src_b[1][1];
dest[1][2] = src_a[1][2] + ... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/* htmshell - a shell to wrap around programs that generate
* html files. Write the html initial stuff (<head>, <body>, etc.)
* and the final stuff too. Also catch errors here so that
* the html final stuff is written even if the program has
* to abort.
*
* This also includes a few routines to write commonly us... |
/*****************************************************************************/
/* */
/* Module: TIA Chip Sound Simulator */
/* Purpose: To emulate the sound generation hardware of the Atari TIA chip. */
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parmt_invert.h"
#ifdef PARMT_USE_INTEL
#include <mkl_lapacke.h>
#include <mkl_cblas.h>
#else
#include <lapacke.h>
#include <cblas.h>
#endif
#include "parmt_utils.h"
#include "iscl/array/array.h"
#include "iscl/linalg/linalg.h"
#include "iscl/memory/me... |
/**************************************************************************
naqs_plugin.c: A SeedLink plugin for collecting data from a Nanometrics
NaqsServer (NAQS).
Based on the example code (dsClient.cpp) distrubuted by Nanometrics.
The original copyright notice is below. Notification was... |
/*
Copyright <2017> <Scaleable and Concurrent Systems Lab;
Thayer School of Engineering at Dartmouth College>
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 restr... |
#include <time.h>
#include "custom.h"
double spot_control ;
int spotPenalty ;
int spotXhash ;
int spotYhash ;
char **spots ;
int numXspots ;
int numYspots ;
int spotSize ;
extern int finalShot ;
int choose ;
int bigcell ;
int toobig ;
extern int totNetLen ;
extern int wireEstimateOnly ;
double chipaspect ;
int iwir... |
/* ********************************************************************************************* */
/* * C Template for Kernel Execution * */
/* * Author: <NAME> * */
/* ********************************... |
/*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... |
/* postings.c implements a postings list as specified in postings.h
*
* There are two primary problems in generating postings. This postings module
* uses a (large) internal hashtable that seems to work pretty well for
* locating postings entries, so that's not hard. However, once you've found
* the correct pos... |
// (c) Copyright 2008-2009 <NAME>
// Portions (c) Copyright 2012 <NAME> & <NAME>
//
// 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, ... |
/**
* @file kernel/arch/x86_64/vbox.c
* @brief VirtualBox Guest Additions driver
* @package x86_64
*
* Implements the following features:
* - Absolute mouse cursor positioning
* - "Hardware" cursor sprites
* - Automatic display modesetting
* - "Seamless" mode rectangle device
* - Log device
*
* @copyright
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.