text stringlengths 3.12k 18.7k |
|---|
#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <omp.h>
#include "mmio.h"
/* Function Delclaration */
void coo2csc(
uint32_t * const row, /*!< CSC row start indices */
uint32_t * const col, /*!< CSC column indices */
uin... |
/*
* Unix SMB/Netbios implementation.
* Version 1.9.
* An implementation of MD4 designed for use in the SMB authentication protocol.
*
* Copyright (C) 1997-1998 <NAME>
* Copyright (C) 2005-2008 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
#pragma ident "$Id: pack.c,v 1.9 2015/12/04 22:18:12 dechavez Exp $"
/*======================================================================
*
* Pack and unpack various SEED things
*
*====================================================================*/
#include <math.h>
#include "liss.h"
#include "util.h"
BOOL... |
//
// record.c
// AvidyneR9DataLoader
//
// Created by <NAME> on 11/21/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "csv_record.h"
void flight_record_init(flight_record* const restrict record);
void system_record_init(system_record* const restrict record);
void engine_record_init(engine_record... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... |
/*
NoirVisor - Hardware-Accelerated Hypervisor solution
Copyright 2018-2021, <NAME>. All rights reserved.
This file defines compiler intrinsics.
This program is distributed in the hope that it will be useful, but
without any warranty (no matter implied warranty or merchantability
or fitness for a partic... |
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "common.h"
#include "bsp.h"
#include "token.h"
#include "archive.h"
#pragma warning(push, 0)
#include "tinydir.h"
#include "miniz.h"
#pragma warning(pop)
extern hash_table* exclude_table;
static char** dependency_list = NULL;
... |
///////////////////////////////////////////////////////////////////////////////
// Headers.
#include <stdint.h>
#include "system.h"
#include <stdio.h>
#include "sprites_rgb333.h"
///////////////////////////////////////////////////////////////////////////////
// HW stuff.
#define WAIT_UNITL_0(x) while(x != 0){}
#d... |
/*
* linux/fs/sysv/inode.c
*
* minix/inode.c
* Copyright (C) 1991, 1992 <NAME>
*
* xenix/inode.c
* Copyright (C) 1992 <NAME>
*
* coh/inode.c
* Copyright (C) 1993 <NAME>, <NAME>
*
* sysv/inode.c
* Copyright (C) 1993 <NAME>
*
* sysv/inode.c
* Copyright (C) 1993 <NAME>
* Copyright (C) 199... |
/*-
* Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2012, by <NAME>. All rights reserved.
* Copyright (c) 2008-2012, by <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
/* F B C O L O R . C
* BRL-CAD
*
* Copyright (c) 1986-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... |
/************************************************************************/
/* Unit Convertors - The following routines are convenience functions */
/* for accepting character-string values with optional unit specifiers */
/* and converting them numerically to consistent MKS units. */
/* MKS, or Meters-Kilogramm-Sec... |
#include "nas_r.h"
static double R23, R46, T23, T46;
/*-----------------------------------------------------------------------------
|
| FUNCTION RANDLC (X, A)
|
| This routine returns a uniform pseudorandom double precision number in the
| range (0, 1) by using the linear congruential generator
|
| x_{k+1}... |
/*
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* Adapted for inclusion into OpenLDAP by <NAME> */
/*---
* Copyright (C) 1999, 2000 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
*... |
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2021, Intel Corporation */
/*
* mtt.c -- a multithreaded tests' runner
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <librpma.h>
... |
/* $Header: HVCAENx527/libHVCAENx527App/src/HVCAENx527.h 1.13.1.2 2014/04/29 23:04:40CST <NAME> (igarasr) Exp $
*/
#include <stdio.h>
#include <string.h>
#include <dbDefs.h>
#include <dbAccess.h>
#include <recSup.h>
#include <devSup.h>
#include <callback.h>
#include <sys/time.h>
#include <epicsVersion.h>
#if (EPICS_... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2011 <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 Software without restriction, including w... |
/*
* Copyright 2016 <NAME> <<EMAIL>>
*
* This file is part of HackRF.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* T... |
#define RPCT_REPEAT_MAX 128
#define RPCT_REPEAT_1(EXPR) EXPR(1)
#define RPCT_REPEAT_2(EXPR) RPCT_REPEAT_1(EXPR) EXPR(2)
#define RPCT_REPEAT_3(EXPR) RPCT_REPEAT_2(EXPR) EXPR(3)
#define RPCT_REPEAT_4(EXPR) RPCT_REPEAT_3(EXPR) EXPR(4)
#define RPCT_REPEAT_5(EXPR) RPCT_REPEAT_4(EXPR) EXPR(5)
#define RPCT_REPEAT_6(EXPR) RPCT... |
#include <sys/types.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_types.h>
#include <net/if_dl.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <si... |
#include <xcopy.h>
#include <tcpcopy.h>
#if (TCPCOPY_OFFLINE)
static bool read_pcap_over= false;
static pcap_t *pcap = NULL;
static struct timeval first_pack_time, last_pack_time, base_time, cur_time;
#endif
static int tc_process_raw_socket_packet(tc_event_t *rev);
static bool process_packet(bool ba... |
#include <stdio.h>
#include "SDL.h"
#include "SDL_image.h"
#include "KW_gui.h"
#include "KW_frame.h"
#include "KW_label.h"
#include "KW_renderdriver_sdl2.h"
#define rightOf(a) (a).x + (a).w
#define bottomOf(a) (a).y + (a).h
int min3(int a, int b, int c) {
return (a < b) ? (a < c ? a : c) : (b < c ? b : c);
}
int m... |
/*
* qsim.c
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
* Copyright (C) 2016-2017 - <NAME>
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foun... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <err.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "common.h"
#include "debug.h"
#include "registers.h"
#include "io.h"
#include "dps.h"
#include "gci.h"
#include "monitor.h"
gci_hub_info *gci_hub;
gci_h... |
/*
* Copyright (c) 2016 Rockchip, Inc.
* Authors: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <libfdt.h>
#include <malloc.h>
#include <usb.h>
#include <watchdog.h>
#include <linux/errno.h>
#include <linux/compat.h>
#include <linux/usb/d... |
/*
* 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
*/
/*... |
/**
* hpgl-dxf
*
* Written and maintained by <NAME> [ pldaniels at pldaniels com ]
*
* Convert HPGL files into simple single-layer DXF files
*
* First version written: Monday July 02, 2007
*
* Original purpose of this program was to allow me to convert HPGL files
* generated by EaglePCB into DXF files that I... |
/*-
* Copyright 2003-2005 <NAME>
* Copyright 2012 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice... |
/*
* Copyright (c) 2012-2014, 2016-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above cop... |
#include "globals.h"
#include "asciitof.h"
#include "Motor.h"
#include "Encoder1Wire.h"
#include "main.h"
#include "Odometry.h"
#include <math.h>
const unsigned char imeLift = 0;
void compControlTask() {
int c = fgetc(stdin);
if (c == 'a') {
autonomous();
}
}
void odometryTask() {
odometryComputePose(&odomet... |
#pragma config(Sensor, I2C_1, FrontRight, sensorNone)
#pragma config(Sensor, I2C_2, BackRight, sensorNone)
#pragma config(Sensor, I2C_3, FrontLeft, sensorNone)
#pragma config(Sensor, I2C_4, BackLeft, sensorNone)
#pragma config(Motor, port1, CenterRightBase, tmotorVex393_HBridge, o... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* rm3100.c support PNI sensor RM3100
* 3d Magnetometers via SPI
*/
#include "rm3100.h"
#include <board.h>
#define DBG_ENABLE
#define DBG_LEVEL DGB_INFO //DBG_INFO
#define DBG_SECTION_NAME "rm3100"
#define DBG_COLOR
#include <rtdbg.h>
#define GEOMAG_DRDY ... |
/*
* (C) Copyright 2008 Semihalf
*
* (C) Copyright 2000-2004
* DENX Software Engineering
* <NAME>, <EMAIL>
*
* Updated-by: <NAME> <<EMAIL>>
* FIT image specific code abstracted from mkimage.c
* some functions added to address abstraction
*
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*/
... |
/*
* Inter-Client Communication Conventions Manual (ICCCM) hints
*
* NOTE: Since the ICCCM is so closely tied to window management, much
* of the standard is hardwired into "window.c".
*/
/*
* Copyright 2006 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of th... |
/* This is a really silly C program that I'm using as a TCP interface */
/* to gdbm for a really terrible program which I wrote, which happens to */
/* have sockets but no DB libraries, nor any real FFI. */
/* to compile on Linux: */
/* cc -lpthread -lgdbm -O2 -Wall -Wextra -std=c99 last_... |
/*
*
* ===================================
* HARP | Host ATM Research Platform
* ===================================
*
*
* This Host ATM Research Platform ("HARP") file (the "Software") is
* made available by Network Computing Services, Inc. ("NetworkCS")
* "AS IS". NetworkCS does not provide maintenance, i... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* CMUCS AFStools
* dumpscan - routines for scanning and manipulating AFS volume dumps
*
* Copyright (c) 1998, 2001 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
*... |
/*
* Copyright (c) 2017 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
/* ====================================================================
* Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libp2p/utils/linked_list.h"
#include "ipfs/repo/config/config.h"
#include "libp2p/os/utils.h"
#include "ipfs/repo/config/bootstrap_peers.h"
#include "ipfs/repo/config/swarm.h"
#include "libp2p/db/filestore.h"
#include "multiaddr/multiaddr.h"
/***
*... |
#include"threads.h"
#include<pthread.h>
int CurrentThread =-1; // keeps track of the TCB index of the current thread
int threadsCreated = 1;// a bool to see if main has been initallized
// should have given all helper functions a static context but couldnt get it to work
pthread_t pthread_self(void){return (pthread_t)... |
/*
* Copyright (c) 2005-2007 <NAME>, Inc. All rights reserved.
* Proprietary and Confidential Material.
*
*/
#include <stdio.h>
#include <ctype.h>
#include <termio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <time.h>
#include <signal.h>
#include <unistd.... |
/*
*
* Pin Connections:
* PE4 [pin 5] -> RS
* PE5 [pin 6] -> EN
* PD0 [pin 23] -> D4
* PD1 [pin 24] -> D5
* PD2 [pin 25] -> D6
* PD3 [pin 26] -> D7
*
* pin number in [] indicates
* energia pin reference!
*
*/
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "displ... |
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <device.h>
#include <drivers/uart.h>
#include <shell/shell.h>
#include <shell/shell_uart.h>
#include <stdbool.h>
#include <string.h>
#incl... |
#define _GNU_SOURCE
#include "status.h"
#include "commit.h"
#include "util.h"
#include "timer.h"
#define CHECKED (0x1 << 5)
#define mark_checked(x) (x->flags |= CHECKED)
#define is_checked(x) (x->flags & CHECKED)
struct status_options {
bool new;
bool modified;
bool old;
} status_opts;
//... |
/*-------------------------------------------------------------------------
*
* zmq.c
*
* Copyright (c) 2018, PipelineDB, Inc.
*
*-------------------------------------------------------------------------
*/
#include <dirent.h>
#include <stdio.h>
#include <zmq.h>
#include "postgres.h"
#include "miscadmin.h"
#i... |
/*
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* 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 notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
/* Print "message: last Win32 error" to stderr. */
void
oops(const wchar_t *message)
{
wchar_t *buf;
DWORD error;
buf = NULL;
error = GetLastError();
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM | FO... |
/**************************************************************************//**
* @file timer.c
* @version V1.00
* $Revision: 2 $
* $Date: 16/02/24 15:37 $
* @brief PN020 series TIMER driver source file
*
* @note
* Copyright (C) 2016 Shanghai Panchip Microelectronics Co., Ltd. All rights reserved.
***... |
#include <stdio.h>
#include <stdlib.h> /* rand */
#include <ctype.h> /* toupper */
#include <string.h> /* strlen */
#include <time.h> /* time function */
#include <conio.h> /* console */
#include <graph.h> /* color */
#include <i86.h> /* delay */
#include "msg.h"
#define BLACK 0
#define GREEN 2
#define PURPLE 5
#def... |
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#define NR_PARTITIONS 5
#define HIGH 3200
#define LENGHT 200
typedef struct _memoryData {
uint8_t nr_region;
uint32_t region;
uint8_t nr_sec;
uint8_t first;
} memoryData;
typedef enum {
MPU_32B = (uint8_t)0x04,
MPU_64B = (uint8_t)0x05,... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* 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 <stdlib.h>
#include <string.h>
#include <math.h>
typedef struct vp_tree{
int n, //total points of the tree
d, //dimension of the points
B, //max points per lef
*id, //id of every point in the tree
*left_cnt, //number of... |
/*!
LTC6804-2 Multicell Battery Monitor
http://www.linear.com/product/LTC6804-1
http://www.linear.com/product/LTC6804-1#demoboards
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following ... |
/* $NetBSD: db_variables.c,v 1.11 1997/02/04 00:33:32 cgd Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
... |
/* Copyright 2014-2015 IBM Corp.
*
* 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... |
/* vim: set filetype=c : */
/* vim: set noet tw=80 ts=8 sw=8 cinoptions=+4,(0,t0: */
/*
* Copyright 2014-2017, <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 reta... |
/*
* This file is where you should implement your linked list. It already
* contains skeletons of the functions you need to implement (along with
* documentation for each function). Feel free to implement any additional
* functions you might need. Also, don't forget to include your name and
* @oregonstate.edu e... |
/**
* Device module for Versalogic VCM-DAS-1 IO Module for the PC/104.
*/
#include <argp.h>
#include <errno.h>
#include <netdb.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <sys/io.h>
#include <sys/socket.h>
#i... |
/*H*
*
* FILENAME: board.c
* DESCRIPTION: Data structures and functions for storing and manipuling chess boards
* AUTHORS: <NAME>
* <NAME>
* UPDATED: 03.03.2019
*
*H*/
#include "board.h"
/**
*
* This function creates a board, returning a pointer
* to a newly initialized Board struct.
*
... |
/*
* Copyright (c) 2021 <NAME> (www.floorsense.nz)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* lis... |
/*
* Copyright (c) 2017 Baidu, Inc. All Rights Reserved.
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apac... |
/*-
* Copyright (c) 2014 Fastly, Inc.
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* 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
*... |
/*
*
* Copyright (c) 2012-2018 <NAME>, 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.... |
#include <string.h>
#include <time.h>
#ifdef USE_OPENCL
#include "clhelper.h"
#endif
#ifdef USE_CUDA
#include "cudahelper.h"
#endif
#include "mnist.h"
#include "net.h"
#include "layers.h"
#include "log.h"
#include "inception.h"
static idx_t *images = NULL;
static idx_t *labels = NULL;
static void feed_data(net_t *n)
... |
/* This file is part of the bladeRF project:
* http://www.github.com/nuand/bladeRF
*
* Copyright (c) 2015 Nuand LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrict... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and... |
/* ARM EABI compliant unwinding routines
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
Contributed by <NAME>
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; either version 2, o... |
// FILENAME : longest.c
// DESCRIPTION : exerc21-1 / pl1-ntua
// AUTHOR : <NAME> & <NAME>
// COMPILE COMMAND : gcc -std=c99 -Wall -Werror -O3 -o longest longest.c
// EXECUTE COMMAND : ./longest input.file
// EXTERNAL USED CODE : https://www.geeksforgeeks.org/longest-subarray-having-average-greater-than-or-equal-to-x-se... |
/*
death-star.c
sudo v1.8.0-1.8.3p1 (sudo_debug) format string root exploit + glibc FORTIFY_SOURCE bypass
by aeon - http://infosecabsurdity.wordpress.com/
This PoC exploits:
- CVE-2012-0864 - FORTIFY_SOURCE format string protection bypass via "nargs" integer overflow
- CVE-2012-0809 - sudo v1.8.0-1.8.3p1 "sudo_d... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "scope.h"
#include "register.h"
#include "gencode.h"
#include "y.tab.h"
extern FILE* outfile;
extern scope_t* top;
extern reg_stack rst;
static void out_id(char * fmt, tree_t* t, char * option){
int i;
char output[16] = {0};
if (t == NUL... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwa... |
/*
* Copyright 2015 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 applica... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2020 INRIA.
*
* 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
*
*... |
#include "common.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include "su.h"
#include "utils.h"
#define BUFFSIZE 4096
#define DDEXE "/system/bin/ddexe"
#define D... |
/* ----------------------------------------------------------------------------
* Microchip Technology AT91Bootstrap project
* ----------------------------------------------------------------------------
* Copyright (c) 2018, Microchip Technology Inc. and its subsidiaries
*
* All rights reserved.
*
* Red... |
/*
* idevicenotificationproxy.c
* Simple client for the notification_proxy service
*
* Copyright (c) 2009-2015 <NAME> All Rights Reserved.
*
* 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 Fo... |
/*******************************************************************************
*
* main.c
* User Experience Code for the MSP-EXP430FR5739
*
*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modificatio... |
/*
* Copyright (C) 2010-2015 Alibaba Group Holding Limited
*/
#include <ngx_http_connection_pool.h>
static void ngx_http_connection_pool_close(ngx_connection_t *c);
static void ngx_http_connection_pool_close_handler(ngx_event_t *ev);
static void ngx_http_connection_pool_dummy_handler(ngx_event_t *ev);
static ng... |
/* $OpenBSD: ebus_mainbus.c,v 1.9 2015/09/27 11:29:20 kettenis Exp $ */
/*
* Copyright (c) 2007 <NAME>
*
* 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 copi... |
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include "serial.h"
#define QUEUELIMIT 5
SERIAL *device;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static char encoding_table[] = {'A', 'B', 'C... |
/*
* I2C bridge driver for the Greybus "generic" I2C module.
*
* Copyright 2014 Google Inc.
* Copyright 2014 Linaro Ltd.
*
* Released under the GPLv2 only.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include "greybus.h"
#include "gbphy.h"
struct gb_i2... |
/* Copyright 2004,2007,2008,2010-2012 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distributio... |
/*******************************************************************************
*
* apc.c
* This file is part of fplib.
*
* SOLUTION OF THE LINEAR MIN-SUM ASSIGNMENT PROBLEM.
* HUNGARIAN METHOD. COMPLEXITY O(n^3).
*
* October 2008:
* - Original FORTRAN code translated in C LANGUAGE by <NAME>
* <N... |
/*
* Copyright (c) 2021 BayLibre SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#define NET_LOG_LEVEL CONFIG_NET_ETHERNET_BRIDGE_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(net_test, NET_LOG_LEVEL);
#include <zephyr/types.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <errno.... |
/******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
* gala-gopher licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mu... |
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <time.h>
/* Configurações do multiThread */
#define NUM_THREADS 4
#define MACROB_LI 1000
#define MACROB_COL 1000
typedef struct {
int liStart, liEnd, colStart, colEnd;
} macroBloco;
/* -- */
/* Configurações da matriz */
#define LI 10000
#define CO... |
/*
The MIT License (MIT)
Copyright (c) 2015-? suhetao
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, pub... |
/*
* convolve.c: Implements <NAME>'s algorithm for convolutions of
* B-spline defined functions with other B-spline defined functions.
* The algorithm can be found in "On convolutions of B-splines", Journal
* of Computational and Applied Mathematics, 55(1):1-29, 1994.
*/
#include <stdlib.h>
#include <float.... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief
* Demonstrate SPI half-duplex mode.
* SPI0 will be configured as Master mode and SPI1 will be configured as Slave mode.
* Both SPI0 and SPI1 will be configure... |
#include <assert.h>
#include <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <gsl/gsl_math.h>
#include "imshift.h"
#include "conv1.h"
void showMatrix(double * I, size_t M, size_t N)
{
for(size_t kk = 0; kk<N; kk++) {
for(s... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN 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... |
/*
Copyright (c) 2018-2019, Seznam.cz, a.s.
Author: <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 copyri... |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2019 Marvell International Ltd.
*/
#include "otx2_ethdev.h"
int
otx2_nix_rxchan_bpid_cfg(struct rte_eth_dev *eth_dev, bool enb)
{
struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);
struct otx2_fc_info *fc = &dev->fc_info;
struct otx2_mbox *mbox = dev->m... |
/* ###
* IP: GHIDRA
*
* 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 writin... |
/*++
Module Name:
MCALOG.C
Abstract:
Sample Application for logging errors for Machine Check Architecture
Author:
<NAME> (10/12/98)
Intel Corporation
Revision History:
--*/
#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <winbase... |
/*-
* Copyright (c) 1994-1997 <NAME> (<EMAIL>)
* Copyright (c) LAN Media Corporation 1998, 1999.
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.