blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
721
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
5
91
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
321 values
visit_date
timestamp[ns]date
2016-08-12 09:31:09
2023-09-06 10:45:07
revision_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
committer_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
github_id
int64
426
681M
star_events_count
int64
101
243k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[ns]date
2012-06-28 18:51:49
2023-09-14 21:59:16
gha_created_at
timestamp[ns]date
2008-02-11 22:55:26
2023-08-10 11:14:58
gha_language
stringclasses
147 values
src_encoding
stringclasses
26 values
language
stringclasses
2 values
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10.2M
extension
stringclasses
115 values
filename
stringlengths
3
113
content
stringlengths
6
10.2M
f2a599bddd651fff70396cf7f76f9a005fb47019
fb47ab6337a71029dee71933e449cf7f6805fc0f
/external/platform/stellaris/ti-driverlib/inc/hw_watchdog.h
d9390e124083257fda8d021170c8e85889d7f876
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
littlekernel/lk
7e7ba50b87b1f2e0b6e2f052c59249825c91975b
30dc320054f70910e1c1ee40a6948ee99672acec
refs/heads/master
2023-09-02T00:47:52.203963
2023-06-21T22:42:35
2023-06-21T22:42:35
3,058,456
3,077
618
MIT
2023-08-30T09:41:31
2011-12-27T19:19:36
C
UTF-8
C
false
false
8,676
h
hw_watchdog.h
//***************************************************************************** // // hw_watchdog.h - Macros used when accessing the Watchdog Timer hardware. // // Copyright (c) 2005-2012 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the // distribution. // // Neither the name of Texas Instruments Incorporated nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // This is part of revision 9453 of the Stellaris Firmware Development Package. // //***************************************************************************** #ifndef __HW_WATCHDOG_H__ #define __HW_WATCHDOG_H__ //***************************************************************************** // // The following are defines for the Watchdog Timer register offsets. // //***************************************************************************** #define WDT_O_LOAD 0x00000000 // Watchdog Load #define WDT_O_VALUE 0x00000004 // Watchdog Value #define WDT_O_CTL 0x00000008 // Watchdog Control #define WDT_O_ICR 0x0000000C // Watchdog Interrupt Clear #define WDT_O_RIS 0x00000010 // Watchdog Raw Interrupt Status #define WDT_O_MIS 0x00000014 // Watchdog Masked Interrupt Status #define WDT_O_TEST 0x00000418 // Watchdog Test #define WDT_O_LOCK 0x00000C00 // Watchdog Lock //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_LOAD register. // //***************************************************************************** #define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value #define WDT_LOAD_S 0 //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_VALUE register. // //***************************************************************************** #define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value #define WDT_VALUE_S 0 //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_CTL register. // //***************************************************************************** #define WDT_CTL_WRC 0x80000000 // Write Complete #define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type #define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable #define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_ICR register. // //***************************************************************************** #define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear #define WDT_ICR_S 0 //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_RIS register. // //***************************************************************************** #define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_MIS register. // //***************************************************************************** #define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_TEST register. // //***************************************************************************** #define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable //***************************************************************************** // // The following are defines for the bit fields in the WDT_O_LOCK register. // //***************************************************************************** #define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock #define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked #define WDT_LOCK_LOCKED 0x00000001 // Locked #define WDT_LOCK_UNLOCK 0x1ACCE551 // Unlocks the watchdog timer //***************************************************************************** // // The following are defines for the bit fields in the WDT_ISR, WDT_RIS, and // WDT_MIS registers. // //***************************************************************************** #define WDT_INT_TIMEOUT 0x00000001 // Watchdog timer expired //***************************************************************************** // // The following definitions are deprecated. // //***************************************************************************** #ifndef DEPRECATED //***************************************************************************** // // The following are deprecated defines for the Watchdog Timer register // offsets. // //***************************************************************************** #define WDT_O_PeriphID4 0x00000FD0 #define WDT_O_PeriphID5 0x00000FD4 #define WDT_O_PeriphID6 0x00000FD8 #define WDT_O_PeriphID7 0x00000FDC #define WDT_O_PeriphID0 0x00000FE0 #define WDT_O_PeriphID1 0x00000FE4 #define WDT_O_PeriphID2 0x00000FE8 #define WDT_O_PeriphID3 0x00000FEC #define WDT_O_PCellID0 0x00000FF0 #define WDT_O_PCellID1 0x00000FF4 #define WDT_O_PCellID2 0x00000FF8 #define WDT_O_PCellID3 0x00000FFC //***************************************************************************** // // The following are deprecated defines for the bit fields in the WDT_O_TEST // register. // //***************************************************************************** #define WDT_TEST_STALL_EN 0x00000100 // Watchdog stall enable //***************************************************************************** // // The following are deprecated defines for the reset values for the WDT // registers. // //***************************************************************************** #define WDT_RV_VALUE 0xFFFFFFFF // Current value register #define WDT_RV_LOAD 0xFFFFFFFF // Load register #define WDT_RV_PCellID1 0x000000F0 #define WDT_RV_PCellID3 0x000000B1 #define WDT_RV_PeriphID1 0x00000018 #define WDT_RV_PeriphID2 0x00000018 #define WDT_RV_PCellID0 0x0000000D #define WDT_RV_PCellID2 0x00000005 #define WDT_RV_PeriphID0 0x00000005 #define WDT_RV_PeriphID3 0x00000001 #define WDT_RV_PeriphID5 0x00000000 #define WDT_RV_RIS 0x00000000 // Raw interrupt status register #define WDT_RV_CTL 0x00000000 // Control register #define WDT_RV_PeriphID4 0x00000000 #define WDT_RV_PeriphID6 0x00000000 #define WDT_RV_PeriphID7 0x00000000 #define WDT_RV_LOCK 0x00000000 // Lock register #define WDT_RV_MIS 0x00000000 // Masked interrupt status register #endif #endif // __HW_WATCHDOG_H__
0d356c43e7cb2ccee67ffb37b534cea9a4f395dc
41c7328eadeab5ed7c0584b7db51996a05dd9f2d
/F1:F103/BMP280/i2c.h
7f67218ccd42d8503ef2be84c1e28245710e2241
[]
no_license
eddyem/stm32samples
1c00ccb8593ea270cae536c85f178a522f704ed5
dce73d358b1fca3e7fa397f5c6d0d5c1cb28aba0
refs/heads/master
2023-07-28T11:13:10.361942
2023-07-24T20:04:22
2023-07-24T20:04:22
32,647,425
152
42
null
null
null
null
UTF-8
C
false
false
1,319
h
i2c.h
/* * This file is part of the BMP280 project. * Copyright 2021 Edward V. Emelianov <edward.emelianoff@gmail.com>. * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #pragma once #ifndef I2C_H__ #include <stm32f1.h> typedef enum{ I2C_OK = 0, I2C_LINEBUSY, I2C_TMOUT, I2C_NOADDR, I2C_NACK, I2C_HWPROBLEM, } i2c_status; void i2c_setup(); void i2c_set_addr7(uint8_t addr); i2c_status i2c_7bit_send_onebyte(uint8_t data, uint8_t stop); i2c_status i2c_7bit_send(const uint8_t *data, int datalen); i2c_status i2c_7bit_receive_onebyte(uint8_t *data, uint8_t stop); i2c_status i2c_7bit_receive_twobytes(uint8_t *data); i2c_status i2c_7bit_receive(uint8_t *data, uint16_t nbytes); #define I2C_H__ #endif // I2C_H__
1c05beeb905fc7ab76b5241bab54ac90d16a74f3
b8906afecca06f48f2cd289a9997f670b26c4721
/platform/shared/ruby/id.h
c3ab9e4421e0a6c1d14827bd9bef560a6a42ff8c
[ "MIT", "GPL-2.0-only" ]
permissive
rhomobile/rhodes
51bd88921c51bd618948f9a557de17fc297e7cc2
fc8409c9c281684a49d7ff6805ddc565de09a6d5
refs/heads/master
2023-09-01T17:45:36.149868
2023-08-31T20:56:06
2023-08-31T20:56:06
54,084
504
155
MIT
2023-09-12T00:14:29
2008-09-18T21:55:16
C
UTF-8
C
false
false
5,399
h
id.h
/* DO NOT EDIT THIS FILE DIRECTLY */ /********************************************************************** id.h - $Author$ created at: Sun Oct 19 21:12:51 2008 Copyright (C) 2007 Koichi Sasada **********************************************************************/ #ifndef RUBY_ID_H #define RUBY_ID_H enum ruby_id_types { RUBY_ID_STATIC_SYM = 0x01, RUBY_ID_LOCAL = 0x00, RUBY_ID_INSTANCE = (0x01<<1), RUBY_ID_GLOBAL = (0x03<<1), RUBY_ID_ATTRSET = (0x04<<1), RUBY_ID_CONST = (0x05<<1), RUBY_ID_CLASS = (0x06<<1), RUBY_ID_JUNK = (0x07<<1), RUBY_ID_INTERNAL = RUBY_ID_JUNK, RUBY_ID_SCOPE_SHIFT = 4, RUBY_ID_SCOPE_MASK = (~(~0U<<(RUBY_ID_SCOPE_SHIFT-1))<<1) }; #define ID_STATIC_SYM RUBY_ID_STATIC_SYM #define ID_SCOPE_SHIFT RUBY_ID_SCOPE_SHIFT #define ID_SCOPE_MASK RUBY_ID_SCOPE_MASK #define ID_LOCAL RUBY_ID_LOCAL #define ID_INSTANCE RUBY_ID_INSTANCE #define ID_GLOBAL RUBY_ID_GLOBAL #define ID_ATTRSET RUBY_ID_ATTRSET #define ID_CONST RUBY_ID_CONST #define ID_CLASS RUBY_ID_CLASS #define ID_JUNK RUBY_ID_JUNK #define ID_INTERNAL RUBY_ID_INTERNAL #define symIFUNC ID2SYM(idIFUNC) #define symCFUNC ID2SYM(idCFUNC) #define RUBY_TOKEN_DOT2 128 #define RUBY_TOKEN_DOT3 129 #define RUBY_TOKEN_UPLUS 130 #define RUBY_TOKEN_UMINUS 131 #define RUBY_TOKEN_POW 132 #define RUBY_TOKEN_DSTAR 133 #define RUBY_TOKEN_CMP 134 #define RUBY_TOKEN_LSHFT 135 #define RUBY_TOKEN_RSHFT 136 #define RUBY_TOKEN_LEQ 137 #define RUBY_TOKEN_GEQ 138 #define RUBY_TOKEN_EQ 139 #define RUBY_TOKEN_EQQ 140 #define RUBY_TOKEN_NEQ 141 #define RUBY_TOKEN_MATCH 142 #define RUBY_TOKEN_NMATCH 143 #define RUBY_TOKEN_AREF 144 #define RUBY_TOKEN_ASET 145 #define RUBY_TOKEN_COLON2 146 #define RUBY_TOKEN_COLON3 147 #define RUBY_TOKEN_ANDOP 148 #define RUBY_TOKEN_OROP 149 #define RUBY_TOKEN_ANDDOT 150 #define RUBY_TOKEN(t) RUBY_TOKEN_##t enum ruby_method_ids { idDot2 = RUBY_TOKEN(DOT2), idDot3 = RUBY_TOKEN(DOT3), idUPlus = RUBY_TOKEN(UPLUS), idUMinus = RUBY_TOKEN(UMINUS), idPow = RUBY_TOKEN(POW), idCmp = RUBY_TOKEN(CMP), idPLUS = '+', idMINUS = '-', idMULT = '*', idDIV = '/', idMOD = '%', idLTLT = RUBY_TOKEN(LSHFT), idGTGT = RUBY_TOKEN(RSHFT), idLT = '<', idLE = RUBY_TOKEN(LEQ), idGT = '>', idGE = RUBY_TOKEN(GEQ), idEq = RUBY_TOKEN(EQ), idEqq = RUBY_TOKEN(EQQ), idNeq = RUBY_TOKEN(NEQ), idNot = '!', idBackquote = '`', idEqTilde = RUBY_TOKEN(MATCH), idNeqTilde = RUBY_TOKEN(NMATCH), idAREF = RUBY_TOKEN(AREF), idASET = RUBY_TOKEN(ASET), idCOLON2 = RUBY_TOKEN(COLON2), idANDOP = RUBY_TOKEN(ANDOP), idOROP = RUBY_TOKEN(OROP), idANDDOT = RUBY_TOKEN(ANDDOT), tPRESERVED_ID_BEGIN = 150, idNULL, idEmptyP, idEqlP, idRespond_to, idRespond_to_missing, idIFUNC, idCFUNC, id_core_set_method_alias, id_core_set_variable_alias, id_core_undef_method, id_core_define_method, id_core_define_singleton_method, id_core_set_postexe, id_core_hash_from_ary, id_core_hash_merge_ary, id_core_hash_merge_ptr, id_core_hash_merge_kwd, id_debug_created_info, tPRESERVED_ID_END, tFreeze, tInspect, tIntern, tObject_id, tConst_missing, tMethodMissing, tMethod_added, tSingleton_method_added, tMethod_removed, tSingleton_method_removed, tMethod_undefined, tSingleton_method_undefined, tLength, tSize, tGets, tSucc, tEach, tProc, tLambda, tSend, t__send__, t__attached__, tInitialize, tInitialize_copy, tInitialize_clone, tInitialize_dup, tTo_int, tTo_ary, tTo_str, tTo_sym, tTo_hash, tTo_proc, tTo_io, tTo_a, tTo_s, tTo_i, tBt, tBt_locations, tCall, tMesg, tException, tUScore, tNEXT_ID, #define TOKEN2LOCALID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL|ID_STATIC_SYM) TOKEN2LOCALID(Freeze), TOKEN2LOCALID(Inspect), TOKEN2LOCALID(Intern), TOKEN2LOCALID(Object_id), TOKEN2LOCALID(Const_missing), TOKEN2LOCALID(MethodMissing), TOKEN2LOCALID(Method_added), TOKEN2LOCALID(Singleton_method_added), TOKEN2LOCALID(Method_removed), TOKEN2LOCALID(Singleton_method_removed), TOKEN2LOCALID(Method_undefined), TOKEN2LOCALID(Singleton_method_undefined), TOKEN2LOCALID(Length), TOKEN2LOCALID(Size), TOKEN2LOCALID(Gets), TOKEN2LOCALID(Succ), TOKEN2LOCALID(Each), TOKEN2LOCALID(Proc), TOKEN2LOCALID(Lambda), TOKEN2LOCALID(Send), TOKEN2LOCALID(__send__), TOKEN2LOCALID(__attached__), TOKEN2LOCALID(Initialize), TOKEN2LOCALID(Initialize_copy), TOKEN2LOCALID(Initialize_clone), TOKEN2LOCALID(Initialize_dup), TOKEN2LOCALID(To_int), TOKEN2LOCALID(To_ary), TOKEN2LOCALID(To_str), TOKEN2LOCALID(To_sym), TOKEN2LOCALID(To_hash), TOKEN2LOCALID(To_proc), TOKEN2LOCALID(To_io), TOKEN2LOCALID(To_a), TOKEN2LOCALID(To_s), TOKEN2LOCALID(To_i), TOKEN2LOCALID(Bt), TOKEN2LOCALID(Bt_locations), TOKEN2LOCALID(Call), TOKEN2LOCALID(Mesg), TOKEN2LOCALID(Exception), TOKEN2LOCALID(UScore), tLAST_OP_ID = tPRESERVED_ID_END-1, idLAST_OP_ID = tLAST_OP_ID >> ID_SCOPE_SHIFT }; #endif /* RUBY_ID_H */
fbd020da2420549d7b55aa504854a196b507e0d8
ea401c3e792a50364fe11f7cea0f35f99e8f4bde
/hackathon/zhi/NeuronStudio_zhi/ext/lock.c
237aadf61694eacde08015948f1cc0c76cd56e7e
[ "MIT" ]
permissive
Vaa3D/vaa3d_tools
edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9
e6974d5223ae70474efaa85e1253f5df1814fae8
refs/heads/master
2023-08-03T06:12:01.013752
2023-08-02T07:26:01
2023-08-02T07:26:01
50,527,925
107
86
MIT
2023-05-22T23:43:48
2016-01-27T18:19:17
C++
UTF-8
C
false
false
5,001
c
lock.c
#include "lock.h" #define SECONDSINDAY 86400 void _hidedigits(nschar* string); void _showdigits(nschar* string); #define _LOCK_FORMAT \ NS_MAKE_FMT( NS_FMT_FLAG_ZERO_FILL "10", NS_FMT_TYPE_UINT )\ NS_MAKE_FMT( NS_FMT_FLAG_ZERO_FILL "10", NS_FMT_TYPE_UINT )\ NS_MAKE_FMT( NS_FMT_FLAG_ZERO_FILL "10", NS_FMT_TYPE_UINT )\ NS_MAKE_FMT( NS_FMT_FLAG_ZERO_FILL "10", NS_FMT_TYPE_UINT ) // compute number of days left for license nsint GetLockDays(nschar* string) { nsint daysleft; nschar *p,startstring[11],currentstring[11],lengthstring[11],sumstring[11]; nsuint32 start,current,length,sum; nsuint32 t; nssize len; //make sure that string has 40 characters len = ns_ascii_strlen(string); if(len!=40) return 0; //verify that all characters are uppercase p = string; while(*p != '\0') { if(!ns_ascii_isupper(*p)) return 0; p++; } //copy the substrings ns_ascii_strncpy(startstring,string,10); startstring[10] = '\0'; ns_ascii_strncpy(currentstring,string+10,10); currentstring[10] = '\0'; ns_ascii_strncpy(lengthstring,string+20,10); lengthstring[10] = '\0'; ns_ascii_strncpy(sumstring,string+30,10); sumstring[10] = '\0'; //show digits in strings _showdigits(startstring); _showdigits(currentstring); _showdigits(lengthstring); _showdigits(sumstring); //scan the integers out of strings _ns_sscan(startstring,"%u",&start); _ns_sscan(currentstring,"%u",&current); _ns_sscan(lengthstring,"%u",&length); _ns_sscan(sumstring,"%u",&sum); //verify sum if(sum!=(start+current+length)) return 0; //verify that clock has not been reset t = ( nsuint32 )_ns_time(); if(t<current) return 0; // report days left in license daysleft = (start/SECONDSINDAY)+(length/SECONDSINDAY)-(t/SECONDSINDAY); if(daysleft<0) daysleft = 0; return daysleft; } // validates and updates a lock based on time and DAYSTOEND // return 1 on success or 0 if invalid or expired lock nsint UpdateLock(nschar* string) { nschar *p,startstring[11],currentstring[11],lengthstring[11],sumstring[11]; nsuint32 start,current,length,sum; nsuint32 t; nssize len; //make sure that string has 40 characters len = ns_ascii_strlen(string); if(len!=40) return 0; //verify that all characters are uppercase p = string; while(*p != '\0') { if(!ns_ascii_isupper(*p)) return 0; p++; } //copy the substrings ns_ascii_strncpy(startstring,string,10); startstring[10] = '\0'; ns_ascii_strncpy(currentstring,string+10,10); currentstring[10] = '\0'; ns_ascii_strncpy(lengthstring,string+20,10); lengthstring[10] = '\0'; ns_ascii_strncpy(sumstring,string+30,10); sumstring[10] = '\0'; //show digits in strings _showdigits(startstring); _showdigits(currentstring); _showdigits(lengthstring); _showdigits(sumstring); //scan the integers out of strings _ns_sscan(startstring,"%u",&start); _ns_sscan(currentstring,"%u",&current); _ns_sscan(lengthstring,"%u",&length); _ns_sscan(sumstring,"%u",&sum); //verify sum if(sum!=(start+current+length)) return 0; //verify that clock has not been reset t = ( nsuint32 )_ns_time(); if(t<current) return 0; //verify that current time is within license term if(t>(start+length)) return 0; // update lock and return ns_sprint(string,_LOCK_FORMAT,start,t,length,start+t+length); _hidedigits(string); return 1; } void _hidedigits(nschar* string) { nschar* p; nsuint16 r; static nsint ____lock_init=0; // seed random number on first pass if(!____lock_init) { ns_srand( ( nsuint32 )_ns_time() ); ____lock_init = 1; } p = string; while(*p != '\0') { if(*p<'6') { r = ns_rand()%3; switch(r) { case 0: *p = *p + 'A'-'0'; break; case 1: *p = *p + 'K'-'0'; break; case 2: *p = *p + 'Q'-'0'; break; } } else { r = ns_rand()%2; switch(r) { case 0: *p = *p + 'A'-'0'; break; case 1: *p = *p + 'Q'-'0'; break; } } p++; } } void _showdigits(nschar* string) { nschar* p; p = string; while(*p != '\0') { if(*p<'K') *p = *p -'A'+'0'; else if (*p<'Q') *p = *p -'K'+'0'; else *p = *p -'Q'+'0'; p++; } }
476777791be476a3c2783f26b67ee4372974964e
17227ad12bc0826771ac6ac2b95dddd9517d0117
/Cores/DuckStation/Compatibility/GL/GLExtensions/NV_occlusion_query_samples.h
4bf1f5c3534887d387542c78e43660a34dea3500
[ "BSD-2-Clause" ]
permissive
Provenance-Emu/Provenance
e38f7c81e784455d4876f8a2ff999baca0135199
c6f49d7921ee27eb8c0c34ca95ec9dc7baf584c1
refs/heads/develop
2023-08-17T05:04:01.554294
2023-07-01T07:58:33
2023-07-01T07:58:33
12,416,862
2,367
364
NOASSERTION
2023-08-01T07:42:35
2013-08-27T20:34:36
C
UTF-8
C
false
false
2,778
h
NV_occlusion_query_samples.h
/* ** Copyright (c) 2013-2015 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ #include "Common/GL/GLExtensions/gl_common.h" #define GL_PIXEL_COUNTER_BITS_NV 0x8864 #define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 #define GL_PIXEL_COUNT_NV 0x8866 #define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 typedef void(APIENTRYP PFNDOLGENOCCLUSIONQUERIESNVPROC)(GLsizei n, GLuint* ids); typedef void(APIENTRYP PFNDOLDELETEOCCLUSIONQUERIESNVPROC)(GLsizei n, const GLuint* ids); typedef GLboolean(APIENTRYP PFNDOLISOCCLUSIONQUERYNVPROC)(GLuint id); typedef void(APIENTRYP PFNDOLBEGINOCCLUSIONQUERYNVPROC)(GLuint id); typedef void(APIENTRYP PFNDOLENDOCCLUSIONQUERYNVPROC)(void); typedef void(APIENTRYP PFNDOLGETOCCLUSIONQUERYIVNVPROC)(GLuint id, GLenum pname, GLint* params); typedef void(APIENTRYP PFNDOLGETOCCLUSIONQUERYUIVNVPROC)(GLuint id, GLenum pname, GLuint* params); extern PFNDOLGENOCCLUSIONQUERIESNVPROC dolGenOcclusionQueriesNV; extern PFNDOLDELETEOCCLUSIONQUERIESNVPROC dolDeleteOcclusionQueriesNV; extern PFNDOLISOCCLUSIONQUERYNVPROC dolIsOcclusionQueryNV; extern PFNDOLBEGINOCCLUSIONQUERYNVPROC dolBeginOcclusionQueryNV; extern PFNDOLENDOCCLUSIONQUERYNVPROC dolEndOcclusionQueryNV; extern PFNDOLGETOCCLUSIONQUERYIVNVPROC dolGetOcclusionQueryivNV; extern PFNDOLGETOCCLUSIONQUERYUIVNVPROC dolGetOcclusionQueryuivNV; #define glGenOcclusionQueriesNV dolGenOcclusionQueriesNV #define glDeleteOcclusionQueriesNV dolDeleteOcclusionQueriesNV #define glIsOcclusionQueryNV dolIsOcclusionQueryNV #define glBeginOcclusionQueryNV dolBeginOcclusionQueryNV #define glEndOcclusionQueryNV dolEndOcclusionQueryNV #define glGetOcclusionQueryivNV dolGetOcclusionQueryivNV #define glGetOcclusionQueryuivNV dolGetOcclusionQueryuivNV
79371f5a7c23b4a9d9b1842c5617d4ea89f446bb
36791363d8089a76a3cdf9eb4a7ab894d26f6100
/agent/native/ext/elastic_apm_assert_enabled.h
71b97e3ef1dd44ded775c74695773cbf4eb4f187
[ "Apache-2.0" ]
permissive
elastic/apm-agent-php
4a4a80fb51c278f19ab7875604fdd60c3f5e42a3
c8bd1ab87e23d3a58338c139c43aa368fef49a07
refs/heads/main
2023-09-01T20:52:11.241348
2023-08-30T17:37:39
2023-08-30T17:37:39
213,326,256
248
68
Apache-2.0
2023-09-14T06:17:36
2019-10-07T08:01:40
PHP
UTF-8
C
false
false
1,057
h
elastic_apm_assert_enabled.h
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ #pragma once #ifndef ELASTIC_APM_ASSERT_ENABLED_01 # if defined( ELASTIC_APM_ASSERT_ENABLED ) && ( ELASTIC_APM_ASSERT_ENABLED == 0 ) # define ELASTIC_APM_ASSERT_ENABLED_01 0 # else # define ELASTIC_APM_ASSERT_ENABLED_01 1 # endif #endif
e209cc456004158e2b98d6394599185466fcd695
6f247f5400c6a840b6dfcb12388116dc3bb7bd49
/nva/nvawatch.c
66ac9233698b67949f025a8611460159fa4cbc25
[ "MIT" ]
permissive
envytools/envytools
c062fbc3b8af90d3df9c6e0f57e9abbfc5690d01
e11d670a70ae0455261ead53cdd09c321974cc64
refs/heads/master
2023-08-26T23:44:47.131591
2022-04-30T21:15:56
2022-04-30T21:15:56
11,620,001
402
103
MIT
2022-12-07T01:35:18
2013-07-23T21:43:43
C
UTF-8
C
false
false
4,263
c
nvawatch.c
/* * Copyright (C) 2011 Marcelina Kościelnicka <mwk@0x04.net> * 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 to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "nva.h" #include <stdio.h> #include <unistd.h> #include <pthread.h> #include <sched.h> #include <inttypes.h> int cnum = 0; int32_t a; static const int SZ = 1024 * 1024; uint32_t queue[1024 * 1024]; uint32_t tqueue[1024 * 1024]; uint64_t tqueue64[1024 * 1024]; volatile int get = 0, put = 0; uint32_t mask = 0xffffffff; #define NV04_PTIMER_TIME_0 0x00009400 #define NV04_PTIMER_TIME_1 0x00009410 uint64_t get_time(unsigned int card) { uint64_t low; uint64_t high2 = nva_rd32(card, NV04_PTIMER_TIME_1); uint64_t high1; do { high1 = high2; low = nva_rd32(card, NV04_PTIMER_TIME_0); high2 = nva_rd32(card, NV04_PTIMER_TIME_1); } while (high1 != high2); return ((((uint64_t)high2) << 32) | (uint64_t)low); } void *watchfun(void *x) { uint32_t val = nva_rd32(cnum, a); queue[put] = val; put = (put + 1) % SZ; while (1) { uint32_t nval = nva_rd32(cnum, a); if ((nval & mask) != (val & mask)) { queue[put] = nval; put = (put + 1) % SZ; } val = nval; } } void *twatchfun(void *x) { uint32_t val = nva_rd32(cnum, a); queue[put] = val; tqueue[put] = nva_rd32(cnum, 0x9400); put = (put + 1) % SZ; while (1) { uint32_t nval = nva_rd32(cnum, a); if ((nval & mask) != (val & mask)) { queue[put] = nval; tqueue[put] = nva_rd32(cnum, 0x9400); put = (put + 1) % SZ; } val = nval; } } void *t64watchfun(void *x) { uint32_t val = nva_rd32(cnum, a); queue[put] = val; tqueue64[put] = get_time(cnum); put = (put + 1) % SZ; while (1) { uint32_t nval = nva_rd32(cnum, a); if ((nval & mask) != (val & mask)) { queue[put] = nval; tqueue64[put] = get_time(cnum); put = (put + 1) % SZ; } val = nval; } } int main(int argc, char **argv) { if (nva_init()) { fprintf (stderr, "PCI init failure!\n"); return 1; } int c; unsigned int wanttime = 0; while ((c = getopt (argc, argv, "tc:m:")) != -1) switch (c) { case 't': wanttime++; if (wanttime > 2) wanttime = 2; break; case 'c': sscanf(optarg, "%d", &cnum); break; case 'm': sscanf(optarg, "%x", &mask); break; } if (cnum >= nva_cardsnum) { if (nva_cardsnum) fprintf (stderr, "No such card.\n"); else fprintf (stderr, "No cards found.\n"); return 1; } if (optind >= argc) { fprintf (stderr, "No address specified.\n"); return 1; } sscanf (argv[optind], "%x", &a); pthread_t thr; if (wanttime == 0) pthread_create(&thr, 0, watchfun, 0); else if (wanttime == 1) pthread_create(&thr, 0, twatchfun, 0); else pthread_create(&thr, 0, t64watchfun, 0); uint32_t ptime = 0; uint64_t ptime64 = 0; while (1) { while (get == put) sched_yield(); if (wanttime == 0) printf("%08x\n", queue[get]); else if (wanttime == 1) { printf("%08x[+%d]: %08x\n", tqueue[get], tqueue[get]-ptime, queue[get]); ptime = tqueue[get]; } else { printf("%016"PRIu64"[+%"PRIu64"]: %08x\n", tqueue64[get], tqueue64[get]-ptime64, queue[get]); ptime64 = tqueue64[get]; } get = (get + 1) % SZ; } }
9a2b62c13908cba753cbd81fae5a7509c6aa32cc
42ea124983b717e3f6a8acfaf16bb6f455e23d12
/src/lang/python/py/emitcpy.c
bcf8a22c3ab4a8f86c97dcd2cdf8359f3cfcb06c
[ "BSD-2-Clause", "BSD-3-Clause", "MIT" ]
permissive
f32c/f32c
4a3f026c6a3e30089976c523861bf46c047bed1b
115c2d582296c8af6e9fc24e2355e5f31ff2f3b6
refs/heads/master
2023-09-01T19:32:24.288992
2023-08-17T19:32:17
2023-08-17T19:32:17
34,478,922
399
140
BSD-2-Clause
2023-04-28T17:13:20
2015-04-23T20:09:23
VHDL
UTF-8
C
false
false
28,508
c
emitcpy.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * 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, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "mpconfig.h" #include "misc.h" #include "qstr.h" #include "lexer.h" #include "parse.h" #include "obj.h" #include "emitglue.h" #include "scope.h" #include "runtime0.h" #include "emit.h" // wrapper around everything in this file #if MICROPY_EMIT_CPYTHON struct _emit_t { int pass; int bytecode_offset; int stack_size; bool last_emit_was_return_value; scope_t *scope; mp_uint_t max_num_labels; mp_uint_t *label_offsets; }; emit_t *emit_cpython_new(mp_uint_t max_num_labels) { emit_t *emit = m_new(emit_t, 1); emit->max_num_labels = max_num_labels; emit->label_offsets = m_new(mp_uint_t, max_num_labels); return emit; } STATIC void emit_cpy_set_native_type(emit_t *emit, mp_uint_t op, mp_uint_t arg1, qstr arg2) { } STATIC void emit_cpy_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) { emit->pass = pass; emit->bytecode_offset = 0; emit->stack_size = 0; emit->last_emit_was_return_value = false; emit->scope = scope; if (pass < MP_PASS_EMIT) { memset(emit->label_offsets, -1, emit->max_num_labels * sizeof(mp_uint_t)); } } STATIC void emit_cpy_end_pass(emit_t *emit) { // check stack is back to zero size if (emit->stack_size != 0) { printf("ERROR: stack size not back to zero; got %d\n", emit->stack_size); } } STATIC bool emit_cpy_last_emit_was_return_value(emit_t *emit) { return emit->last_emit_was_return_value; } STATIC void emit_cpy_adjust_stack_size(emit_t *emit, mp_int_t delta) { emit->stack_size += delta; } STATIC void emit_cpy_set_source_line(emit_t *emit, mp_uint_t source_line) { } STATIC void emit_cpy_load_id(emit_t *emit, qstr qst) { emit_common_load_id(emit, &emit_cpython_method_table, emit->scope, qst); } STATIC void emit_cpy_store_id(emit_t *emit, qstr qst) { emit_common_store_id(emit, &emit_cpython_method_table, emit->scope, qst); } STATIC void emit_cpy_delete_id(emit_t *emit, qstr qst) { emit_common_delete_id(emit, &emit_cpython_method_table, emit->scope, qst); } // TODO: module-polymorphic function (read: name clash if made global) static void emit_pre(emit_t *emit, int stack_size_delta, int bytecode_size) { emit->stack_size += stack_size_delta; if (emit->stack_size > emit->scope->stack_size) { emit->scope->stack_size = emit->stack_size; } emit->last_emit_was_return_value = false; if (emit->pass == MP_PASS_EMIT && bytecode_size > 0) { if (emit->bytecode_offset >= 1000) { printf("%d ", emit->bytecode_offset); } else { printf("% 4d ", emit->bytecode_offset); } } emit->bytecode_offset += bytecode_size; } STATIC void emit_cpy_label_assign(emit_t *emit, mp_uint_t l) { emit_pre(emit, 0, 0); assert(l < emit->max_num_labels); if (emit->pass < MP_PASS_EMIT) { // assign label offset assert(emit->label_offsets[l] == -1); emit->label_offsets[l] = emit->bytecode_offset; } else { // ensure label offset has not changed from MP_PASS_CODE_SIZE to MP_PASS_EMIT assert(emit->label_offsets[l] == emit->bytecode_offset); //printf("l%d: (at %d)\n", l, emit->bytecode_offset); } } STATIC void emit_cpy_import_name(emit_t *emit, qstr qst) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("IMPORT_NAME %s\n", qstr_str(qst)); } } STATIC void emit_cpy_import_from(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("IMPORT_FROM %s\n", qstr_str(qst)); } } STATIC void emit_cpy_import_star(emit_t *emit) { emit_pre(emit, -1, 1); if (emit->pass == MP_PASS_EMIT) { printf("IMPORT_STAR\n"); } } STATIC void emit_cpy_load_const_tok(emit_t *emit, mp_token_kind_t tok) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST "); switch (tok) { case MP_TOKEN_KW_FALSE: printf("False"); break; case MP_TOKEN_KW_NONE: printf("None"); break; case MP_TOKEN_KW_TRUE: printf("True"); break; default: printf("?=%d\n", tok); return; assert(0); } printf("\n"); } } STATIC void emit_cpy_load_const_small_int(emit_t *emit, mp_int_t arg) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST " INT_FMT "\n", arg); } } STATIC void emit_cpy_load_const_int(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST %s\n", qstr_str(qst)); } } STATIC void emit_cpy_load_const_dec(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST %s\n", qstr_str(qst)); } } STATIC void print_quoted_str(qstr qst, bool bytes) { const char *str = qstr_str(qst); int len = strlen(str); bool has_single_quote = false; bool has_double_quote = false; for (int i = 0; i < len; i++) { if (str[i] == '\'') { has_single_quote = true; } else if (str[i] == '"') { has_double_quote = true; } } if (bytes) { printf("b"); } int quote_char = '\''; if (has_single_quote && !has_double_quote) { quote_char = '"'; } printf("%c", quote_char); for (const char *s = str, *top = str + len; s < top; s++) { if (*s == quote_char) { printf("\\%c", quote_char); } else if (*s == '\\') { printf("\\\\"); } else if (32 <= *s && *s <= 126) { printf("%c", *s); } else if (*s == '\n') { printf("\\n"); // TODO add more escape codes here } else { printf("\\x%02x", (*s) & 0xff); } } printf("%c", quote_char); } STATIC void emit_cpy_load_const_str(emit_t *emit, qstr qst, bool bytes) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST "); print_quoted_str(qst, bytes); printf("\n"); } } STATIC void emit_cpy_load_null(emit_t *emit) { // unused for cpy assert(0); } STATIC void emit_cpy_load_fast(emit_t *emit, qstr qst, mp_uint_t id_flags, mp_uint_t local_num) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_FAST " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_load_deref(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_DEREF " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_load_name(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_NAME %s\n", qstr_str(qst)); } } STATIC void emit_cpy_load_global(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_GLOBAL %s\n", qstr_str(qst)); } } STATIC void emit_cpy_load_attr(emit_t *emit, qstr qst) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_ATTR %s\n", qstr_str(qst)); } } STATIC void emit_cpy_load_method(emit_t *emit, qstr qst) { emit_cpy_load_attr(emit, qst); } STATIC void emit_cpy_load_build_class(emit_t *emit) { emit_pre(emit, 1, 1); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_BUILD_CLASS\n"); } } STATIC void emit_cpy_load_subscr(emit_t *emit) { emit_pre(emit, -1, 1); if (emit->pass == MP_PASS_EMIT) { printf("BINARY_SUBSCR\n"); } } STATIC void emit_cpy_store_fast(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("STORE_FAST " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_store_deref(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("STORE_DEREF " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_store_name(emit_t *emit, qstr qst) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("STORE_NAME %s\n", qstr_str(qst)); } } STATIC void emit_cpy_store_global(emit_t *emit, qstr qst) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("STORE_GLOBAL %s\n", qstr_str(qst)); } } STATIC void emit_cpy_store_attr(emit_t *emit, qstr qst) { emit_pre(emit, -2, 3); if (emit->pass == MP_PASS_EMIT) { printf("STORE_ATTR %s\n", qstr_str(qst)); } } STATIC void emit_cpy_store_subscr(emit_t *emit) { emit_pre(emit, -3, 1); if (emit->pass == MP_PASS_EMIT) { printf("STORE_SUBSCR\n"); } } STATIC void emit_cpy_delete_fast(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_FAST " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_delete_deref(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_DEREF " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_delete_name(emit_t *emit, qstr qst) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_NAME %s\n", qstr_str(qst)); } } STATIC void emit_cpy_delete_global(emit_t *emit, qstr qst) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_GLOBAL %s\n", qstr_str(qst)); } } STATIC void emit_cpy_delete_attr(emit_t *emit, qstr qst) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_ATTR %s\n", qstr_str(qst)); } } STATIC void emit_cpy_delete_subscr(emit_t *emit) { emit_pre(emit, -2, 1); if (emit->pass == MP_PASS_EMIT) { printf("DELETE_SUBSCR\n"); } } STATIC void emit_cpy_dup_top(emit_t *emit) { emit_pre(emit, 1, 1); if (emit->pass == MP_PASS_EMIT) { printf("DUP_TOP\n"); } } STATIC void emit_cpy_dup_top_two(emit_t *emit) { emit_pre(emit, 2, 1); if (emit->pass == MP_PASS_EMIT) { printf("DUP_TOP_TWO\n"); } } STATIC void emit_cpy_pop_top(emit_t *emit) { emit_pre(emit, -1, 1); if (emit->pass == MP_PASS_EMIT) { printf("POP_TOP\n"); } } STATIC void emit_cpy_rot_two(emit_t *emit) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("ROT_TWO\n"); } } STATIC void emit_cpy_rot_three(emit_t *emit) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("ROT_THREE\n"); } } STATIC void emit_cpy_jump(emit_t *emit, mp_uint_t label) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { int dest = emit->label_offsets[label]; if (dest < emit->bytecode_offset) { printf("JUMP_ABSOLUTE " UINT_FMT "\n", emit->label_offsets[label]); } else { printf("JUMP_FORWARD " UINT_FMT "\n", emit->label_offsets[label]); } } } STATIC void emit_cpy_pop_jump_if_true(emit_t *emit, mp_uint_t label) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("POP_JUMP_IF_TRUE " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_pop_jump_if_false(emit_t *emit, mp_uint_t label) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("POP_JUMP_IF_FALSE " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_jump_if_true_or_pop(emit_t *emit, mp_uint_t label) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("JUMP_IF_TRUE_OR_POP " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_jump_if_false_or_pop(emit_t *emit, mp_uint_t label) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("JUMP_IF_FALSE_OR_POP " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_break_loop(emit_t *emit, mp_uint_t label, mp_uint_t except_depth) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("BREAK_LOOP\n"); } } STATIC void emit_cpy_continue_loop(emit_t *emit, mp_uint_t label, mp_uint_t except_depth) { if (except_depth == 0) { emit_cpy_jump(emit, label); } else { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("CONTINUE_LOOP " UINT_FMT "\n", emit->label_offsets[label]); } } } STATIC void emit_cpy_setup_with(emit_t *emit, mp_uint_t label) { emit_pre(emit, 7, 3); if (emit->pass == MP_PASS_EMIT) { printf("SETUP_WITH " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_with_cleanup(emit_t *emit) { emit_pre(emit, -7, 1); if (emit->pass == MP_PASS_EMIT) { printf("WITH_CLEANUP\n"); } } STATIC void emit_cpy_setup_except(emit_t *emit, mp_uint_t label) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("SETUP_EXCEPT " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_setup_finally(emit_t *emit, mp_uint_t label) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("SETUP_FINALLY " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_end_finally(emit_t *emit) { emit_pre(emit, -1, 1); if (emit->pass == MP_PASS_EMIT) { printf("END_FINALLY\n"); } } STATIC void emit_cpy_get_iter(emit_t *emit) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("GET_ITER\n"); } } STATIC void emit_cpy_for_iter(emit_t *emit, mp_uint_t label) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("FOR_ITER " UINT_FMT "\n", emit->label_offsets[label]); } } STATIC void emit_cpy_for_iter_end(emit_t *emit) { emit_pre(emit, -1, 0); } STATIC void emit_cpy_pop_block(emit_t *emit) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("POP_BLOCK\n"); } } STATIC void emit_cpy_pop_except(emit_t *emit) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { printf("POP_EXCEPT\n"); } } STATIC void emit_cpy_unary_op(emit_t *emit, mp_unary_op_t op) { emit_pre(emit, 0, 1); if (emit->pass == MP_PASS_EMIT) { switch (op) { case MP_UNARY_OP_POSITIVE: printf("UNARY_POSITIVE\n"); break; case MP_UNARY_OP_NEGATIVE: printf("UNARY_NEGATIVE\n"); break; case MP_UNARY_OP_INVERT: printf("UNARY_INVERT\n"); break; case MP_UNARY_OP_NOT: printf("UNARY_NOT\n"); break; default: assert(0); } } } STATIC void emit_cpy_binary_op(emit_t *emit, mp_binary_op_t op) { if (op <= MP_BINARY_OP_INPLACE_POWER) { // CPython uses a byte code for each binary op emit_pre(emit, -1, 1); } else { // CPython uses a byte code plus an argument for compare ops emit_pre(emit, -1, 3); } if (emit->pass == MP_PASS_EMIT) { switch (op) { case MP_BINARY_OP_OR: printf("BINARY_OR\n"); break; case MP_BINARY_OP_XOR: printf("BINARY_XOR\n"); break; case MP_BINARY_OP_AND: printf("BINARY_AND\n"); break; case MP_BINARY_OP_LSHIFT: printf("BINARY_LSHIFT\n"); break; case MP_BINARY_OP_RSHIFT: printf("BINARY_RSHIFT\n"); break; case MP_BINARY_OP_ADD: printf("BINARY_ADD\n"); break; case MP_BINARY_OP_SUBTRACT: printf("BINARY_SUBTRACT\n"); break; case MP_BINARY_OP_MULTIPLY: printf("BINARY_MULTIPLY\n"); break; case MP_BINARY_OP_FLOOR_DIVIDE: printf("BINARY_FLOOR_DIVIDE\n"); break; case MP_BINARY_OP_TRUE_DIVIDE: printf("BINARY_TRUE_DIVIDE\n"); break; case MP_BINARY_OP_MODULO: printf("BINARY_MODULO\n"); break; case MP_BINARY_OP_POWER: printf("BINARY_POWER\n"); break; case MP_BINARY_OP_INPLACE_OR: printf("INPLACE_OR\n"); break; case MP_BINARY_OP_INPLACE_XOR: printf("INPLACE_XOR\n"); break; case MP_BINARY_OP_INPLACE_AND: printf("INPLACE_AND\n"); break; case MP_BINARY_OP_INPLACE_LSHIFT: printf("INPLACE_LSHIFT\n"); break; case MP_BINARY_OP_INPLACE_RSHIFT: printf("INPLACE_RSHIFT\n"); break; case MP_BINARY_OP_INPLACE_ADD: printf("INPLACE_ADD\n"); break; case MP_BINARY_OP_INPLACE_SUBTRACT: printf("INPLACE_SUBTRACT\n"); break; case MP_BINARY_OP_INPLACE_MULTIPLY: printf("INPLACE_MULTIPLY\n"); break; case MP_BINARY_OP_INPLACE_FLOOR_DIVIDE: printf("INPLACE_FLOOR_DIVIDE\n"); break; case MP_BINARY_OP_INPLACE_TRUE_DIVIDE: printf("INPLACE_TRUE_DIVIDE\n"); break; case MP_BINARY_OP_INPLACE_MODULO: printf("INPLACE_MODULO\n"); break; case MP_BINARY_OP_INPLACE_POWER: printf("INPLACE_POWER\n"); break; case MP_BINARY_OP_LESS: printf("COMPARE_OP <\n"); break; case MP_BINARY_OP_MORE: printf("COMPARE_OP >\n"); break; case MP_BINARY_OP_EQUAL: printf("COMPARE_OP ==\n"); break; case MP_BINARY_OP_LESS_EQUAL: printf("COMPARE_OP <=\n"); break; case MP_BINARY_OP_MORE_EQUAL: printf("COMPARE_OP >=\n"); break; case MP_BINARY_OP_NOT_EQUAL: printf("COMPARE_OP !=\n"); break; case MP_BINARY_OP_IN: printf("COMPARE_OP in\n"); break; case MP_BINARY_OP_IS: printf("COMPARE_OP is\n"); break; case MP_BINARY_OP_EXCEPTION_MATCH: printf("COMPARE_OP exception match\n"); break; case MP_BINARY_OP_NOT_IN: printf("COMPARE_OP not in\n"); break; case MP_BINARY_OP_IS_NOT: printf("COMPARE_OP is not\n"); break; default: assert(0); } } } STATIC void emit_cpy_build_tuple(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, 1 - n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("BUILD_TUPLE " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_build_list(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, 1 - n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("BUILD_LIST " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_list_append(emit_t *emit, mp_uint_t list_index) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LIST_APPEND " UINT_FMT "\n", list_index); } } STATIC void emit_cpy_build_map(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("BUILD_MAP " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_store_map(emit_t *emit) { emit_pre(emit, -2, 1); if (emit->pass == MP_PASS_EMIT) { printf("STORE_MAP\n"); } } STATIC void emit_cpy_map_add(emit_t *emit, mp_uint_t map_index) { emit_pre(emit, -2, 3); if (emit->pass == MP_PASS_EMIT) { printf("MAP_ADD " UINT_FMT "\n", map_index); } } STATIC void emit_cpy_build_set(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, 1 - n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("BUILD_SET " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_set_add(emit_t *emit, mp_uint_t set_index) { emit_pre(emit, -1, 3); if (emit->pass == MP_PASS_EMIT) { printf("SET_ADD " UINT_FMT "\n", set_index); } } STATIC void emit_cpy_build_slice(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, 1 - n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("BUILD_SLICE " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_unpack_sequence(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, -1 + n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("UNPACK_SEQUENCE " UINT_FMT "\n", n_args); } } STATIC void emit_cpy_unpack_ex(emit_t *emit, mp_uint_t n_left, mp_uint_t n_right) { emit_pre(emit, -1 + n_left + n_right + 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("UNPACK_EX " UINT_FMT "\n", n_left | (n_right << 8)); } } STATIC void emit_cpy_call_function(emit_t *emit, mp_uint_t n_positional, mp_uint_t n_keyword, mp_uint_t star_flags) { mp_int_t s = 0; if (star_flags & MP_EMIT_STAR_FLAG_SINGLE) { s += 1; } if (star_flags & MP_EMIT_STAR_FLAG_DOUBLE) { s += 1; } emit_pre(emit, -(mp_int_t)n_positional - 2 * (mp_int_t)n_keyword - s, 3); if (emit->pass == MP_PASS_EMIT) { if (star_flags & MP_EMIT_STAR_FLAG_SINGLE) { if (star_flags & MP_EMIT_STAR_FLAG_DOUBLE) { printf("CALL_FUNCTION_VAR_KW"); } else { printf("CALL_FUNCTION_VAR"); } } else { if (star_flags & MP_EMIT_STAR_FLAG_DOUBLE) { printf("CALL_FUNCTION_KW"); } else { printf("CALL_FUNCTION"); } } printf(" " UINT_FMT ", " UINT_FMT "\n", n_positional, n_keyword); } } STATIC void emit_cpy_call_method(emit_t *emit, mp_uint_t n_positional, mp_uint_t n_keyword, mp_uint_t star_flags) { emit_cpy_call_function(emit, n_positional, n_keyword, star_flags); } STATIC void emit_cpy_return_value(emit_t *emit) { emit_pre(emit, -1, 1); emit->last_emit_was_return_value = true; if (emit->pass == MP_PASS_EMIT) { printf("RETURN_VALUE\n"); } } STATIC void emit_cpy_raise_varargs(emit_t *emit, mp_uint_t n_args) { emit_pre(emit, -n_args, 3); if (emit->pass == MP_PASS_EMIT) { printf("RAISE_VARARGS " UINT_FMT "\n", n_args); } } STATIC void load_cpy_const_code_and_name(emit_t *emit, qstr qst) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST code %s\n", qstr_str(qst)); } // load qualified name emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST '"); // code just to work out the qualname (or whatever it is) { int depth = 0; for (scope_t *s = emit->scope; s->parent != NULL; s = s->parent) { depth += 1; } for (int wanted_depth = depth; wanted_depth >= 0; wanted_depth--) { scope_t *s = emit->scope; for (int i = 0; i < wanted_depth; i++) { s = s->parent; } if (s->kind == SCOPE_FUNCTION) { printf("%s.<locals>.", qstr_str(s->simple_name)); } else if (s->kind == SCOPE_CLASS) { printf("%s.", qstr_str(s->simple_name)); } } } printf("%s'\n", qstr_str(qst)); } } STATIC void emit_cpy_make_function(emit_t *emit, scope_t *scope, mp_uint_t n_pos_defaults, mp_uint_t n_kw_defaults) { load_cpy_const_code_and_name(emit, scope->simple_name); emit_pre(emit, -1 - n_pos_defaults - 2 * n_kw_defaults, 3); if (emit->pass == MP_PASS_EMIT) { printf("MAKE_FUNCTION " UINT_FMT "\n", (n_kw_defaults << 8) | n_pos_defaults); } } STATIC void emit_cpy_make_closure(emit_t *emit, scope_t *scope, mp_uint_t n_closed_over, mp_uint_t n_pos_defaults, mp_uint_t n_kw_defaults) { emit_cpy_build_tuple(emit, n_closed_over); load_cpy_const_code_and_name(emit, scope->simple_name); emit_pre(emit, -2 - n_pos_defaults - 2 * n_kw_defaults, 3); if (emit->pass == MP_PASS_EMIT) { printf("MAKE_CLOSURE " UINT_FMT "\n", (n_kw_defaults << 8) | n_pos_defaults); } } STATIC void emit_cpy_yield_value(emit_t *emit) { emit_pre(emit, 0, 1); emit->scope->scope_flags |= MP_SCOPE_FLAG_GENERATOR; if (emit->pass == MP_PASS_EMIT) { printf("YIELD_VALUE\n"); } } STATIC void emit_cpy_yield_from(emit_t *emit) { emit_pre(emit, -1, 1); emit->scope->scope_flags |= MP_SCOPE_FLAG_GENERATOR; if (emit->pass == MP_PASS_EMIT) { printf("YIELD_FROM\n"); } } STATIC void emit_cpy_start_except_handler(emit_t *emit) { emit_cpy_adjust_stack_size(emit, 3); // stack adjust for the 3 exception items } STATIC void emit_cpy_end_except_handler(emit_t *emit) { emit_cpy_adjust_stack_size(emit, -5); // stack adjust } STATIC void emit_cpy_load_const_verbatim_str(emit_t *emit, const char *str) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CONST %s\n", str); } } STATIC void emit_cpy_load_closure(emit_t *emit, qstr qst, mp_uint_t local_num) { emit_pre(emit, 1, 3); if (emit->pass == MP_PASS_EMIT) { printf("LOAD_CLOSURE " UINT_FMT " %s\n", local_num, qstr_str(qst)); } } STATIC void emit_cpy_setup_loop(emit_t *emit, mp_uint_t label) { emit_pre(emit, 0, 3); if (emit->pass == MP_PASS_EMIT) { printf("SETUP_LOOP " UINT_FMT "\n", emit->label_offsets[label]); } } const emit_method_table_t emit_cpython_method_table = { emit_cpy_set_native_type, emit_cpy_start_pass, emit_cpy_end_pass, emit_cpy_last_emit_was_return_value, emit_cpy_adjust_stack_size, emit_cpy_set_source_line, emit_cpy_load_id, emit_cpy_store_id, emit_cpy_delete_id, emit_cpy_label_assign, emit_cpy_import_name, emit_cpy_import_from, emit_cpy_import_star, emit_cpy_load_const_tok, emit_cpy_load_const_small_int, emit_cpy_load_const_int, emit_cpy_load_const_dec, emit_cpy_load_const_str, emit_cpy_load_null, emit_cpy_load_fast, emit_cpy_load_deref, emit_cpy_load_name, emit_cpy_load_global, emit_cpy_load_attr, emit_cpy_load_method, emit_cpy_load_build_class, emit_cpy_load_subscr, emit_cpy_store_fast, emit_cpy_store_deref, emit_cpy_store_name, emit_cpy_store_global, emit_cpy_store_attr, emit_cpy_store_subscr, emit_cpy_delete_fast, emit_cpy_delete_deref, emit_cpy_delete_name, emit_cpy_delete_global, emit_cpy_delete_attr, emit_cpy_delete_subscr, emit_cpy_dup_top, emit_cpy_dup_top_two, emit_cpy_pop_top, emit_cpy_rot_two, emit_cpy_rot_three, emit_cpy_jump, emit_cpy_pop_jump_if_true, emit_cpy_pop_jump_if_false, emit_cpy_jump_if_true_or_pop, emit_cpy_jump_if_false_or_pop, emit_cpy_break_loop, emit_cpy_continue_loop, emit_cpy_setup_with, emit_cpy_with_cleanup, emit_cpy_setup_except, emit_cpy_setup_finally, emit_cpy_end_finally, emit_cpy_get_iter, emit_cpy_for_iter, emit_cpy_for_iter_end, emit_cpy_pop_block, emit_cpy_pop_except, emit_cpy_unary_op, emit_cpy_binary_op, emit_cpy_build_tuple, emit_cpy_build_list, emit_cpy_list_append, emit_cpy_build_map, emit_cpy_store_map, emit_cpy_map_add, emit_cpy_build_set, emit_cpy_set_add, emit_cpy_build_slice, emit_cpy_unpack_sequence, emit_cpy_unpack_ex, emit_cpy_make_function, emit_cpy_make_closure, emit_cpy_call_function, emit_cpy_call_method, emit_cpy_return_value, emit_cpy_raise_varargs, emit_cpy_yield_value, emit_cpy_yield_from, emit_cpy_start_except_handler, emit_cpy_end_except_handler, // emitcpy specific functions emit_cpy_load_const_verbatim_str, emit_cpy_load_closure, emit_cpy_setup_loop, }; #endif // MICROPY_EMIT_CPYTHON
4969e3859430c448bf7c0f8581a4bc08b51aa810
7fcb614a59a138019b2845a6e493f9d22c44852d
/MCUME_esp32/espcolem/main/SN76489.h
552fc15d548e2224983bd4219e496cbb884f4925
[]
no_license
Jean-MarcHarvengt/MCUME
9180feaf8195c6a0a38eba6c12733c987fa98062
fe1280985d9a86bfb2166842a56c8eec768aa666
refs/heads/master
2023-06-09T23:11:04.216374
2023-05-28T15:24:02
2023-05-28T15:24:02
203,546,040
318
43
null
2023-03-21T13:19:51
2019-08-21T08:58:23
C
UTF-8
C
false
false
2,428
h
SN76489.h
/** EMULib Emulation Library *********************************/ /** **/ /** SN76489.c **/ /** **/ /** This file contains emulation for the SN76489 sound chip **/ /** produced by Intel. **/ /** **/ /** Copyright (C) Marat Fayzullin 1996-1998 **/ /** You are not allowed to distribute this software **/ /** commercially. Please, notify me, if you make any **/ /** changes to this file. **/ /*************************************************************/ #ifndef SN76489_H #define SN76489_H #define PSG_BASE 131072 /* Base frequency for SN76489 */ #define PSG_ASYNC 0 /* Asynchronous emulation */ #define PSG_SYNC 1 /* Synchronous emulation mode */ #define PSG_FLUSH 2 /* Flush buffers only */ typedef struct { int Channel,Freq[4],Volume[4],Sync; unsigned char NoiseMode,Buf,Changed; void (*Sound)(int,int,int); } SN76489; /** Reset76489() *********************************************/ /** Reset the sound chip. The user has to provide a pointer **/ /** to a function Sound(Channel,Freq,Volume) used to make **/ /** actual sound. **/ /*************************************************************/ void Reset76489(register SN76489 *D,void (*Sound)(int,int,int)); /** Sync76489() **********************************************/ /** Flush all accumulated changes by issuing Sound() calls, **/ /** and set the synchronization on/off. The second argument **/ /** should be PSG_SYNC, PSG_ASYNC to set/reset sync, or **/ /** PSG_FLUSH to leave sync mode as it is. **/ /*************************************************************/ void Sync76489(register SN76489 *D,register unsigned char Sync); /** Write76489() *********************************************/ /** Call this function to output a value V into the sound **/ /** chip. **/ /*************************************************************/ void Write76489(register SN76489 *D,register unsigned char V); #endif /* SN76489_H */
5a23e4f690210c47f2af2fdf35c91a5eda1b5e8b
fbe68d84e97262d6d26dd65c704a7b50af2b3943
/third_party/libdwarf-20191104/dwarfdump/helpertree.c
fde1a40f5119e10b931ac6cf9fa5b10aeae55f6d
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "LGPL-2.1-only", "GPL-2.0-only", "MIT" ]
permissive
thalium/icebox
c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb
6f78952d58da52ea4f0e55b2ab297f28e80c1160
refs/heads/master
2022-08-14T00:19:36.984579
2022-02-22T13:10:31
2022-02-22T13:10:31
190,019,914
585
109
MIT
2022-01-13T20:58:15
2019-06-03T14:18:12
C++
UTF-8
C
false
false
4,465
c
helpertree.c
/* Copyright 2015-2016 David Anderson. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it would be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Further, this software is distributed without any warranty that it is free of the rightful claim of any third person regarding infringement or the like. Any license provided herein, whether implied or otherwise, applies only to this software file. Patent licenses, if any, provided herein do not apply to combinations of this program with other software, or any other product whatsoever. You should have received a copy of the GNU General Public License along with this program; if not, write the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, USA. */ #include "globals.h" #ifdef HAVE_STDINT_H #include <stdint.h> #endif /* HAVE_STDINT_H */ #include "dwarf_tsearch.h" #include "helpertree.h" #define TRUE 1 #define FALSE 0 /* WARNING: the tree walk functions will, if presented **tree when *tree is wanted, simply find nothing. No error, just bad results. So when a walk produces nothing suspect a code mistake here. The basic problem is void* is a terrible way to pass in a pointer. But it's how tsearch was defined long ago. */ /* For .debug_info (not for tied file) */ struct Helpertree_Base_s helpertree_offsets_base_info; /* For .debug_types (not for tied file) */ struct Helpertree_Base_s helpertree_offsets_base_types; static struct Helpertree_Map_Entry_s * helpertree_map_create_entry(Dwarf_Unsigned offset, int val) { struct Helpertree_Map_Entry_s *mp = (struct Helpertree_Map_Entry_s *) calloc(1,sizeof(struct Helpertree_Map_Entry_s)); if (!mp) { return 0; } mp->hm_key = offset; mp->hm_val = val; return mp; } static void helpertree_map_free_func(void *mx) { struct Helpertree_Map_Entry_s *m = mx; free(m); } static int helpertree_map_compare_func(const void *l, const void *r) { const struct Helpertree_Map_Entry_s *ml = l; const struct Helpertree_Map_Entry_s *mr = r; if (ml->hm_key < mr->hm_key) { return -1; } if (ml->hm_key > mr->hm_key) { return 1; } return 0; } static void helpertree_map_destroy(void *map) { /* tdestroy is not part of Posix. */ dwarf_tdestroy(map,helpertree_map_free_func); } /* Globally-visible functions follow this line. */ struct Helpertree_Map_Entry_s * helpertree_add_entry(Dwarf_Unsigned offset, int val,struct Helpertree_Base_s *base) { void *retval = 0; struct Helpertree_Map_Entry_s *re = 0; struct Helpertree_Map_Entry_s *e; void **tree1 = 0; tree1 = &base->hb_base; e = helpertree_map_create_entry(offset,val); /* tsearch records e's contents unless e is already present . We must not free it till destroy time if it got added to tree1. */ retval = dwarf_tsearch(e,tree1, helpertree_map_compare_func); if (retval) { re = *(struct Helpertree_Map_Entry_s **)retval; if (re != e) { /* We returned an existing record, e not needed. Set val. */ re->hm_val = val; helpertree_map_free_func(e); } else { /* Record e got added to tree1, do not free record e. */ } return retval; } return NULL; } struct Helpertree_Map_Entry_s * helpertree_find(Dwarf_Unsigned offset,struct Helpertree_Base_s *base) { void *retval = 0; struct Helpertree_Map_Entry_s *re = 0; struct Helpertree_Map_Entry_s *e = 0; e = helpertree_map_create_entry(offset,0); retval = dwarf_tfind(e,&base->hb_base, helpertree_map_compare_func); if (retval) { re = *(struct Helpertree_Map_Entry_s **)retval; } /* The one we created here must be deleted, it is dead. We look at the returned one instead. */ helpertree_map_free_func(e); return re; } void helpertree_clear_statistics(struct Helpertree_Base_s *base) { if(!base) { return; } if (!base->hb_base) { return; } helpertree_map_destroy(base->hb_base); base->hb_base = 0; }
86499951b46740b5b529127c909d16111aeb581c
549f66608f0cb4e50cee2e51c53206e798ab82cd
/test/Solver/STPswitchSAT.c
f205aca71b4bdb8663af6df412195e7c4418443f
[ "NCSA" ]
permissive
klee/klee
c8da2f9668ee199af47cd2c784cea979017d7704
7082eafd05b4f268132ab94772c0243dbebf5087
refs/heads/master
2023-08-04T08:10:38.619540
2023-06-23T21:34:12
2023-07-21T09:00:02
11,568,417
2,339
679
NOASSERTION
2023-09-11T10:23:26
2013-07-21T22:03:03
C++
UTF-8
C
false
false
1,085
c
STPswitchSAT.c
// REQUIRES: stp // RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc // // RUN: rm -rf %t.klee-out-minisat // RUN: %klee --output-dir=%t.klee-out-minisat -solver-backend=stp --stp-sat-solver=minisat %t1.bc // RUN: cat %t.klee-out-minisat/messages.txt %t.klee-out-minisat/warnings.txt > %t.klee-out-minisat/all.txt // RUN: FileCheck --input-file=%t.klee-out-minisat/all.txt --check-prefix=MINISAT %s // // RUN: rm -rf %t.klee-out-riss // RUN: %klee --output-dir=%t.klee-out-riss -solver-backend=stp --stp-sat-solver=riss %t1.bc // RUN: cat %t.klee-out-riss/messages.txt %t.klee-out-riss/warnings.txt > %t.klee-out-riss/all.txt // RUN: FileCheck --input-file=%t.klee-out-riss/all.txt --check-prefix=RISS %s #include "klee/klee.h" int main(void) { int foo; int bar = 42; klee_make_symbolic(&foo, sizeof(foo), "foo"); if (foo) bar -= 17; else bar += 5; return bar; } // MINISAT: KLEE: Using STP solver backend // MINISAT: {{KLEE: SAT solver: MiniSat|KLEE: Fallback SAT solver}} // RISS: KLEE: Using STP solver backend // RISS: {{KLEE: SAT solver: RISS|KLEE: Fallback SAT solver}}
d3eda243fd32b255756fffd2aa0c1d09efdfd849
ab5e5a2529f78f48e04b4d1b6822b0e0d5c234fd
/Firmware/jtag.c
90454a637b46db4b9629c298a9cad28f27858664
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
BusPirate/Bus_Pirate
f24f8a1d6bd635cf28a35d6c6bb6feac869b29b5
cd9286dda95925b95f837a7a77e1baef2ba73006
refs/heads/master
2023-08-10T01:42:07.719319
2022-12-26T03:39:40
2022-12-26T03:39:40
55,176,307
614
163
null
2023-07-19T20:39:52
2016-03-31T19:13:05
C
UTF-8
C
false
false
6,777
c
jtag.c
/* * This file is part of the Bus Pirate project (buspirate.com). * * Originally written by hackaday.com <legal@hackaday.com> * * To the extent possible under law, hackaday.com <legal@hackaday.com> has * waived all copyright and related or neighboring rights to Bus Pirate. This * work is published from United States. * * For details see: http://creativecommons.org/publicdomain/zero/1.0/. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. */ #include "jtag.h" #ifdef BP_ENABLE_JTAG_SUPPORT #include <stdbool.h> #include <stdint.h> #include "base.h" #ifdef BP_JTAG_XSVF_SUPPORT #include "jtag/micro.h" #include "jtag/ports.h" #define XSVF_ERROR_NONE 0 #define XSVF_ERROR_UNKNOWN 1 #define XSVF_ERROR_TDOMISMATCH 2 #define XSVF_ERROR_MAXRETRIES 3 /* TDO mismatch after max retries */ #define XSVF_ERROR_ILLEGALCMD 4 #define XSVF_ERROR_ILLEGALSTATE 5 #define XSVF_ERROR_DATAOVERFLOW 6 /* Data > lenVal MAX_LEN buffer size*/ /* Insert new errors here */ #define XSVF_ERROR_LAST 7 #endif /* BP_JTAG_XSVF_SUPPORT */ #define JTAGDATASETTLE 20 #define JTAGCLOCK 100 #define RESET 0 #define IDLE 1 #define SHIFTIR 2 #define SHIFTDR 3 static void jtag_setup(void); static void jtag_set_state(const uint8_t new_state); static void jtag_leave_state(void); static void jtag_reset(void); static uint8_t jtag_read_byte(void); static uint8_t jtag_write_bit(const bool value); static uint8_t jtag_read_bit(void); static void jtag_data_low(void); static void jtag_data_high(void); static void jtag_clock_low(void); static void jtag_clock_high(void); static void jtag_clock_ticks(size_t ticks); static void jtag_tms_high(void); static void jtag_tms_low(void); typedef struct { uint8_t state : 2; uint8_t hiz : 1; uint8_t bit_pending : 1; uint8_t delayed_bit : 1; } jtag_settings_t; static jtag_settings_t jtag_settings = {0}; void jtag(void) { jtag_setup(); jtag_settings.hiz = true; jtag_settings.bit_pending = false; jtag_settings.delayed_bit = false; for (;;) { uint8_t cmd = user_serial_read_byte(); switch (cmd) { /* Reset */ case 1: jtag_reset(); jtag_leave_state(); break; case 2: { // read ID, chain length, # devices jtag_reset(); jtag_data_high(); // how many devices? //[0xffx255]{while not 1} jtag_leave_state(); jtag_set_state(SHIFTIR); jtag_clock_ticks(0xFF); jtag_clock_ticks(0xFF); jtag_leave_state(); jtag_set_state(SHIFTDR); uint16_t words = 0; while (jtag_read_bit() == LOW) { words++; if (words > 250) { break; // 250 device timout/limit... } } jtag_leave_state(); jtag_reset(); // read ID#s (32 bits * devices) {r: (4*devices)} jtag_leave_state(); jtag_set_state(SHIFTDR); user_serial_transmit_character(words * 4); for (size_t word_counter = 0; word_counter < words; word_counter++) { user_serial_transmit_character(jtag_read_byte()); user_serial_transmit_character(jtag_read_byte()); user_serial_transmit_character(jtag_read_byte()); user_serial_transmit_character(jtag_read_byte()); } jtag_leave_state(); break; } #ifdef BP_JTAG_XSVF_SUPPORT case 3: { // data MUST be low when we start or we get error 3! jtag_data_low(); jtag_clock_low(); jtag_tms_low(); xsvf_setup(); user_serial_transmit_character(xsvfExecute()); break; } #endif /* BP_JTAG_XSVF_SUPPORT */ default: break; } } } void jtag_leave_state(void) { switch (jtag_settings.state) { case IDLE: break; case RESET: jtag_tms_low(); jtag_clock_ticks(1); jtag_settings.state = IDLE; break; case SHIFTIR: if (jtag_settings.bit_pending) { if (jtag_settings.delayed_bit) { jtag_data_high(); } else { jtag_data_low(); } jtag_settings.bit_pending = false; } jtag_tms_high(); jtag_clock_ticks(2); jtag_tms_low(); jtag_clock_ticks(1); jtag_settings.state = IDLE; break; case SHIFTDR: jtag_tms_high(); jtag_clock_ticks(2); jtag_tms_low(); jtag_clock_ticks(1); jtag_settings.state = IDLE; break; default: break; } } void jtag_reset(void) { jtag_tms_high(); jtag_clock_ticks(10); jtag_tms_low(); jtag_settings.state = RESET; } void jtag_set_state(const uint8_t new_state) { switch (new_state) { case IDLE: break; case RESET: jtag_reset(); break; case SHIFTDR: jtag_tms_high(); jtag_clock_ticks(1); jtag_tms_low(); jtag_clock_ticks(2); jtag_settings.state = SHIFTDR; break; case SHIFTIR: jtag_tms_high(); jtag_clock_ticks(2); jtag_tms_low(); jtag_clock_ticks(2); jtag_settings.state = SHIFTIR; break; default: break; } } void jtag_setup(void) { JTAGTD0_TRIS = INPUT; JTAGTCK_TRIS = OUTPUT; JTAGTDI_TRIS = OUTPUT; JTAGTMS_TRIS = OUTPUT; JTAGTDO = LOW; JTAGTCK = LOW; JTAGTDI = LOW; JTAGTMS = LOW; } uint8_t jtag_read_byte(void) { jtag_clock_low(); if (jtag_settings.bit_pending) { jtag_write_bit(jtag_settings.delayed_bit); jtag_settings.bit_pending = false; } uint8_t value = 0; for (size_t bit_index = 0; bit_index < 8; bit_index++) { jtag_clock_high(); value = (value >> 1) | (JTAGTDO << 7); jtag_clock_low(); } return value; } uint8_t jtag_write_bit(const bool value) { if (value == LOW) { jtag_data_low(); } else { jtag_data_high(); } jtag_clock_high(); uint8_t input_bit = JTAGTDO; jtag_clock_low(); return input_bit; } uint8_t jtag_read_bit(void) { jtag_clock_high(); uint8_t input_bit = JTAGTDO; jtag_clock_low(); return input_bit; } void jtag_data_high(void) { JTAGTDI_TRIS = ~jtag_settings.hiz; JTAGTDI = jtag_settings.hiz; bp_delay_us(JTAGDATASETTLE); } void jtag_data_low(void) { JTAGTDI = LOW; JTAGTDI_TRIS = OUTPUT; bp_delay_us(JTAGDATASETTLE); } void jtag_clock_ticks(size_t ticks) { for (size_t tick = 0; tick < ticks; tick++) { jtag_clock_high(); jtag_clock_low(); } } void jtag_clock_high(void) { JTAGTCK_TRIS = ~jtag_settings.hiz; JTAGTCK = jtag_settings.hiz; bp_delay_us(JTAGCLOCK); } void jtag_clock_low(void) { JTAGTCK = LOW; JTAGTCK_TRIS = OUTPUT; bp_delay_us(JTAGCLOCK); } void jtag_tms_high(void) { JTAGTMS_TRIS = ~jtag_settings.hiz; JTAGTMS = jtag_settings.hiz; bp_delay_us(JTAGDATASETTLE); } void jtag_tms_low(void) { JTAGTMS = LOW; JTAGTMS_TRIS = OUTPUT; bp_delay_us(JTAGDATASETTLE); } #endif /* BP_ENABLE_JTAG_SUPPORT */
4b9f26833c0c382559b917c6433f9611b2a3c60e
1efb2283837c9b70bc6449cec877799e4efa3268
/test/mpi/rma/rput_local_comp.c
e6d09db750f97b80dac78ccc75262ec4ced38583
[ "mpich2" ]
permissive
pmodels/mpich
d2392e8e30536cad3e500c16aa1e71211101d83f
2d265f9f5f93ebdd07ad547423bc6212868262a4
refs/heads/main
2023-09-04T05:50:15.041823
2023-09-01T23:07:33
2023-09-01T23:07:33
70,918,679
506
313
NOASSERTION
2023-09-14T14:38:36
2016-10-14T14:39:42
C
UTF-8
C
false
false
3,799
c
rput_local_comp.c
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include <mpi.h> #include <stdio.h> #include <assert.h> #include "mpitest.h" #define ITER 100 #define MAX_SIZE 65536 int main(int argc, char *argv[]) { int rank, nproc, i; int errors = 0, all_errors = 0; int *buf = NULL, *winbuf = NULL; MPI_Win window; MTest_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &nproc); if (nproc < 2) { if (rank == 0) printf("Error: must be run with two or more processes\n"); MPI_Abort(MPI_COMM_WORLD, 1); } MPI_Alloc_mem(MAX_SIZE * sizeof(int), MPI_INFO_NULL, &buf); MPI_Alloc_mem(MAX_SIZE * sizeof(int), MPI_INFO_NULL, &winbuf); MPI_Win_create(winbuf, MAX_SIZE * sizeof(int), sizeof(int), MPI_INFO_NULL, MPI_COMM_WORLD, &window); MPI_Win_lock_all(0, window); /* Test Rput local completion with small data. * Small data is always copied to header packet as immediate data. */ if (rank == 1) { for (i = 0; i < ITER; i++) { MPI_Request put_req; int val = -1; buf[0] = rank; MPI_Rput(&buf[0], 1, MPI_INT, 0, 0, 1, MPI_INT, window, &put_req); MPI_Wait(&put_req, MPI_STATUS_IGNORE); /* reset local buffer to check local completion */ buf[0] = 0; MPI_Win_flush(0, window); MPI_Get(&val, 1, MPI_INT, 0, 0, 1, MPI_INT, window); MPI_Win_flush(0, window); if (val != rank) { printf("%d - Got %d in small Rput test, expected %d\n", rank, val, rank); errors++; } } } MPI_Barrier(MPI_COMM_WORLD); /* Test Rput local completion with large data . * Large data is not suitable for 1-copy optimization, and always sent out * from user buffer. */ if (rank == 1) { for (i = 0; i < ITER; i++) { MPI_Request put_req; int val0 = -1, val1 = -1, val2 = -1; int j; /* initialize data */ for (j = 0; j < MAX_SIZE; j++) { buf[j] = rank + j + i; } MPI_Rput(buf, MAX_SIZE, MPI_INT, 0, 0, MAX_SIZE, MPI_INT, window, &put_req); MPI_Wait(&put_req, MPI_STATUS_IGNORE); /* reset local buffer to check local completion */ buf[0] = 0; buf[MAX_SIZE - 1] = 0; buf[MAX_SIZE / 2] = 0; MPI_Win_flush(0, window); /* get remote values which are modified in local buffer after wait */ MPI_Get(&val0, 1, MPI_INT, 0, 0, 1, MPI_INT, window); MPI_Get(&val1, 1, MPI_INT, 0, MAX_SIZE - 1, 1, MPI_INT, window); MPI_Get(&val2, 1, MPI_INT, 0, MAX_SIZE / 2, 1, MPI_INT, window); MPI_Win_flush(0, window); if (val0 != rank + i) { printf("%d - Got %d in large Rput test, expected %d\n", rank, val0, rank + i); errors++; } if (val1 != rank + MAX_SIZE - 1 + i) { printf("%d - Got %d in large Rput test, expected %d\n", rank, val1, rank + MAX_SIZE - 1 + i); errors++; } if (val2 != rank + MAX_SIZE / 2 + i) { printf("%d - Got %d in large Rput test, expected %d\n", rank, val2, rank + MAX_SIZE / 2 + i); errors++; } } } MPI_Win_unlock_all(window); MPI_Barrier(MPI_COMM_WORLD); MPI_Win_free(&window); if (buf) MPI_Free_mem(buf); if (winbuf) MPI_Free_mem(winbuf); MTest_Finalize(errors); return MTestReturnValue(all_errors); }
890b543c50d7f70ea239bfd4b08e380551fec3e5
9e8510cf31c58b8fff8cba7700abdfda472cb86e
/include/ovn/logical-fields.h
a7b64ef67852435f8f1395c03ae906b2d7ca1e8e
[ "GPL-2.0-only", "Apache-2.0", "BSD-3-Clause", "ISC" ]
permissive
ovn-org/ovn
c78d9672fd0c381c33a8ad29eedecb3f45f0fbd4
4a77767e624fb735bbce3cb4e2dca9da92c418f4
refs/heads/main
2023-08-07T20:43:57.636339
2023-08-02T13:31:04
2023-08-04T19:27:19
182,148,991
401
230
Apache-2.0
2023-09-13T15:00:21
2019-04-18T19:54:33
C
UTF-8
C
false
false
6,859
h
logical-fields.h
/* Copyright (c) 2015, 2016 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OVN_LOGICAL_FIELDS_H #define OVN_LOGICAL_FIELDS_H 1 #include "openvswitch/meta-flow.h" #include "openvswitch/util.h" struct shash; enum ovn_controller_event { OVN_EVENT_EMPTY_LB_BACKENDS = 0, OVN_EVENT_MAX, }; /* Logical fields. * * These values are documented in ovn-architecture(7), please update the * documentation if you change any of them. */ #define MFF_LOG_DATAPATH MFF_METADATA /* Logical datapath (64 bits). */ #define MFF_LOG_FLAGS MFF_REG10 /* One of MLF_* (32 bits). */ #define MFF_LOG_DNAT_ZONE MFF_REG11 /* conntrack dnat zone for gateway router * (32 bits). */ #define MFF_LOG_SNAT_ZONE MFF_REG12 /* conntrack snat zone for gateway router * (32 bits). */ #define MFF_LOG_CT_ZONE MFF_REG13 /* Logical conntrack zone for lports * (32 bits). */ #define MFF_LOG_INPORT MFF_REG14 /* Logical input port (32 bits). */ #define MFF_LOG_OUTPORT MFF_REG15 /* Logical output port (32 bits). */ /* Logical registers. * * Make sure these don't overlap with the logical fields! */ #define MFF_LOG_REG0 MFF_REG0 #define MFF_LOG_LB_ORIG_DIP_IPV4 MFF_REG1 #define MFF_LOG_LB_ORIG_TP_DPORT MFF_REG2 #define MFF_LOG_XXREG0 MFF_XXREG0 #define MFF_LOG_LB_ORIG_DIP_IPV6 MFF_XXREG1 #define MFF_N_LOG_REGS 10 #define MFF_LOG_LB_AFF_MATCH_IP4_ADDR MFF_REG4 #define MFF_LOG_LB_AFF_MATCH_LS_IP6_ADDR MFF_XXREG0 #define MFF_LOG_LB_AFF_MATCH_LR_IP6_ADDR MFF_XXREG1 #define MFF_LOG_LB_AFF_MATCH_PORT MFF_REG8 void ovn_init_symtab(struct shash *symtab); /* MFF_LOG_FLAGS_REG bit assignments */ enum mff_log_flags_bits { MLF_ALLOW_LOOPBACK_BIT = 0, MLF_RCV_FROM_RAMP_BIT = 1, MLF_FORCE_SNAT_FOR_DNAT_BIT = 2, MLF_FORCE_SNAT_FOR_LB_BIT = 3, MLF_LOCAL_ONLY_BIT = 4, MLF_NESTED_CONTAINER_BIT = 5, MLF_LOOKUP_MAC_BIT = 6, MLF_LOOKUP_LB_HAIRPIN_BIT = 7, MLF_LOOKUP_FDB_BIT = 8, MLF_SKIP_SNAT_FOR_LB_BIT = 9, MLF_LOCALPORT_BIT = 10, MLF_USE_SNAT_ZONE = 11, MLF_CHECK_PORT_SEC_BIT = 12, MLF_LOOKUP_COMMIT_ECMP_NH_BIT = 13, MLF_USE_LB_AFF_SESSION_BIT = 14, }; /* MFF_LOG_FLAGS_REG flag assignments */ enum mff_log_flags { /* Allow outputting back to inport. */ MLF_ALLOW_LOOPBACK = (1 << MLF_ALLOW_LOOPBACK_BIT), /* Indicate that a packet was received from a ramp switch to compensate for * the lack of egress port information available in ramp switch * encapsulation. Egress port information is available for Geneve, STT and * regular VXLAN tunnel types. */ MLF_RCV_FROM_RAMP = (1 << MLF_RCV_FROM_RAMP_BIT), /* Indicate that a packet needs a force SNAT in the gateway router when * DNAT has taken place. */ MLF_FORCE_SNAT_FOR_DNAT = (1 << MLF_FORCE_SNAT_FOR_DNAT_BIT), /* Indicate that a packet needs a force SNAT in the gateway router when * load-balancing has taken place. */ MLF_FORCE_SNAT_FOR_LB = (1 << MLF_FORCE_SNAT_FOR_LB_BIT), /* Indicate that a packet that should be distributed across multiple * hypervisors should instead only be output to local targets */ MLF_LOCAL_ONLY = (1 << MLF_LOCAL_ONLY_BIT), /* Indicate that a packet was received from a nested container. */ MLF_NESTED_CONTAINER = (1 << MLF_NESTED_CONTAINER_BIT), /* Indicate that the lookup in the mac binding table was successful. */ MLF_LOOKUP_MAC = (1 << MLF_LOOKUP_MAC_BIT), MLF_LOOKUP_LB_HAIRPIN = (1 << MLF_LOOKUP_LB_HAIRPIN_BIT), /* Indicate that the lookup in the fdb table was successful. */ MLF_LOOKUP_FDB = (1 << MLF_LOOKUP_FDB_BIT), /* Indicate that a packet must not SNAT in the gateway router when * load-balancing has taken place. */ MLF_SKIP_SNAT_FOR_LB = (1 << MLF_SKIP_SNAT_FOR_LB_BIT), /* Indicate the packet has been received from a localport */ MLF_LOCALPORT = (1 << MLF_LOCALPORT_BIT), MLF_LOOKUP_COMMIT_ECMP_NH = (1 << MLF_LOOKUP_COMMIT_ECMP_NH_BIT), MLF_USE_LB_AFF_SESSION = (1 << MLF_USE_LB_AFF_SESSION_BIT), }; /* OVN logical fields * =================== * These are the fields which OVN supports modifying which gets translated * to OFFlow controller action. * * OpenvSwitch doesn't support modifying these fields yet. If a field is * supported later by OpenvSwitch, it can be deleted from here. */ enum ovn_field_id { /* * Name: "icmp4.frag_mtu" - * Type: be16 * Description: Sets the low-order 16 bits of the ICMP4 header field * (that is labelled "unused" in the ICMP specification) of the ICMP4 * packet as per the RFC 1191. */ OVN_ICMP4_FRAG_MTU, /* * Name: "icmp6.frag_mtu" - * Type: be32 * Description: Sets the first 32 bits of the ICMPv6 body to the MTU of * next-hop link (RFC 4443) */ OVN_ICMP6_FRAG_MTU, OVN_FIELD_N_IDS }; struct ovn_field { enum ovn_field_id id; const char *name; unsigned int n_bytes; /* Width of the field in bytes. */ unsigned int n_bits; /* Number of significant bits in field. */ }; static inline const struct ovn_field * ovn_field_from_id(enum ovn_field_id id) { extern const struct ovn_field ovn_fields[OVN_FIELD_N_IDS]; ovs_assert((unsigned int) id < OVN_FIELD_N_IDS); return &ovn_fields[id]; } const char *event_to_string(enum ovn_controller_event event); int string_to_event(const char *s); const struct ovn_field *ovn_field_from_name(const char *name); /* OVN CT label values * =================== * These are specific ct.label bit values OVN uses to track different types * of traffic. */ #define OVN_CT_BLOCKED_BIT 0 #define OVN_CT_NATTED_BIT 1 #define OVN_CT_LB_SKIP_SNAT_BIT 2 #define OVN_CT_LB_FORCE_SNAT_BIT 3 #define OVN_CT_BLOCKED 1 #define OVN_CT_NATTED 2 #define OVN_CT_LB_SKIP_SNAT 4 #define OVN_CT_LB_FORCE_SNAT 8 #define OVN_CT_ECMP_ETH_1ST_BIT 32 #define OVN_CT_ECMP_ETH_END_BIT 79 #define OVN_CT_STR(LABEL_VALUE) OVS_STRINGIZE(LABEL_VALUE) #define OVN_CT_MASKED_STR(LABEL_VALUE) \ OVS_STRINGIZE(LABEL_VALUE) "/" OVS_STRINGIZE(LABEL_VALUE) #define OVN_CT_LABEL_STR(LABEL_VALUE) "ct_label[" OVN_CT_STR(LABEL_VALUE) "]" #endif /* ovn/lib/logical-fields.h */
9eb929d1df0925818bc30e0b8884749c32926963
e73547787354afd9b717ea57fe8dd0695d161821
/src/world/area_trd/trd_01/trd_01_0_header.c
a41016955105fb281b9419743d13ed649384ab88
[]
no_license
pmret/papermario
8b514b19653cef8d6145e47499b3636b8c474a37
9774b26d93f1045dd2a67e502b6efc9599fb6c31
refs/heads/main
2023-08-31T07:09:48.951514
2023-08-21T18:07:08
2023-08-21T18:07:08
287,151,133
904
139
null
2023-09-14T02:44:23
2020-08-13T01:22:57
C
UTF-8
C
false
false
665
c
trd_01_0_header.c
#include "trd_01.h" extern EvtScript N(EVS_Main); EntryList N(Entrances) = { [trd_01_ENTRY_0] { -310.0, 0.0, 0.0, 90.0 }, [trd_01_ENTRY_1] { 310.0, 0.0, 0.0, 270.0 }, [trd_01_ENTRY_2] { 310.0, 220.0, 0.0, 270.0 }, [trd_01_ENTRY_3] { 310.0, 520.0, 0.0, 270.0 }, }; MapSettings N(settings) = { .main = &N(EVS_Main), .entryList = &N(Entrances), .entryCount = ENTRY_COUNT(N(Entrances)), .tattle = { MSG_MapTattle_trd_01 }, }; EvtScript N(EVS_SetupMusic) = { EVT_CALL(SetMusicTrack, 0, SONG_KOOPA_FORTRESS, 0, 8) EVT_CALL(UseDoorSounds, DOOR_SOUNDS_METAL) EVT_RETURN EVT_END };
5bd6faa064d01e7897bb5db9ae88ea4d8778282f
eecd5e4c50d8b78a769bcc2675250576bed34066
/src/dm/impls/plex/tests/ex40.c
3899fb3aac572ff7e74eb42e690fcfbc666915ee
[ "BSD-2-Clause" ]
permissive
petsc/petsc
3b1a04fea71858e0292f9fd4d04ea11618c50969
9c5460f9064ca60dd71a234a1f6faf93e7a6b0c9
refs/heads/main
2023-08-17T20:51:16.507070
2023-08-17T16:08:06
2023-08-17T16:08:06
8,691,401
341
169
NOASSERTION
2023-03-29T11:02:58
2013-03-10T20:55:21
C
UTF-8
C
false
false
5,084
c
ex40.c
static const char help[] = "Tests for Plex transforms, including regular refinement"; #include <petscdmplex.h> #include <petscsf.h> #include <petsc/private/dmpleximpl.h> static PetscErrorCode LabelPoints(DM dm) { DMLabel label; PetscInt pStart, pEnd, p; PetscBool flg = PETSC_FALSE; PetscFunctionBegin; PetscCall(PetscOptionsGetBool(NULL, NULL, "-label_mesh", &flg, NULL)); if (!flg) PetscFunctionReturn(PETSC_SUCCESS); PetscCall(DMCreateLabel(dm, "test")); PetscCall(DMGetLabel(dm, "test", &label)); PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(label, p, p)); PetscFunctionReturn(PETSC_SUCCESS); } static PetscErrorCode CreateMesh(MPI_Comm comm, DM *dm) { PetscFunctionBegin; PetscCall(DMCreate(comm, dm)); PetscCall(DMSetType(*dm, DMPLEX)); PetscCall(DMSetFromOptions(*dm)); PetscCall(LabelPoints(*dm)); PetscCall(PetscObjectSetOptionsPrefix((PetscObject)*dm, "post_label_")); PetscCall(DMPlexDistributeSetDefault(*dm, PETSC_FALSE)); PetscCall(DMSetFromOptions(*dm)); PetscCall(PetscObjectSetOptionsPrefix((PetscObject)*dm, NULL)); PetscCall(DMViewFromOptions(*dm, NULL, "-dm_view")); PetscFunctionReturn(PETSC_SUCCESS); } int main(int argc, char **argv) { DM dm; PetscFunctionBeginUser; PetscCall(PetscInitialize(&argc, &argv, NULL, help)); PetscCall(CreateMesh(PETSC_COMM_WORLD, &dm)); PetscCall(DMDestroy(&dm)); PetscCall(PetscFinalize()); return 0; } /*TEST test: suffix: ref_seg args: -dm_plex_reference_cell_domain -dm_plex_cell segment -dm_refine 1 -dm_plex_check_all test: suffix: ref_tri args: -dm_plex_reference_cell_domain -dm_plex_cell triangle -dm_refine 2 -dm_plex_check_all test: suffix: box_tri requires: triangle parmetis nsize: {{1 3 5}} args: -dm_plex_box_faces 3,3 -dm_refine 2 -dm_plex_check_all -petscpartitioner_type parmetis test: suffix: ref_quad args: -dm_plex_reference_cell_domain -dm_plex_cell quadrilateral -dm_refine 2 -dm_plex_check_all test: suffix: box_quad nsize: {{1 3 5}} requires: parmetis args: -dm_plex_box_faces 3,3 -dm_plex_simplex 0 -dm_refine 2 -dm_plex_check_all -petscpartitioner_type parmetis test: suffix: box_quad_label args: -dm_plex_box_faces 3,3 -dm_plex_simplex 0 -dm_refine 2 -dm_plex_check_all -dm_plex_transform_label_match_strata {{0 1}separate output} -dm_view test: suffix: ref_tet args: -dm_plex_reference_cell_domain -dm_plex_cell tetrahedron -dm_refine 2 -dm_plex_check_all test: suffix: box_tet requires: ctetgen parmetis nsize: {{1 3 5}} args: -dm_plex_dim 3 -dm_plex_box_faces 3,3,3 -dm_refine 2 -dm_plex_check_all -petscpartitioner_type parmetis test: suffix: ref_hex args: -dm_plex_reference_cell_domain -dm_plex_cell hexahedron -dm_refine 2 -dm_plex_check_all test: suffix: box_hex requires: parmetis nsize: {{1 3 5}} args: -dm_plex_dim 3 -dm_plex_box_faces 3,3,3 -dm_plex_simplex 0 -dm_refine 2 -dm_plex_check_all -petscpartitioner_type parmetis test: suffix: ref_trip args: -dm_plex_reference_cell_domain -dm_plex_cell triangular_prism -dm_refine 2 -dm_plex_check_all test: suffix: ref_tquad args: -dm_plex_reference_cell_domain -dm_plex_cell tensor_quad -dm_refine 2 -dm_plex_check_all test: suffix: ref_ttrip args: -dm_plex_reference_cell_domain -dm_plex_cell tensor_triangular_prism -dm_refine 2 -dm_plex_check_all test: suffix: ref_tquadp args: -dm_plex_reference_cell_domain -dm_plex_cell tensor_quadrilateral_prism -dm_refine 2 -dm_plex_check_all test: suffix: ref_pyramid args: -dm_plex_reference_cell_domain -dm_plex_cell pyramid -dm_refine 2 -dm_plex_check_all testset: args: -dm_coord_space 0 -dm_plex_transform_type refine_tobox -dm_plex_check_all test: suffix: ref_tri_tobox args: -dm_plex_reference_cell_domain -dm_plex_cell triangle -dm_refine 2 test: suffix: box_tri_tobox requires: triangle parmetis nsize: {{1 3 5}} args: -dm_plex_box_faces 3,3 -dm_refine 2 -petscpartitioner_type parmetis test: suffix: ref_tet_tobox args: -dm_plex_reference_cell_domain -dm_plex_cell tetrahedron -dm_refine 2 test: suffix: box_tet_tobox requires: ctetgen parmetis nsize: {{1 3 5}} args: -dm_plex_dim 3 -dm_plex_box_faces 3,3,3 -dm_refine 2 -petscpartitioner_type parmetis test: suffix: ref_trip_tobox args: -dm_plex_reference_cell_domain -dm_plex_cell triangular_prism -dm_refine 2 test: suffix: ref_ttrip_tobox args: -dm_plex_reference_cell_domain -dm_plex_cell tensor_triangular_prism -dm_refine 2 test: suffix: ref_tquadp_tobox args: -dm_plex_reference_cell_domain -dm_plex_cell tensor_quadrilateral_prism -dm_refine 2 testset: args: -dm_coord_space 0 -label_mesh -post_label_dm_extrude 2 -post_label_dm_plex_check_all -dm_view ::ascii_info_detail test: suffix: extrude_quad args: -dm_plex_simplex 0 TEST*/
ae7a20d3554e06caa44b35f1d7f212586b0b8892
ea49dd7d31d2e0b65ce6aadf1274f3bb70abfaf9
/problems/0007_Reverse_Integer/jacklynd.c
54b97d88d2d26e6e0bb87f14cd415f9dfe7601e3
[]
no_license
yychuyu/LeetCode
907a3d7d67ada9714e86103ac96422381e75d683
48384483a55e120caf5d8d353e9aa287fce3cf4a
refs/heads/master
2020-03-30T15:02:12.492378
2019-06-19T01:52:45
2019-06-19T01:52:45
151,345,944
134
331
null
2019-08-01T02:56:10
2018-10-03T01:26:28
C++
UTF-8
C
false
false
557
c
jacklynd.c
class Solution { public: int reverse(int x) { int flog1 = 0x7fffffff; int flog2 = (int)0x80000000; int rev=0; int temp; while(x!=0){ temp=x%10; x=x/10; if(rev>flog1/10||(rev==flog1/10)&& temp>7) return 0; //本题以数学方法进行屏蔽溢出情况,常见堆栈处理对于这种简单问题的适用可能耗时更长,资源耗用更多。 if(rev<flog2/10||(rev==flog2/10 && temp<-8)) return 0; rev=rev*10+temp; } return rev; } };
4e64e6597dfed2120ffed35c1b0e71967afa3bb5
aa3befea459382dc5c01c925653d54f435b3fb0f
/drivers/video/vnc/vnc_server.h
26af7ca2a744b495b7ddfa0e1aaecbdaec246242
[ "MIT-open-group", "BSD-3-Clause", "HPND-sell-variant", "BSD-4-Clause-UC", "LicenseRef-scancode-warranty-disclaimer", "MIT-0", "LicenseRef-scancode-bsd-atmel", "LicenseRef-scancode-gary-s-brown", "LicenseRef-scancode-proprietary-license", "SunPro", "MIT", "LicenseRef-scancode-public-domain-disclaimer", "LicenseRef-scancode-other-permissive", "HPND", "ISC", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "GPL-1.0-or-later", "CC-BY-2.0", "CC-BY-4.0" ]
permissive
apache/nuttx
14519a7bff4a87935d94fb8fb2b19edb501c7cec
606b6d9310fb25c7d92c6f95bf61737e3c79fa0f
refs/heads/master
2023-08-25T06:55:45.822534
2023-08-23T16:03:31
2023-08-24T21:25:47
228,103,273
407
241
Apache-2.0
2023-09-14T18:26:05
2019-12-14T23:27:55
C
UTF-8
C
false
false
20,962
h
vnc_server.h
/**************************************************************************** * drivers/video/vnc/vnc_server.h * * 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 Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. * ****************************************************************************/ #ifndef __DRIVERS_VIDEO_VNC_VNC_SERVER_H #define __DRIVERS_VIDEO_VNC_VNC_SERVER_H /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <stdint.h> #include <sys/param.h> #include <pthread.h> #include <nuttx/queue.h> #include <nuttx/video/fb.h> #include <nuttx/video/rfb.h> #include <nuttx/video/vnc.h> #include <nuttx/input/touchscreen.h> #include <nuttx/input/keyboard.h> #include <nuttx/net/net.h> #include <nuttx/semaphore.h> /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /* Configuration */ #if !defined(CONFIG_VNCSERVER_PROTO3p3) && !defined(CONFIG_VNCSERVER_PROTO3p8) # error No VNC protocol selected #endif #if defined(CONFIG_VNCSERVER_PROTO3p3) && defined(CONFIG_VNCSERVER_PROTO3p8) # error Too many VNC protocols selected #endif #ifndef CONFIG_VNCSERVER_NDISPLAYS # define CONFIG_VNCSERVER_NDISPLAYS 1 #endif #if defined(CONFIG_VNCSERVER_COLORFMT_RGB8) # define RFB_COLORFMT FB_FMT_RGB8_332 # define RFB_BITSPERPIXEL 8 # define RFB_PIXELDEPTH 8 # define RFB_TRUECOLOR 1 # define RFB_RMAX 0x07 # define RFB_GMAX 0x07 # define RFB_BMAX 0x03 # define RFB_RSHIFT 5 # define RFB_GSHIFT 2 # define RFB_BSHIFT 0 #elif defined(CONFIG_VNCSERVER_COLORFMT_RGB16) # define RFB_COLORFMT FB_FMT_RGB16_565 # define RFB_BITSPERPIXEL 16 # define RFB_PIXELDEPTH 16 # define RFB_TRUECOLOR 1 # define RFB_RMAX 0x001f # define RFB_GMAX 0x003f # define RFB_BMAX 0x001f # define RFB_RSHIFT 11 # define RFB_GSHIFT 5 # define RFB_BSHIFT 0 #elif defined(CONFIG_VNCSERVER_COLORFMT_RGB32) # define RFB_COLORFMT FB_FMT_RGB32 # define RFB_BITSPERPIXEL 32 # define RFB_PIXELDEPTH 24 # define RFB_TRUECOLOR 1 # define RFB_RMAX 0x000000ff # define RFB_GMAX 0x000000ff # define RFB_BMAX 0x000000ff # define RFB_RSHIFT 16 # define RFB_GSHIFT 8 # define RFB_BSHIFT 0 #else # error Unspecified/unsupported color format #endif #ifndef CONFIG_VNCSERVER_SCREENWIDTH # define CONFIG_VNCSERVER_SCREENWIDTH 320 #endif #ifndef CONFIG_VNCSERVER_SCREENHEIGHT # define CONFIG_VNCSERVER_SCREENHEIGHT 240 #endif #ifndef CONFIG_VNCSERVER_NAME # define CONFIG_VNCSERVER_NAME "NuttX" #endif #ifndef CONFIG_VNCSERVER_PRIO # define CONFIG_VNCSERVER_PRIO 100 #endif #ifndef CONFIG_VNCSERVER_STACKSIZE # define CONFIG_VNCSERVER_STACKSIZE 2048 #endif #ifndef CONFIG_VNCSERVER_UPDATER_PRIO # define CONFIG_VNCSERVER_UPDATER_PRIO 100 #endif #ifndef CONFIG_VNCSERVER_UPDATER_STACKSIZE # define CONFIG_VNCSERVER_UPDATER_STACKSIZE 2048 #endif #ifndef CONFIG_VNCSERVER_INBUFFER_SIZE # define CONFIG_VNCSERVER_INBUFFER_SIZE 80 #endif #ifndef CONFIG_VNCSERVER_NUPDATES # define CONFIG_VNCSERVER_NUPDATES 48 #endif #ifndef CONFIG_VNCSERVER_UPDATE_BUFSIZE # define CONFIG_VNCSERVER_UPDATE_BUFSIZE 4096 #endif #define VNCSERVER_UPDATE_BUFSIZE \ (CONFIG_VNCSERVER_UPDATE_BUFSIZE + SIZEOF_RFB_FRAMEBUFFERUPDATE_S(0)) /* Local framebuffer characteristics in bytes */ #define RFB_BYTESPERPIXEL ((RFB_BITSPERPIXEL + 7) >> 3) #define RFB_STRIDE (RFB_BYTESPERPIXEL * CONFIG_VNCSERVER_SCREENWIDTH) #define RFB_SIZE (RFB_STRIDE * CONFIG_VNCSERVER_SCREENHEIGHT) /* RFB Port Number */ #define RFB_PORT_BASE 5900 #define RFB_MAX_DISPLAYS CONFIG_VNCSERVER_NDISPLAYS #define RFB_DISPLAY_PORT(d) (RFB_PORT_BASE + (d)) /* Debug */ #ifdef CONFIG_VNCSERVER_UPDATE_DEBUG # define upderr _err # define updwarn _warn # define updinfo _info #else # define upderr _none # define updwarn _none # define updinfo _none #endif /**************************************************************************** * Public Types ****************************************************************************/ /* This enumeration indicates the state of the VNC server */ enum vnc_server_e { VNCSERVER_UNINITIALIZED = 0, /* Initial state */ VNCSERVER_INITIALIZED, /* State structured initialized, but not connected */ VNCSERVER_CONNECTED, /* Connect to a client, but not yet configured */ VNCSERVER_CONFIGURED, /* Configured and ready to transfer graphics */ VNCSERVER_RUNNING, /* Running and actively transferring graphics */ VNCSERVER_STOPPING, /* The updater has been asked to stop */ VNCSERVER_STOPPED /* The updater has stopped */ }; /* This structure is used to queue FrameBufferUpdate event. It includes a * pointer to support singly linked list. */ struct vnc_fbupdate_s { FAR struct vnc_fbupdate_s *flink; bool whupd; /* True: whole screen update */ struct fb_area_s rect; /* The enqueued update rectangle */ }; struct vnc_session_s { /* Connection data */ struct socket listen; /* Listen socket */ struct socket connect; /* Connected socket */ volatile uint8_t state; /* See enum vnc_server_e */ volatile uint8_t nwhupd; /* Number of whole screen updates queued */ volatile bool change; /* True: Frambebuffer data change since last whole screen update */ /* Display geometry and color characteristics */ uint8_t display; /* Display number (for debug) */ volatile uint8_t colorfmt; /* Remote color format (See include/nuttx/fb.h) */ volatile uint8_t bpp; /* Remote bits per pixel */ volatile bool bigendian; /* True: Remote expect data in big-endian format */ volatile bool rre; /* True: Remote supports RRE encoding */ FAR uint8_t *fb; /* Allocated local frame buffer */ /* VNC client input support */ vnc_kbdout_t kbdout; /* Callout when keyboard input is received */ vnc_mouseout_t mouseout; /* Callout when keyboard input is received */ FAR void *arg; /* Argument that accompanies the callouts */ #ifdef CONFIG_VNCSERVER_TOUCH struct touch_lowerhalf_s touch; /* Touch driver instance */ #endif #ifdef CONFIG_VNCSERVER_KBD struct keyboard_lowerhalf_s kbd; /* Keyboard driver instance */ #endif /* Updater information */ pthread_t updater; /* Updater thread ID */ /* Update list information */ struct vnc_fbupdate_s updpool[CONFIG_VNCSERVER_NUPDATES]; sq_queue_t updfree; sq_queue_t updqueue; sem_t freesem; sem_t queuesem; #ifdef CONFIG_FB_SYNC sem_t vsyncsem; #endif /* I/O buffers for misc network send/receive */ uint8_t inbuf[CONFIG_VNCSERVER_INBUFFER_SIZE]; uint8_t outbuf[VNCSERVER_UPDATE_BUFSIZE]; }; /* This structure is used to communicate start-up status between the server * the framebuffer driver. */ struct fb_startup_s { sem_t fbinit; /* Wait for session creation */ int16_t result; /* OK: successfully initialized */ }; /* The size of the color type in the local framebuffer */ #if defined(CONFIG_VNCSERVER_COLORFMT_RGB8) typedef uint8_t lfb_color_t; #elif defined(CONFIG_VNCSERVER_COLORFMT_RGB16) typedef uint16_t lfb_color_t; #elif defined(CONFIG_VNCSERVER_COLORFMT_RGB32) typedef uint32_t lfb_color_t; #else # error Unspecified/unsupported color format #endif /* Color conversion function pointer types */ typedef CODE uint8_t (*vnc_convert8_t) (lfb_color_t rgb); typedef CODE uint16_t (*vnc_convert16_t)(lfb_color_t rgb); typedef CODE uint32_t (*vnc_convert32_t)(lfb_color_t rgb); /**************************************************************************** * Public Data ****************************************************************************/ #ifdef __cplusplus #define EXTERN extern "C" extern "C" { #else #define EXTERN extern #endif /* Given a display number as an index, the following array can be used to * look-up the session structure for that display. */ EXTERN FAR struct vnc_session_s *g_vnc_sessions[RFB_MAX_DISPLAYS]; /* Used to synchronize the server thread with the framebuffer driver. */ EXTERN struct fb_startup_s g_fbstartup[RFB_MAX_DISPLAYS]; /**************************************************************************** * Public Function Prototypes ****************************************************************************/ /**************************************************************************** * Name: vnc_server * * Description: * The VNC server daemon. This daemon is implemented as a kernel thread. * * Input Parameters: * Standard kernel thread arguments (all ignored) * * Returned Value: * This function does not return. * ****************************************************************************/ int vnc_server(int argc, FAR char *argv[]); /**************************************************************************** * Name: vnc_negotiate * * Description: * Perform the VNC initialization sequence after the client has successfully * connected to the server. Negotiate security, framebuffer and color * properties. * * Input Parameters: * session - An instance of the session structure. * * Returned Value: * Returns zero (OK) on success; a negated errno value on failure. * ****************************************************************************/ int vnc_negotiate(FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_client_pixelformat * * Description: * A Client-to-Sever SetPixelFormat message has been received. We need to * immediately switch the output color format that we generate. * * Input Parameters: * session - An instance of the session structure. * pixelfmt - The pixel from the received SetPixelFormat message * * Returned Value: * Returns zero (OK) on success; a negated errno value on failure. * ****************************************************************************/ int vnc_client_pixelformat(FAR struct vnc_session_s *session, FAR struct rfb_pixelfmt_s *pixelfmt); /**************************************************************************** * Name: vnc_client_encodings * * Description: * Pick out any mutually supported encodings from the Client-to-Server * SetEncodings message * * Input Parameters: * session - An instance of the session structure. * encodings - The received SetEncodings message * * Returned Value: * At present, always returns OK * ****************************************************************************/ int vnc_client_encodings(FAR struct vnc_session_s *session, FAR struct rfb_setencodings_s *encodings); /**************************************************************************** * Name: vnc_start_updater * * Description: * Start the updater thread * * Input Parameters: * session - An instance of the session structure. * * Returned Value: * Zero (OK) is returned on success; a negated errno value is returned on * any failure. * ****************************************************************************/ int vnc_start_updater(FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_stop_updater * * Description: * Stop the updater thread * * Input Parameters: * session - An instance of the session structure. * * Returned Value: * Zero (OK) is returned on success; a negated errno value is returned on * any failure. * ****************************************************************************/ int vnc_stop_updater(FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_update_rectangle * * Description: * Queue an update of the specified rectangular region on the display. * * Input Parameters: * session - An instance of the session structure. * rect - The rectanglular region to be updated. * change - True: Frame buffer data has changed * * Returned Value: * Zero (OK) is returned on success; a negated errno value is returned on * any failure. * ****************************************************************************/ int vnc_update_rectangle(FAR struct vnc_session_s *session, FAR const struct fb_area_s *rect, bool change); /**************************************************************************** * Name: vnc_receiver * * Description: * This function handles all Client-to-Server messages. * * Input Parameters: * session - An instance of the session structure. * * Returned Value: * At present, always returns OK * ****************************************************************************/ int vnc_receiver(FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_rre * * Description: * This function does not really do RRE encoding. It just checks if the * update region is one color then uses the RRE encoding format to send * the constant color rectangle. * * Input Parameters: * session - An instance of the session structure. * rect - Describes the rectangle in the local framebuffer. * * Returned Value: * Zero is returned if RRE coding was not performed (but not error was) * encountered. Otherwise, the size of the framebuffer update message * is returned on success or a negated errno value is returned on failure * that indicates the nature of the failure. A failure is only * returned in cases of a network failure and unexpected internal failures. * ****************************************************************************/ int vnc_rre(FAR struct vnc_session_s *session, FAR struct fb_area_s *rect); /**************************************************************************** * Name: vnc_raw * * Description: * As a fallback, send the framebuffer update using the RAW encoding which * must be supported by all VNC clients. * * Input Parameters: * session - An instance of the session structure. * rect - Describes the rectangle in the local framebuffer. * * Returned Value: * Zero (OK) on success; A negated errno value is returned on failure that * indicates the nature of the failure. A failure is only returned * in cases of a network failure and unexpected internal failures. * ****************************************************************************/ int vnc_raw(FAR struct vnc_session_s *session, FAR struct fb_area_s *rect); /**************************************************************************** * Name: vnc_key_map * * Description: * Map the receive X11 keysym into something understood by NuttX and route * that through NX to the appropriate window. * * Input Parameters: * session - An instance of the session structure. * keysym - The X11 keysym value (see include/nuttx/inputx11_keysymdef) * keydown - True: Key pressed; False: Key released * * Returned Value: * None * ****************************************************************************/ void vnc_key_map(FAR struct vnc_session_s *session, uint16_t keysym, bool keydown); #ifdef CONFIG_VNCSERVER_TOUCH /**************************************************************************** * Name: vnc_touch_register * * Description: * Register touch device to fetch touch event from VNC client. * * Returned Value: * Driver instance * ****************************************************************************/ int vnc_touch_register(FAR const char *devpath, FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_touch_register * * Description: * Unregister touch device. * ****************************************************************************/ void vnc_touch_unregister(FAR struct vnc_session_s *session, FAR const char *devpath); /**************************************************************************** * Name: vnc_touch_event * * Description: * Report a touch event from vnc client. * ****************************************************************************/ int vnc_touch_event(FAR void *arg, int16_t x, int16_t y, uint8_t buttons); #endif #ifdef CONFIG_VNCSERVER_KBD /**************************************************************************** * Name: vnc_kbd_register * * Description: * Register keyboard device to fetch keyboard event from VNC client. * * Returned Value: * Driver instance * ****************************************************************************/ int vnc_kbd_register(FAR const char *devpath, FAR struct vnc_session_s *session); /**************************************************************************** * Name: vnc_kbd_register * * Description: * Unregister keyboard device. * ****************************************************************************/ void vnc_kbd_unregister(FAR struct vnc_session_s *session, FAR const char *devpath); /**************************************************************************** * Name: vnc_kbd_event * * Description: * Report a keyboard event from vnc client. * Same prototype with vnc_kbdout_t but different semantics * (to pass raw keycode). * ****************************************************************************/ int vnc_kbd_event(FAR void *arg, uint8_t pressed, FAR const uint8_t *keycode); #endif /**************************************************************************** * Name: vnc_convert_rgbNN * * Description: * Convert the native framebuffer color format (either RGB8 3:3:2, * RGB16 5:6:5, or RGB32 8:8:8) to the remote framebuffer color format * (either RGB8 2:2:2, RGB8 3:3:2, RGB16 5:5:5, RGB16 5:6:5, or RGB32 * 8:8:8) * * Input Parameters: * pixel - The src color in local framebuffer format. * * Returned Value: * The pixel in the remote framebuffer color format. * ****************************************************************************/ uint8_t vnc_convert_rgb8_222(lfb_color_t rgb); uint8_t vnc_convert_rgb8_332(lfb_color_t rgb); uint16_t vnc_convert_rgb16_555(lfb_color_t rgb); uint16_t vnc_convert_rgb16_565(lfb_color_t rgb); uint32_t vnc_convert_rgb32_888(lfb_color_t rgb); /**************************************************************************** * Name: vnc_colors * * Description: * Test the update rectangle to see if it contains complex colors. If it * contains only a few colors, then it may be a candidate for some type * run-length encoding. * * Input Parameters: * session - An instance of the session structure. * rect - The update region in the local frame buffer. * maxcolors - The maximum number of colors that should be returned. This * currently cannot exceed eight. * colors - The top 'maxcolors' most frequency colors are returned. * * Returned Value: * The number of valid colors in the colors[] array are returned, the * first entry being the most frequent. A negated errno value is returned * if the colors cannot be determined. This would be the case if the color * depth is > 8 and there are more than 'maxcolors' colors in the update * rectangle. * ****************************************************************************/ int vnc_colors(FAR struct vnc_session_s *session, FAR struct fb_area_s *rect, unsigned int maxcolors, FAR lfb_color_t *colors); #undef EXTERN #ifdef __cplusplus } #endif #endif /* __DRIVERS_VIDEO_VNC_VNC_SERVER_H */
8b167b68587bf623cf6b62a71097ec96adb52ab7
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
/lib/libc/include/any-windows-any/svrapi.h
34b506b9fbf7c2b14ff2f7a256f2827466866326
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
ziglang/zig
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
refs/heads/master
2023-08-31T13:16:45.980913
2023-08-31T05:50:29
2023-08-31T05:50:29
40,276,274
25,560
2,399
MIT
2023-09-14T21:09:50
2015-08-06T00:51:28
Zig
UTF-8
C
false
false
13,779
h
svrapi.h
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef SVRAPI_INCLUDED #define SVRAPI_INCLUDED #include <lmcons.h> #include <lmerr.h> #ifndef RC_INVOKED #pragma pack(1) #endif #ifdef __cplusplus extern "C" { #endif #ifndef _SVRAPI_ #define API_FUNCTION DECLSPEC_IMPORT API_RET_TYPE WINAPI #else #define API_FUNCTION API_RET_TYPE WINAPI #endif extern API_FUNCTION NetAccessAdd(const char *pszServer,short sLevel,char *pbBuffer,unsigned short cbBuffer); extern API_FUNCTION NetAccessCheck (char *pszReserved,char *pszUserName,char *pszResource,unsigned short usOperation,unsigned short *pusResult); extern API_FUNCTION NetAccessDel(const char *pszServer,char *pszResource); extern API_FUNCTION NetAccessEnum(const char *pszServer,char *pszBasePath,short fsRecursive,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcEntriesRead,unsigned short *pcTotalAvail); extern API_FUNCTION NetAccessGetInfo(const char *pszServer,char *pszResource,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcbTotalAvail); extern API_FUNCTION NetAccessSetInfo(const char *pszServer,char *pszResource,short sLevel,char *pbBuffer,unsigned short cbBuffer,short sParmNum); extern API_FUNCTION NetAccessGetUserPerms (char *pszServer,char *pszUgName,char *pszResource,unsigned short *pusPerms); struct access_list { char acl_ugname[LM20_UNLEN+1]; char acl_ugname_pad_1; short acl_access; }; struct access_list_2 { char *acl2_ugname; unsigned short acl2_access; }; struct access_list_12 { char *acl12_ugname; unsigned short acl12_access; }; struct access_info_0 { char *acc0_resource_name; }; struct access_info_1 { char *acc1_resource_name; short acc1_attr; short acc1_count; }; struct access_info_2 { char *acc2_resource_name; short acc2_attr; short acc2_count; }; struct access_info_10 { char *acc10_resource_name; }; struct access_info_12 { char *acc12_resource_name; short acc12_attr; short acc12_count; }; #define MAXPERMENTRIES 64 #define ACCESS_NONE 0 #define ACCESS_ALL (ACCESS_READ|ACCESS_WRITE|ACCESS_CREATE|ACCESS_EXEC|ACCESS_DELETE|ACCESS_ATRIB|ACCESS_PERM|ACCESS_FINDFIRST) #define ACCESS_READ 0x1 #define ACCESS_WRITE 0x2 #define ACCESS_CREATE 0x4 #define ACCESS_EXEC 0x8 #define ACCESS_DELETE 0x10 #define ACCESS_ATRIB 0x20 #define ACCESS_PERM 0x40 #define ACCESS_FINDFIRST 0x80 #define ACCESS_GROUP 0x8000 #define ACCESS_AUDIT 0x1 #define ACCESS_ATTR_PARMNUM 2 #define ACCESS_LETTERS "RWCXDAP " extern API_FUNCTION NetShareAdd(const char *pszServer,short sLevel,const char *pbBuffer,unsigned short cbBuffer); extern API_FUNCTION NetShareDel(const char *pszServer,const char *pszNetName,unsigned short usReserved); extern API_FUNCTION NetShareEnum(const char *pszServer,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcEntriesRead,unsigned short *pcTotalAvail); extern API_FUNCTION NetShareGetInfo(const char *pszServer,const char *pszNetName,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcbTotalAvail); extern API_FUNCTION NetShareSetInfo(const char *pszServer,const char *pszNetName,short sLevel,const char *pbBuffer,unsigned short cbBuffer,short sParmNum); struct share_info_0 { char shi0_netname[LM20_NNLEN+1]; }; struct share_info_1 { char shi1_netname[LM20_NNLEN+1]; char shi1_pad1; unsigned short shi1_type; char *shi1_remark; }; struct share_info_2 { char shi2_netname[LM20_NNLEN+1]; char shi2_pad1; unsigned short shi2_type; char *shi2_remark; unsigned short shi2_permissions; unsigned short shi2_max_uses; unsigned short shi2_current_uses; char *shi2_path; char shi2_passwd[SHPWLEN+1]; char shi2_pad2; }; struct share_info_50 { char shi50_netname[LM20_NNLEN+1]; unsigned char shi50_type; unsigned short shi50_flags; char *shi50_remark; char *shi50_path; char shi50_rw_password[SHPWLEN+1]; char shi50_ro_password[SHPWLEN+1]; }; #define SHI50F_RDONLY 0x0001 #define SHI50F_FULL 0x0002 #define SHI50F_DEPENDSON (SHI50F_RDONLY|SHI50F_FULL) #define SHI50F_ACCESSMASK (SHI50F_RDONLY|SHI50F_FULL) #define SHI50F_PERSIST 0x0100 #define SHI50F_SYSTEM 0x0200 #ifndef PARMNUM_ALL #define PARMNUM_ALL 0 #endif #define SHI_REMARK_PARMNUM 4 #define SHI_PERMISSIONS_PARMNUM 5 #define SHI_MAX_USES_PARMNUM 6 #define SHI_PASSWD_PARMNUM 9 #define SHI1_NUM_ELEMENTS 4 #define SHI2_NUM_ELEMENTS 10 #define STYPE_DISKTREE 0 #define STYPE_PRINTQ 1 #define STYPE_DEVICE 2 #define STYPE_IPC 3 #define SHI_USES_UNLIMITED -1 extern API_FUNCTION NetSessionDel(const char *pszServer,const char *pszClientName,short sReserved); extern API_FUNCTION NetSessionEnum(const char *pszServer,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcEntriesRead,unsigned short *pcTotalAvail); extern API_FUNCTION NetSessionGetInfo(const char *pszServer,const char *pszClientName,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcbTotalAvail); struct session_info_0 { char *sesi0_cname; }; struct session_info_1 { char *sesi1_cname; char *sesi1_username; unsigned short sesi1_num_conns; unsigned short sesi1_num_opens; unsigned short sesi1_num_users; unsigned __LONG32 sesi1_time; unsigned __LONG32 sesi1_idle_time; unsigned __LONG32 sesi1_user_flags; }; struct session_info_2 { char *sesi2_cname; char *sesi2_username; unsigned short sesi2_num_conns; unsigned short sesi2_num_opens; unsigned short sesi2_num_users; unsigned __LONG32 sesi2_time; unsigned __LONG32 sesi2_idle_time; unsigned __LONG32 sesi2_user_flags; char *sesi2_cltype_name; }; struct session_info_10 { char *sesi10_cname; char *sesi10_username; unsigned __LONG32 sesi10_time; unsigned __LONG32 sesi10_idle_time; }; struct session_info_50 { char *sesi50_cname; char *sesi50_username; unsigned __LONG32 sesi50_key; unsigned short sesi50_num_conns; unsigned short sesi50_num_opens; unsigned __LONG32 sesi50_time; unsigned __LONG32 sesi50_idle_time; unsigned char sesi50_protocol; unsigned char pad1; }; #define SESS_GUEST 1 #define SESS_NOENCRYPTION 2 #define SESI1_NUM_ELEMENTS 8 #define SESI2_NUM_ELEMENTS 9 extern API_FUNCTION NetConnectionEnum(const char *pszServer,const char *pszQualifier,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcEntriesRead,unsigned short *pcTotalAvail); struct connection_info_0 { unsigned short coni0_id; }; struct connection_info_1 { unsigned short coni1_id; unsigned short coni1_type; unsigned short coni1_num_opens; unsigned short coni1_num_users; unsigned __LONG32 coni1_time; char *coni1_username; char *coni1_netname; }; struct connection_info_50 { unsigned short coni50_type; unsigned short coni50_num_opens; unsigned __LONG32 coni50_time; char *coni50_netname; char *coni50_username; }; extern API_FUNCTION NetFileClose2(const char *pszServer,unsigned __LONG32 ulFileId); extern API_FUNCTION NetFileEnum(const char *pszServer,const char *pszBasePath,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcEntriesRead,unsigned short *pcTotalAvail); struct file_info_0 { unsigned short fi0_id; }; struct file_info_1 { unsigned short fi1_id; unsigned short fi1_permissions; unsigned short fi1_num_locks; char *fi1_pathname; char *fi1_username; }; struct file_info_2 { unsigned __LONG32 fi2_id; }; struct file_info_3 { unsigned __LONG32 fi3_id; unsigned short fi3_permissions; unsigned short fi3_num_locks; char *fi3_pathname; char *fi3_username; }; struct file_info_50 { unsigned __LONG32 fi50_id; unsigned short fi50_permissions; unsigned short fi50_num_locks; char *fi50_pathname; char *fi50_username; char *fi50_sharename; }; struct res_file_enum_2 { unsigned short res_pad; unsigned short res_fs; unsigned __LONG32 res_pro; }; #define PERM_FILE_READ 0x1 #define PERM_FILE_WRITE 0x2 #define PERM_FILE_CREATE 0x4 typedef struct res_file_enum_2 FRK; #define FRK_INIT(f) { (f).res_pad = 0; (f).res_fs = 0; (f).res_pro = 0; } extern API_FUNCTION NetServerGetInfo(const char *pszServer,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcbTotalAvail); struct server_info_0 { char sv0_name[CNLEN + 1]; }; struct server_info_1 { char sv1_name[CNLEN + 1]; unsigned char sv1_version_major; unsigned char sv1_version_minor; unsigned __LONG32 sv1_type; char *sv1_comment; }; struct server_info_50 { char sv50_name[CNLEN + 1]; unsigned char sv50_version_major; unsigned char sv50_version_minor; unsigned __LONG32 sv50_type; char *sv50_comment; unsigned short sv50_security; unsigned short sv50_auditing; char *sv50_container; char *sv50_ab_server; char *sv50_ab_dll; }; struct server_info_2 { char sv2_name[CNLEN + 1]; unsigned char sv2_version_major; unsigned char sv2_version_minor; unsigned __LONG32 sv2_type; char *sv2_comment; unsigned __LONG32 sv2_ulist_mtime; unsigned __LONG32 sv2_glist_mtime; unsigned __LONG32 sv2_alist_mtime; unsigned short sv2_users; unsigned short sv2_disc; char *sv2_alerts; unsigned short sv2_security; unsigned short sv2_auditing; unsigned short sv2_numadmin; unsigned short sv2_lanmask; unsigned short sv2_hidden; unsigned short sv2_announce; unsigned short sv2_anndelta; char sv2_guestacct[LM20_UNLEN + 1]; unsigned char sv2_pad1; char *sv2_userpath; unsigned short sv2_chdevs; unsigned short sv2_chdevq; unsigned short sv2_chdevjobs; unsigned short sv2_connections; unsigned short sv2_shares; unsigned short sv2_openfiles; unsigned short sv2_sessopens; unsigned short sv2_sessvcs; unsigned short sv2_sessreqs; unsigned short sv2_opensearch; unsigned short sv2_activelocks; unsigned short sv2_numreqbuf; unsigned short sv2_sizreqbuf; unsigned short sv2_numbigbuf; unsigned short sv2_numfiletasks; unsigned short sv2_alertsched; unsigned short sv2_erroralert; unsigned short sv2_logonalert; unsigned short sv2_accessalert; unsigned short sv2_diskalert; unsigned short sv2_netioalert; unsigned short sv2_maxauditsz; char *sv2_srvheuristics; }; struct server_info_3 { char sv3_name[CNLEN + 1]; unsigned char sv3_version_major; unsigned char sv3_version_minor; unsigned __LONG32 sv3_type; char *sv3_comment; unsigned __LONG32 sv3_ulist_mtime; unsigned __LONG32 sv3_glist_mtime; unsigned __LONG32 sv3_alist_mtime; unsigned short sv3_users; unsigned short sv3_disc; char *sv3_alerts; unsigned short sv3_security; unsigned short sv3_auditing; unsigned short sv3_numadmin; unsigned short sv3_lanmask; unsigned short sv3_hidden; unsigned short sv3_announce; unsigned short sv3_anndelta; char sv3_guestacct[LM20_UNLEN + 1]; unsigned char sv3_pad1; char *sv3_userpath; unsigned short sv3_chdevs; unsigned short sv3_chdevq; unsigned short sv3_chdevjobs; unsigned short sv3_connections; unsigned short sv3_shares; unsigned short sv3_openfiles; unsigned short sv3_sessopens; unsigned short sv3_sessvcs; unsigned short sv3_sessreqs; unsigned short sv3_opensearch; unsigned short sv3_activelocks; unsigned short sv3_numreqbuf; unsigned short sv3_sizreqbuf; unsigned short sv3_numbigbuf; unsigned short sv3_numfiletasks; unsigned short sv3_alertsched; unsigned short sv3_erroralert; unsigned short sv3_logonalert; unsigned short sv3_accessalert; unsigned short sv3_diskalert; unsigned short sv3_netioalert; unsigned short sv3_maxauditsz; char *sv3_srvheuristics; unsigned __LONG32 sv3_auditedevents; unsigned short sv3_autoprofile; char *sv3_autopath; }; #define MAJOR_VERSION_MASK 0x0F #define SV_TYPE_WORKSTATION 0x00000001 #define SV_TYPE_SERVER 0x00000002 #define SV_TYPE_SQLSERVER 0x00000004 #define SV_TYPE_DOMAIN_CTRL 0x00000008 #define SV_TYPE_DOMAIN_BAKCTRL 0x00000010 #define SV_TYPE_TIME_SOURCE 0x00000020 #define SV_TYPE_AFP 0x00000040 #define SV_TYPE_NOVELL 0x00000080 #define SV_TYPE_DOMAIN_MEMBER 0x00000100 #define SV_TYPE_PRINTQ_SERVER 0x00000200 #define SV_TYPE_DIALIN_SERVER 0x00000400 #define SV_TYPE_ALL 0xFFFFFFFF #define SV_NODISC 0xFFFF #define SV_USERSECURITY 1 #define SV_SHARESECURITY 0 #define SV_SECURITY_SHARE 0 #define SV_SECURITY_WINNT 1 #define SV_SECURITY_WINNTAS 2 #define SV_SECURITY_NETWARE 3 #define SV_HIDDEN 1 #define SV_VISIBLE 0 #define SVI1_NUM_ELEMENTS 5 #define SVI2_NUM_ELEMENTS 44 #define SVI3_NUM_ELEMENTS 45 #define SW_AUTOPROF_LOAD_MASK 0x1 #define SW_AUTOPROF_SAVE_MASK 0x2 extern API_FUNCTION NetSecurityGetInfo(const char *pszServer,short sLevel,char *pbBuffer,unsigned short cbBuffer,unsigned short *pcbTotalAvail); struct security_info_1 { unsigned __LONG32 sec1_security; char *sec1_container; char *sec1_ab_server; char *sec1_ab_dll; }; #define SEC_SECURITY_SHARE SV_SECURITY_SHARE #define SEC_SECURITY_WINNT SV_SECURITY_WINNT #define SEC_SECURITY_WINNTAS SV_SECURITY_WINNTAS #define SEC_SECURITY_NETWARE SV_SECURITY_NETWARE #ifdef __cplusplus } #endif #ifndef RC_INVOKED #pragma pack() #endif #endif
08d10c3bccbe626d2747e99dbafe66c226f6ff24
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/tools/perf/ui/setup.c
ae6a789cb0f62780a9fa088f7fe99939c798ef2d
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
849
c
setup.c
#include <pthread.h> #include "../util/cache.h" #include "../util/debug.h" #include "../util/hist.h" pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER; void setup_browser(bool fallback_to_pager) { if (use_browser < 2 && (!isatty(1) || dump_trace)) use_browser = 0; /* default to TUI */ if (use_browser < 0) use_browser = 1; switch (use_browser) { case 2: if (perf_gtk__init() == 0) break; /* fall through */ case 1: use_browser = 1; if (ui__init() == 0) break; /* fall through */ default: use_browser = 0; if (fallback_to_pager) setup_pager(); perf_hpp__column_enable(PERF_HPP__OVERHEAD); perf_hpp__init(); break; } } void exit_browser(bool wait_for_ok) { switch (use_browser) { case 2: perf_gtk__exit(wait_for_ok); break; case 1: ui__exit(wait_for_ok); break; default: break; } }
b466dca39065839c3689b9d1fce8cc897bd71056
382a4dacbf7d6e6da096ddac660ba7a40af350cf
/src/libraries/GxEPD/src/imglib/gridicons_fullscreen.h
5280f8ac0342cbcd323aca3ee230bf764afd5ffa
[ "MIT", "GPL-3.0-only" ]
permissive
Xinyuan-LilyGO/TTGO_TWatch_Library
84b1a580ad931caac7407bf110fde5b9248be3c4
6a07f3762a4d11c8e5c0c2d6f9340ee4fdaa5fcb
refs/heads/master
2023-08-18T15:36:22.029944
2023-07-03T01:27:29
2023-07-03T01:27:29
202,286,916
776
293
MIT
2023-08-31T05:18:44
2019-08-14T06:17:29
C
UTF-8
C
false
false
678
h
gridicons_fullscreen.h
#if defined(ESP8266) || defined(ESP32) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif // 24 x 24 gridicons_aside const unsigned char gridicons_fullscreen[] PROGMEM = { /* 0X01,0X01,0XB4,0X00,0X40,0X00, */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x7E, 0x07, 0xE0, 0x7E, 0x07, 0xE1, 0xFF, 0x87, 0xE0, 0xFF, 0x07, 0xE4, 0x7E, 0x27, 0xE6, 0x7E, 0x67, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE6, 0x7E, 0x67, 0xE4, 0x7E, 0x27, 0xE0, 0xFF, 0x07, 0xE1, 0xFF, 0x87, 0xE0, 0x7E, 0x07, 0xE0, 0x7E, 0x07, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
577577f365e803537e29ebe484f981fa3b93bbab
1efb2283837c9b70bc6449cec877799e4efa3268
/test/mpi/spawn/concurrent_spawns.c
51135dd1622221f945cb3e4fcc5da3a72bdfe766
[ "mpich2" ]
permissive
pmodels/mpich
d2392e8e30536cad3e500c16aa1e71211101d83f
2d265f9f5f93ebdd07ad547423bc6212868262a4
refs/heads/main
2023-09-04T05:50:15.041823
2023-09-01T23:07:33
2023-09-01T23:07:33
70,918,679
506
313
NOASSERTION
2023-09-14T14:38:36
2016-10-14T14:39:42
C
UTF-8
C
false
false
4,002
c
concurrent_spawns.c
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "mpi.h" #include "mpitest.h" #include <stdio.h> #include <stdlib.h> #ifdef HAVE_STRINGS_H #include <strings.h> #endif #ifdef HAVE_STRING_H #include <string.h> #endif /* #include <fcntl.h> */ /* This test tests the ability to handle multiple simultaneous calls to * MPI_Comm_spawn. * The first process spawns MAX_NUM_SPAWNS processes and tells them to spawn * MAX_NUM_SPAWNS -1 processes. * This repeats until no processes are spawned. For MAX_NUM_SPAWNS = 4 this * results in 64 processes * created. Hopefully this will result in concurrent handling of * MPI_Comm_spawn calls from multiple processes. */ #define IF_VERBOSE(a) if (verbose) { printf a ; fflush(stdout); } /* static char MTEST_Descrip[] = "A test of concurrent MPI_Comm_spawn calls"; */ #define MAX_NUM_SPAWNS 4 int main(int argc, char *argv[]) { int errs = 0; int child_errs = 0; int size, rsize, i, num_spawns = 0; char description[100]; char child_spawns[10]; char *argv1[3] = { child_spawns, description, NULL }; MPI_Comm parentcomm, intercomm[MAX_NUM_SPAWNS]; MPI_Status status; int verbose = 0; char *env; int can_spawn; env = getenv("MPITEST_VERBOSE"); if (env) { if (*env != '0') verbose = 1; } MTest_Init(&argc, &argv); errs += MTestSpawnPossible(&can_spawn); if (can_spawn) { /* Set the num_spawns for the first process to MAX_NUM_SPAWNS */ MPI_Comm_get_parent(&parentcomm); if (parentcomm == MPI_COMM_NULL) { num_spawns = MAX_NUM_SPAWNS; } /* If an argument is passed in use it for num_spawns */ /* This is the case for all spawned processes and optionally the first * process as well */ if (argc > 1) { num_spawns = atoi(argv[1]); if (num_spawns < 0) num_spawns = 0; if (num_spawns > MAX_NUM_SPAWNS) num_spawns = MAX_NUM_SPAWNS; } /* Send num_spawns - 1 on the command line to the spawned children */ sprintf(child_spawns, "%d", num_spawns - 1 > 0 ? num_spawns - 1 : 0); /* Spawn the children */ IF_VERBOSE(("spawning %d\n", num_spawns)); for (i = 0; i < num_spawns; i++) { if (argc > 2) { sprintf(description, "%s:%d", argv[2], i); } else { sprintf(description, "%d", i); } IF_VERBOSE(("spawning %s\n", description)); MPI_Comm_spawn((char *) "./concurrent_spawns", argv1, 1, MPI_INFO_NULL, 0, MPI_COMM_WORLD, &intercomm[i], MPI_ERRCODES_IGNORE); MPI_Comm_remote_size(intercomm[i], &rsize); MPI_Comm_size(intercomm[i], &size); if (rsize != 1) { errs++; printf("Did not create 1 process (got %d)\n", rsize); fflush(stdout); } } /* Receive the error count from each of your children and add it to your * error count */ for (i = 0; i < num_spawns; i++) { MPI_Recv(&child_errs, 1, MPI_INT, 0, 0, intercomm[i], &status); errs += child_errs; MPI_Comm_disconnect(&intercomm[i]); } /* If you are a spawned process send your errors to your parent */ if (parentcomm != MPI_COMM_NULL) { MPI_Send(&errs, 1, MPI_INT, 0, 0, parentcomm); MPI_Comm_disconnect(&parentcomm); MPI_Finalize(); } else { /* Note that the MTest_Finalize get errs only over COMM_WORLD */ /* Note also that both the parent and child will generate "No Errors" * if both call MTest_Finalize */ MTest_Finalize(errs); } } else { MTest_Finalize(errs); } IF_VERBOSE(("calling finalize\n")); return MTestReturnValue(errs); }
70338795b6a5b19524ed737fd9441046e39908ed
7ed28506c99f130ecca4eaaf7276adaccc22cd2e
/benchmark/src/util.h
753ba93cd806e520b98123527724b6e782fe7fec
[ "GPL-2.0-only", "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
google/adiantum
f816f6fdd0774a9196e37f20ff7f5978ea92a451
fd8a13fd1d266e139d08309c975550e23dd3feff
refs/heads/master
2023-08-30T16:06:35.819002
2023-01-31T07:20:09
2023-01-31T19:36:18
143,328,579
427
55
MIT
2023-01-31T19:36:20
2018-08-02T17:59:27
C
UTF-8
C
false
false
6,596
h
util.h
/* * Copyright (C) 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ #pragma once #include "cipherbench.h" #if defined(__linux__) #include <linux/types.h> /* for __le32 etc. */ #endif #include <inttypes.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; #undef SIMD_IMPL_NAME #if defined(__arm__) || defined(__aarch64__) # define SIMD_IMPL_NAME "NEON" #endif #define forceinline inline __attribute__((always_inline)) #ifndef __always_inline # define __always_inline forceinline #endif #define noinline __attribute__((noinline)) #define __cacheline_aligned __attribute__((aligned(64))) #ifndef __noreturn # define __noreturn __attribute__((noreturn)) #endif #ifndef __cold # define __cold __attribute__((cold)) #endif #ifndef __maybe_unused # define __maybe_unused __attribute__((unused)) #endif #define ARRAY_SIZE(A) (sizeof(A) / sizeof((A)[0])) #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) #define asmlinkage #define swap(a, b) \ do { __typeof__(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) #define min(a, b) ({ __typeof__(a) _a = (a); \ __typeof__(b) _b = (b); \ _a < _b ? _a : _b; }) #define max(a, b) ({ __typeof__(a) _a = (a); \ __typeof__(b) _b = (b); \ _a > _b ? _a : _b; }) #define __round_mask(x, y) ((__typeof__(x))((y)-1)) #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) #define round_down(x, y) ((x) & ~__round_mask(x, y)) __cold __noreturn void assertion_failed(const char *expr, const char *file, int line); #define ASSERT(e) ({ if (!(e)) assertion_failed(#e, __FILE__, __LINE__); }) #ifdef __CHECKER__ #define __force __attribute__((force)) #else #define __force #endif #ifndef __linux__ typedef u32 __le32; typedef u64 __le64; typedef u32 __be32; typedef u64 __be64; #endif #define cpu_to_le32(v) ((__force __le32)(u32)(v)) #define le32_to_cpu(v) ((__force u32)(__le32)(v)) #define cpu_to_le64(v) ((__force __le64)(u64)(v)) #define le64_to_cpu(v) ((__force u64)(__le64)(v)) #define cpu_to_be32(v) ((__force __be32)__builtin_bswap32(v)) #define be32_to_cpu(v) (__builtin_bswap32((__force u32)v)) #define cpu_to_be64(v) ((__force __be64)__builtin_bswap64(v)) #define be64_to_cpu(v) (__builtin_bswap64((__force u64)v)) struct ulong_unaligned { unsigned long v; } __attribute__((packed, may_alias)); struct le32_unaligned { __le32 v; } __attribute__((packed)); struct be32_unaligned { __be32 v; } __attribute__((packed)); struct le64_unaligned { __le64 v; } __attribute__((packed)); struct be64_unaligned { __be64 v; } __attribute__((packed)); static inline u32 get_unaligned_le32(const void *p) { return le32_to_cpu(((const struct le32_unaligned *)p)->v); } static inline u32 get_unaligned_be32(const void *p) { return be32_to_cpu(((const struct be32_unaligned *)p)->v); } static inline void put_unaligned_le32(u32 v, void *p) { ((struct le32_unaligned *)p)->v = cpu_to_le32(v); } static inline void put_unaligned_be32(u32 v, void *p) { ((struct be32_unaligned *)p)->v = cpu_to_be32(v); } static inline u64 get_unaligned_le64(const void *p) { return le64_to_cpu(((const struct le64_unaligned *)p)->v); } static inline u64 get_unaligned_be64(const void *p) { return be64_to_cpu(((const struct be64_unaligned *)p)->v); } static inline void put_unaligned_le64(u64 v, void *p) { ((struct le64_unaligned *)p)->v = cpu_to_le64(v); } static inline void put_unaligned_be64(u64 v, void *p) { ((struct be64_unaligned *)p)->v = cpu_to_be64(v); } static inline u16 rol16(u16 word, unsigned int shift) { return (word << shift) | (word >> (-shift & 15)); } static inline u16 ror16(u16 word, unsigned int shift) { return (word >> shift) | (word << (-shift & 15)); } static inline u32 rol32(u32 word, unsigned int shift) { return (word << shift) | (word >> (-shift & 31)); } static inline u32 ror32(u32 word, unsigned int shift) { return (word >> shift) | (word << (-shift & 31)); } static inline u64 rol64(u64 word, unsigned int shift) { return (word << shift) | (word >> (-shift & 63)); } static inline u64 ror64(u64 word, unsigned int shift) { return (word >> shift) | (word << (-shift & 63)); } static inline u64 now(void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (u64)ts.tv_sec * 1000000000 + ts.tv_nsec; } static inline void print_bytes(const char *prefix, const void *_p, size_t n) { const u8 *p = _p; printf("%-10s= ", prefix); while (n--) printf("%02x", *p++); printf("\n"); } extern u64 cpu_frequency_kHz; void show_result(const char *algname, const char *op, const char *impl, u64 nbytes, u64 ns_elapsed); static inline u64 KB_per_s(u64 bytes, u64 ns_elapsed) { return bytes * 1000000000 / ns_elapsed / 1000; } static inline float cycles_per_byte(u64 bytes, u64 ns_elapsed) { return (double)((ns_elapsed * cpu_frequency_kHz) / bytes) / 1e6; } typedef struct { u64 lo, hi; } ble128; static inline void gf128mul_x_ble(ble128 *x) { u64 lo = x->lo; u64 hi = x->hi; x->lo = (lo << 1) ^ ((hi & (1ULL << 63)) ? 0x87 : 0); x->hi = (hi << 1) | (lo >> 63); } static inline void ble128_xor(ble128 *dst, const ble128 *src) { dst->lo ^= src->lo; dst->hi ^= src->hi; } typedef union { struct { __le64 b; __le64 a; }; __le32 w32[4]; } le128; /* Addition in Z/(2^{128}Z) */ static inline void le128_add(le128 *r, const le128 *v1, const le128 *v2) { u64 x = le64_to_cpu(v1->b); u64 y = le64_to_cpu(v2->b); r->b = cpu_to_le64(x + y); r->a = cpu_to_le64(le64_to_cpu(v1->a) + le64_to_cpu(v2->a) + (x + y < x)); } /* Subtraction in Z/(2^{128}Z) */ static inline void le128_sub(le128 *r, const le128 *v1, const le128 *v2) { u64 x = le64_to_cpu(v1->b); u64 y = le64_to_cpu(v2->b); r->b = cpu_to_le64(x - y); r->a = cpu_to_le64(le64_to_cpu(v1->a) - le64_to_cpu(v2->a) - (x - y > x)); } static inline void xor(void *a, const void *b, const void *c, size_t len) { while (len >= sizeof(long)) { ((struct ulong_unaligned *)a)->v = ((const struct ulong_unaligned *)b)->v ^ ((const struct ulong_unaligned *)c)->v; a += sizeof(long); b += sizeof(long); c += sizeof(long); len -= sizeof(long); } while (len) { *(u8 *)a = *(const u8 *)b ^ *(const u8 *)c; a++; b++; c++; len--; } } static inline void rand_bytes(void *_p, size_t size) { u8 *p = _p; while (size--) *p++ = rand(); }
731c4c51728796c81012580b5bd2624d9dcee837
25e99a0af5751865bce1702ee85cc5c080b0715c
/ds_algo/src/零基礎學數據結構/例题代码/03/例3_7/例3_7.c
f86acebe80fe27a958bb5e4289dc0f0199566b01
[]
no_license
jasonblog/note
215837f6a08d07abe3e3d2be2e1f183e14aa4a30
4471f95736c60969a718d854cab929f06726280a
refs/heads/master
2023-05-31T13:02:27.451743
2022-04-04T11:28:06
2022-04-04T11:28:06
35,311,001
130
67
null
2023-02-10T21:26:36
2015-05-09T02:04:40
C
UTF-8
C
false
false
2,941
c
例3_7.c
/*包含头文件*/ #include<stdio.h> #include<conio.h> #include<stdlib.h> /*类型定义*/ typedef char DataType; typedef struct Node { DataType data; struct Node* prior; struct Node* next; } DListNode, *DLinkList; /*函数声明*/ DListNode* GetElem(DLinkList head, int i); void PrintDList(DLinkList head); int CreateDList(DLinkList head, int n); int InsertDList(DLinkList head, int i, char e); /*函数实现*/ int InitDList(DLinkList* head) /*初始化双向循环链表*/ { *head = (DLinkList)malloc(sizeof(DListNode)); if (!head) { return -1; } (*head)->next = *head; /*使头结点的prior指针和next指针指向自己*/ (*head)->prior = *head; return 1; } int CreateDList(DLinkList head, int n) /*创建双向循环链表*/ { DListNode* p, *q; int i; char e; q = head; for (i = 1; i <= n; i++) { printf("输入第%d个元素", i); e = getchar(); p = (DListNode*)malloc(sizeof(DListNode)); p->data = e; /*将新生成的结点插入到双向循环链表*/ p->next = q->next; q->next = p; p->prior = q; head->prior = p; /*这里要注意头结点的prior指向新插入的结点*/ q = p; /*q始终指向最后一个结点*/ getchar(); } return 1; } int InsertDList(DLinkList head, int i, char e) /*在双向循环链表的第i个位置插入元素e。插入成功返回1,否则返回0*/ { DListNode* p, *s; p = GetElem(head, i); /*查找链表中第i个结点*/ if (!p) { return 0; } s = (DListNode*)malloc(sizeof(DListNode)); if (!s) { return -1; } s->data = e; /*将s结点插入到双向循环链表*/ s->prior = p->prior; p->prior->next = s; s->next = p; p->prior = s; return 1; } DListNode* GetElem(DLinkList head, int i) /*查找插入的位置,找到返回该结点的指针,否则返回NULL*/ { DListNode* p; int j; p = head->next; j = 1; while (p != head && j < i) { p = p->next; j++; } if (p == head || j > i) { /*如果要位置不正确,返回NULL*/ return NULL; } return p; } void main() { DLinkList h; int n; int pos; char e; InitDList(&h); printf("输入元素个数:"); scanf("%d", &n); getchar(); CreateDList(h, n); printf("链表中的元素:"); PrintDList(h); printf("请输入插入的元素及位置:"); scanf("%c", &e); getchar(); scanf("%d", &pos); InsertDList(h, pos, e); printf("插入元素后链表中的元素:"); PrintDList(h); } void PrintDList(DLinkList head) /*输出双向循环链表中的每一个元素*/ { DListNode* p; p = head->next; while (p != head) { printf("%c", p->data); p = p->next; } printf("\n"); }
cce2e00e0833d372af9bcbf7a33218861c828bd9
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/drivers/media/platform/exynos4-is/fimc-is.h
d7db133b493f7068e9f5281af8a2c95b9c21bf50
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
7,616
h
fimc-is.h
/* * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver * * Copyright (C) 2013 Samsung Electronics Co., Ltd. * * Authors: Younghwan Joo <yhwan.joo@samsung.com> * Sylwester Nawrocki <s.nawrocki@samsung.com> * * 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. */ #ifndef FIMC_IS_H_ #define FIMC_IS_H_ #include <asm/barrier.h> #include <linux/clk.h> #include <linux/device.h> #include <linux/kernel.h> #include <linux/pinctrl/consumer.h> #include <linux/platform_device.h> #include <linux/sizes.h> #include <linux/spinlock.h> #include <linux/types.h> #include <media/videobuf2-core.h> #include <media/v4l2-ctrls.h> #include "fimc-isp.h" #include "fimc-is-command.h" #include "fimc-is-sensor.h" #include "fimc-is-param.h" #include "fimc-is-regs.h" #define FIMC_IS_DRV_NAME "exynos4-fimc-is" #define FIMC_IS_FW_FILENAME "fimc_is_fw.bin" #define FIMC_IS_SETFILE_6A3 "setfile.bin" #define FIMC_IS_FW_LOAD_TIMEOUT 1000 /* ms */ #define FIMC_IS_POWER_ON_TIMEOUT 1000 /* us */ #define FIMC_IS_SENSOR_NUM 2 /* Memory definitions */ #define FIMC_IS_CPU_MEM_SIZE (0xa00000) #define FIMC_IS_CPU_BASE_MASK ((1 << 26) - 1) #define FIMC_IS_REGION_SIZE 0x5000 #define FIMC_IS_DEBUG_REGION_OFFSET 0x0084b000 #define FIMC_IS_SHARED_REGION_OFFSET 0x008c0000 #define FIMC_IS_FW_INFO_LEN 31 #define FIMC_IS_FW_VER_LEN 7 #define FIMC_IS_FW_DESC_LEN (FIMC_IS_FW_INFO_LEN + \ FIMC_IS_FW_VER_LEN) #define FIMC_IS_SETFILE_INFO_LEN 39 #define FIMC_IS_EXTRA_MEM_SIZE (FIMC_IS_EXTRA_FW_SIZE + \ FIMC_IS_EXTRA_SETFILE_SIZE + 0x1000) #define FIMC_IS_EXTRA_FW_SIZE 0x180000 #define FIMC_IS_EXTRA_SETFILE_SIZE 0x4b000 /* TODO: revisit */ #define FIMC_IS_FW_ADDR_MASK ((1 << 26) - 1) #define FIMC_IS_FW_SIZE_MAX (SZ_4M) #define FIMC_IS_FW_SIZE_MIN (SZ_32K) #define ATCLK_MCUISP_FREQUENCY 100000000UL #define ACLK_AXI_FREQUENCY 100000000UL enum { ISS_CLK_PPMUISPX, ISS_CLK_PPMUISPMX, ISS_CLK_LITE0, ISS_CLK_LITE1, ISS_CLK_MPLL, ISS_CLK_ISP, ISS_CLK_DRC, ISS_CLK_FD, ISS_CLK_MCUISP, ISS_CLK_UART, ISS_GATE_CLKS_MAX, ISS_CLK_ISP_DIV0 = ISS_GATE_CLKS_MAX, ISS_CLK_ISP_DIV1, ISS_CLK_MCUISP_DIV0, ISS_CLK_MCUISP_DIV1, ISS_CLK_ACLK200, ISS_CLK_ACLK200_DIV, ISS_CLK_ACLK400MCUISP, ISS_CLK_ACLK400MCUISP_DIV, ISS_CLKS_MAX }; /* The driver's internal state flags */ enum { IS_ST_IDLE, IS_ST_PWR_ON, IS_ST_A5_PWR_ON, IS_ST_FW_LOADED, IS_ST_OPEN_SENSOR, IS_ST_SETFILE_LOADED, IS_ST_INIT_DONE, IS_ST_STREAM_ON, IS_ST_STREAM_OFF, IS_ST_CHANGE_MODE, IS_ST_BLOCK_CMD_CLEARED, IS_ST_SET_ZOOM, IS_ST_PWR_SUBIP_ON, IS_ST_END, }; enum af_state { FIMC_IS_AF_IDLE = 0, FIMC_IS_AF_SETCONFIG = 1, FIMC_IS_AF_RUNNING = 2, FIMC_IS_AF_LOCK = 3, FIMC_IS_AF_ABORT = 4, FIMC_IS_AF_FAILED = 5, }; enum af_lock_state { FIMC_IS_AF_UNLOCKED = 0, FIMC_IS_AF_LOCKED = 2 }; enum ae_lock_state { FIMC_IS_AE_UNLOCKED = 0, FIMC_IS_AE_LOCKED = 1 }; enum awb_lock_state { FIMC_IS_AWB_UNLOCKED = 0, FIMC_IS_AWB_LOCKED = 1 }; enum { IS_METERING_CONFIG_CMD, IS_METERING_CONFIG_WIN_POS_X, IS_METERING_CONFIG_WIN_POS_Y, IS_METERING_CONFIG_WIN_WIDTH, IS_METERING_CONFIG_WIN_HEIGHT, IS_METERING_CONFIG_MAX }; struct is_setfile { const struct firmware *info; int state; u32 sub_index; u32 base; size_t size; }; struct is_fd_result_header { u32 offset; u32 count; u32 index; u32 curr_index; u32 width; u32 height; }; struct is_af_info { u16 mode; u32 af_state; u32 af_lock_state; u32 ae_lock_state; u32 awb_lock_state; u16 pos_x; u16 pos_y; u16 prev_pos_x; u16 prev_pos_y; u16 use_af; }; struct fimc_is_firmware { const struct firmware *f_w; dma_addr_t paddr; void *vaddr; unsigned int size; char info[FIMC_IS_FW_INFO_LEN + 1]; char version[FIMC_IS_FW_VER_LEN + 1]; char setfile_info[FIMC_IS_SETFILE_INFO_LEN + 1]; u8 state; }; struct fimc_is_memory { /* physical base address */ dma_addr_t paddr; /* virtual base address */ void *vaddr; /* total length */ unsigned int size; }; #define FIMC_IS_I2H_MAX_ARGS 12 struct i2h_cmd { u32 cmd; u32 sensor_id; u16 num_args; u32 args[FIMC_IS_I2H_MAX_ARGS]; }; struct h2i_cmd { u16 cmd_type; u32 entry_id; }; #define FIMC_IS_DEBUG_MSG 0x3f #define FIMC_IS_DEBUG_LEVEL 3 struct fimc_is_setfile { const struct firmware *info; unsigned int state; unsigned int size; u32 sub_index; u32 base; }; struct chain_config { struct global_param global; struct sensor_param sensor; struct isp_param isp; struct drc_param drc; struct fd_param fd; unsigned long p_region_index1; unsigned long p_region_index2; }; /** * struct fimc_is - fimc-is data structure * @pdev: pointer to FIMC-IS platform device * @pctrl: pointer to pinctrl structure for this device * @v4l2_dev: pointer to top the level v4l2_device * @alloc_ctx: videobuf2 memory allocator context * @lock: mutex serializing video device and the subdev operations * @slock: spinlock protecting this data structure and the hw registers * @clocks: FIMC-LITE gate clock * @regs: MCUCTL mmapped registers region * @pmu_regs: PMU ISP mmapped registers region * @irq_queue: interrupt handling waitqueue * @lpm: low power mode flag * @state: internal driver's state flags */ struct fimc_is { struct platform_device *pdev; struct pinctrl *pctrl; struct v4l2_device *v4l2_dev; struct fimc_is_firmware fw; struct fimc_is_memory memory; struct firmware *f_w; struct fimc_isp isp; struct fimc_is_sensor *sensor; struct fimc_is_setfile setfile; struct vb2_alloc_ctx *alloc_ctx; struct v4l2_ctrl_handler ctrl_handler; struct mutex lock; spinlock_t slock; struct clk *clocks[ISS_CLKS_MAX]; void __iomem *regs; void __iomem *pmu_regs; int irq; wait_queue_head_t irq_queue; u8 lpm; unsigned long state; unsigned int sensor_index; struct i2h_cmd i2h_cmd; struct h2i_cmd h2i_cmd; struct is_fd_result_header fd_header; struct chain_config config[IS_SC_MAX]; unsigned config_index; struct is_region *is_p_region; dma_addr_t is_dma_p_region; struct is_share_region *is_shared_region; struct is_af_info af; struct dentry *debugfs_entry; }; static inline struct fimc_is *fimc_isp_to_is(struct fimc_isp *isp) { return container_of(isp, struct fimc_is, isp); } static inline void fimc_is_mem_barrier(void) { mb(); } static inline void fimc_is_set_param_bit(struct fimc_is *is, int num) { struct chain_config *cfg = &is->config[is->config_index]; if (num >= 32) set_bit(num - 32, &cfg->p_region_index2); else set_bit(num, &cfg->p_region_index1); } static inline void fimc_is_set_param_ctrl_cmd(struct fimc_is *is, int cmd) { is->is_p_region->parameter.isp.control.cmd = cmd; } static inline void mcuctl_write(u32 v, struct fimc_is *is, unsigned int offset) { writel(v, is->regs + offset); } static inline u32 mcuctl_read(struct fimc_is *is, unsigned int offset) { return readl(is->regs + offset); } static inline void pmuisp_write(u32 v, struct fimc_is *is, unsigned int offset) { writel(v, is->pmu_regs + offset); } static inline u32 pmuisp_read(struct fimc_is *is, unsigned int offset) { return readl(is->pmu_regs + offset); } int fimc_is_wait_event(struct fimc_is *is, unsigned long bit, unsigned int state, unsigned int timeout); int fimc_is_cpu_set_power(struct fimc_is *is, int on); int fimc_is_start_firmware(struct fimc_is *is); int fimc_is_hw_initialize(struct fimc_is *is); void fimc_is_log_dump(const char *level, const void *buf, size_t len); #endif /* FIMC_IS_H_ */
3cded80ce6e631fe6dd47b41e74c5e2e6c630ea2
4b1be97530a294f16f33b4645e6ed099c7a89ea6
/samples/RhythmGame/third_party/glm/simd/common.h
d8c212d2fd35b1616406b92bf2555bd435119489
[ "Apache-2.0" ]
permissive
google/oboe
8fdbbe604f0f13a005b67af41f0dfeded5a8bc61
91e648d8c781d879ebe43ea2b97cb3ededc74119
refs/heads/main
2023-09-01T17:52:44.577568
2023-08-24T20:30:33
2023-08-24T20:30:33
105,566,333
3,535
601
Apache-2.0
2023-09-12T16:57:30
2017-10-02T17:56:48
C++
UTF-8
C
false
false
6,782
h
common.h
/// @ref simd /// @file glm/simd/common.h #pragma once #include "platform.h" #if GLM_ARCH & GLM_ARCH_SSE2_BIT GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_add(glm_vec4 a, glm_vec4 b) { return _mm_add_ps(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_add(glm_vec4 a, glm_vec4 b) { return _mm_add_ss(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_sub(glm_vec4 a, glm_vec4 b) { return _mm_sub_ps(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_sub(glm_vec4 a, glm_vec4 b) { return _mm_sub_ss(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_mul(glm_vec4 a, glm_vec4 b) { return _mm_mul_ps(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_mul(glm_vec4 a, glm_vec4 b) { return _mm_mul_ss(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_div(glm_vec4 a, glm_vec4 b) { return _mm_div_ps(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_div(glm_vec4 a, glm_vec4 b) { return _mm_div_ss(a, b); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_div_lowp(glm_vec4 a, glm_vec4 b) { return glm_vec4_mul(a, _mm_rcp_ps(b)); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_swizzle_xyzw(glm_vec4 a) { # if GLM_ARCH & GLM_ARCH_AVX2_BIT return _mm_permute_ps(a, _MM_SHUFFLE(3, 2, 1, 0)); # else return _mm_shuffle_ps(a, a, _MM_SHUFFLE(3, 2, 1, 0)); # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec1_fma(glm_vec4 a, glm_vec4 b, glm_vec4 c) { # if GLM_ARCH & GLM_ARCH_AVX2_BIT return _mm_fmadd_ss(a, b, c); # else return _mm_add_ss(_mm_mul_ss(a, b), c); # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_fma(glm_vec4 a, glm_vec4 b, glm_vec4 c) { # if GLM_ARCH & GLM_ARCH_AVX2_BIT return _mm_fmadd_ps(a, b, c); # else return glm_vec4_add(glm_vec4_mul(a, b), c); # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_abs(glm_vec4 x) { return _mm_and_ps(x, _mm_castsi128_ps(_mm_set1_epi32(0x7FFFFFFF))); } GLM_FUNC_QUALIFIER glm_ivec4 glm_ivec4_abs(glm_ivec4 x) { # if GLM_ARCH & GLM_ARCH_SSSE3_BIT return _mm_sign_epi32(x, x); # else glm_ivec4 const sgn0 = _mm_srai_epi32(x, 31); glm_ivec4 const inv0 = _mm_xor_si128(x, sgn0); glm_ivec4 const sub0 = _mm_sub_epi32(inv0, sgn0); return sub0; # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_sign(glm_vec4 x) { glm_vec4 const zro0 = _mm_setzero_ps(); glm_vec4 const cmp0 = _mm_cmplt_ps(x, zro0); glm_vec4 const cmp1 = _mm_cmpgt_ps(x, zro0); glm_vec4 const and0 = _mm_and_ps(cmp0, _mm_set1_ps(-1.0f)); glm_vec4 const and1 = _mm_and_ps(cmp1, _mm_set1_ps(1.0f)); glm_vec4 const or0 = _mm_or_ps(and0, and1);; return or0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_round(glm_vec4 x) { # if GLM_ARCH & GLM_ARCH_SSE41_BIT return _mm_round_ps(x, _MM_FROUND_TO_NEAREST_INT); # else glm_vec4 const sgn0 = _mm_castsi128_ps(_mm_set1_epi32(0x80000000)); glm_vec4 const and0 = _mm_and_ps(sgn0, x); glm_vec4 const or0 = _mm_or_ps(and0, _mm_set_ps1(8388608.0f)); glm_vec4 const add0 = glm_vec4_add(x, or0); glm_vec4 const sub0 = glm_vec4_sub(add0, or0); return sub0; # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_floor(glm_vec4 x) { # if GLM_ARCH & GLM_ARCH_SSE41_BIT return _mm_floor_ps(x); # else glm_vec4 const rnd0 = glm_vec4_round(x); glm_vec4 const cmp0 = _mm_cmplt_ps(x, rnd0); glm_vec4 const and0 = _mm_and_ps(cmp0, _mm_set1_ps(1.0f)); glm_vec4 const sub0 = glm_vec4_sub(rnd0, and0); return sub0; # endif } /* trunc TODO GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_trunc(glm_vec4 x) { return glm_vec4(); } */ //roundEven GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_roundEven(glm_vec4 x) { glm_vec4 const sgn0 = _mm_castsi128_ps(_mm_set1_epi32(0x80000000)); glm_vec4 const and0 = _mm_and_ps(sgn0, x); glm_vec4 const or0 = _mm_or_ps(and0, _mm_set_ps1(8388608.0f)); glm_vec4 const add0 = glm_vec4_add(x, or0); glm_vec4 const sub0 = glm_vec4_sub(add0, or0); return sub0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_ceil(glm_vec4 x) { # if GLM_ARCH & GLM_ARCH_SSE41_BIT return _mm_ceil_ps(x); # else glm_vec4 const rnd0 = glm_vec4_round(x); glm_vec4 const cmp0 = _mm_cmpgt_ps(x, rnd0); glm_vec4 const and0 = _mm_and_ps(cmp0, _mm_set1_ps(1.0f)); glm_vec4 const add0 = glm_vec4_add(rnd0, and0); return add0; # endif } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_fract(glm_vec4 x) { glm_vec4 const flr0 = glm_vec4_floor(x); glm_vec4 const sub0 = glm_vec4_sub(x, flr0); return sub0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_mod(glm_vec4 x, glm_vec4 y) { glm_vec4 const div0 = glm_vec4_div(x, y); glm_vec4 const flr0 = glm_vec4_floor(div0); glm_vec4 const mul0 = glm_vec4_mul(y, flr0); glm_vec4 const sub0 = glm_vec4_sub(x, mul0); return sub0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_clamp(glm_vec4 v, glm_vec4 minVal, glm_vec4 maxVal) { glm_vec4 const min0 = _mm_min_ps(v, maxVal); glm_vec4 const max0 = _mm_max_ps(min0, minVal); return max0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_mix(glm_vec4 v1, glm_vec4 v2, glm_vec4 a) { glm_vec4 const sub0 = glm_vec4_sub(_mm_set1_ps(1.0f), a); glm_vec4 const mul0 = glm_vec4_mul(v1, sub0); glm_vec4 const mad0 = glm_vec4_fma(v2, a, mul0); return mad0; } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_step(glm_vec4 edge, glm_vec4 x) { glm_vec4 const cmp = _mm_cmple_ps(x, edge); return _mm_movemask_ps(cmp) == 0 ? _mm_set1_ps(1.0f) : _mm_setzero_ps(); } GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_smoothstep(glm_vec4 edge0, glm_vec4 edge1, glm_vec4 x) { glm_vec4 const sub0 = glm_vec4_sub(x, edge0); glm_vec4 const sub1 = glm_vec4_sub(edge1, edge0); glm_vec4 const div0 = glm_vec4_sub(sub0, sub1); glm_vec4 const clp0 = glm_vec4_clamp(div0, _mm_setzero_ps(), _mm_set1_ps(1.0f)); glm_vec4 const mul0 = glm_vec4_mul(_mm_set1_ps(2.0f), clp0); glm_vec4 const sub2 = glm_vec4_sub(_mm_set1_ps(3.0f), mul0); glm_vec4 const mul1 = glm_vec4_mul(clp0, clp0); glm_vec4 const mul2 = glm_vec4_mul(mul1, sub2); return mul2; } // Agner Fog method GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_nan(glm_vec4 x) { glm_ivec4 const t1 = _mm_castps_si128(x); // reinterpret as 32-bit integer glm_ivec4 const t2 = _mm_sll_epi32(t1, _mm_cvtsi32_si128(1)); // shift out sign bit glm_ivec4 const t3 = _mm_set1_epi32(0xFF000000); // exponent mask glm_ivec4 const t4 = _mm_and_si128(t2, t3); // exponent glm_ivec4 const t5 = _mm_andnot_si128(t3, t2); // fraction glm_ivec4 const Equal = _mm_cmpeq_epi32(t3, t4); glm_ivec4 const Nequal = _mm_cmpeq_epi32(t5, _mm_setzero_si128()); glm_ivec4 const And = _mm_and_si128(Equal, Nequal); return _mm_castsi128_ps(And); // exponent = all 1s and fraction != 0 } // Agner Fog method GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_inf(glm_vec4 x) { glm_ivec4 const t1 = _mm_castps_si128(x); // reinterpret as 32-bit integer glm_ivec4 const t2 = _mm_sll_epi32(t1, _mm_cvtsi32_si128(1)); // shift out sign bit return _mm_castsi128_ps(_mm_cmpeq_epi32(t2, _mm_set1_epi32(0xFF000000))); // exponent is all 1s, fraction is 0 } #endif//GLM_ARCH & GLM_ARCH_SSE2_BIT
cd5ef89483ddd0fb34653b12c5c4bf5737c6ae6b
1895962fec46d652d226650b7bb9b024c16d9fa6
/source/libwolfssl/wolfcrypt/port/caam/wolfcaam.h
6a2f8a5f4e261f36c05aafb0ead938ef24cfb734
[]
no_license
Fledge68/WiiFlow_Lite
6b91090c1ba375ef79fcae1ddea745e412746717
5415c95fefa44dba79e0a6e88f25b4a7a3766bf1
refs/heads/master
2023-08-23T20:14:40.332005
2023-05-26T22:32:58
2023-05-26T22:32:58
144,065,000
405
112
null
2023-08-04T11:59:08
2018-08-08T20:37:43
C
UTF-8
C
false
false
5,050
h
wolfcaam.h
/* wolfcaam.h * * Copyright (C) 2006-2021 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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. * * wolfSSL is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ #ifndef WOLF_CRYPT_CAAM_INIT_H #define WOLF_CRYPT_CAAM_INIT_H #include <libwolfssl/wolfcrypt/settings.h> #include <libwolfssl/wolfcrypt/types.h> /* include for porting layer */ #ifdef WOLFSSL_QNX_CAAM #include <libwolfssl/wolfcrypt/port/caam/wolfcaam_qnx.h> #endif #if defined(WOLFSSL_IMX6_CAAM) || defined(WOLFSSL_IMX6_CAAM_RNG) || \ defined(WOLFSSL_QNX_CAAM) #if defined(__INTEGRITY) || defined(INTEGRITY) #include <INTEGRITY.h> typedef Buffer CAAM_BUFFER; #endif WOLFSSL_LOCAL int wc_caamInit(void); WOLFSSL_LOCAL int wc_caamFree(void); WOLFSSL_LOCAL int wc_caamInitRng(void); WOLFSSL_LOCAL int wc_caamFreeRng(void); WOLFSSL_LOCAL word32 wc_caamReadRegister(word32 reg); WOLFSSL_LOCAL void wc_caamWriteRegister(word32 reg, word32 value); WOLFSSL_LOCAL int wc_caamAddAndWait(CAAM_BUFFER* buf, int sz, word32 arg[4], word32 type); WOLFSSL_LOCAL int caamFindUnusuedPartition(void); WOLFSSL_LOCAL CAAM_ADDRESS caamGetPartition(int part, int sz); WOLFSSL_LOCAL int caamFreePart(int partNum); WOLFSSL_LOCAL int caamWriteToPartition(CAAM_ADDRESS addr, const unsigned char* in, int inSz); WOLFSSL_LOCAL int caamReadPartition(CAAM_ADDRESS addr, unsigned char* out, int outSz); WOLFSSL_API int wc_caamOpenBlob(byte* data, word32 dataSz, byte* out, word32* outSz); WOLFSSL_API int wc_caamCreateBlob(byte* data, word32 dataSz, byte* out, word32* outSz); WOLFSSL_API int wc_caamOpenBlob_ex(byte* data, word32 dataSz, byte* out, word32* outSz, int type, byte* mod, word32 modSz); WOLFSSL_API int wc_caamCreateBlob_ex(byte* data, word32 dataSz, byte* out, word32* outSz, int type, byte* mod, word32 modSz); WOLFSSL_API int wc_caamCoverKey(byte* in, word32 inSz, byte* out, word32* outSz, int flag); /* additional size that is added by CAAM when creating a blob */ #define WC_CAAM_BLOB_SZ 48 #define WC_CAAM_MAC_SZ 16 #define WC_CAAM_BLOB_RED 1 #define WC_CAAM_BLOB_BLACK 2 #define WC_CAAM_RED_KEYMOD_SZ 8 #define WC_CAAM_BLACK_KEYMOD_SZ 16 #define WC_CAAM_MAX_ENTROPY 44 #ifndef WOLFSSL_QNX_CAAM WOLFSSL_API int wc_caamSetResource(IODevice ioDev); #ifndef WC_CAAM_READ #define WC_CAAM_READ(reg) wc_caamReadRegister((reg)) #endif #ifndef WC_CAAM_WRITE #define WC_CAAM_WRITE(reg, x) wc_caamWriteRegister((reg), (x)) #endif #endif #define CAAM_AESCTR 0x00100000 #define CAAM_AESCBC 0x00100100 #define CAAM_AESECB 0x00100200 #define CAAM_AESCFB 0x00100300 #define CAAM_AESOFB 0x00100400 #define CAAM_CMAC 0x00100600 #define CAAM_AESCCM 0x00100800 #define CAAM_MD5 0x00400000 #define CAAM_SHA 0x00410000 #define CAAM_SHA224 0x00420000 #define CAAM_SHA256 0x00430000 #define CAAM_SHA384 0x00440000 #define CAAM_SHA512 0x00450000 #define CAAM_HMAC_MD5 0x00400010 #define CAAM_HMAC_SHA 0x00410010 #define CAAM_HMAC_SHA224 0x00420010 #define CAAM_HMAC_SHA256 0x00430010 #define CAAM_HMAC_SHA384 0x00440010 #define CAAM_HMAC_SHA512 0x00450010 #define CAAM_ECDSA_KEYPAIR 0x00140000 #define CAAM_ECDSA_SIGN 0x00150000 #define CAAM_ECDSA_VERIFY 0x00160000 #define CAAM_ECDSA_ECDH 0x00170000 #define CAAM_BLOB_ENCAP 0x07000000 #define CAAM_BLOB_DECAP 0x06000000 #define CAAM_FIFO_S 0x60000000 #define CAAM_FIFO_CCM_FLAG 0x00140000 #define CAAM_ENC 0x00000001 #define CAAM_DEC 0x00000000 #define CAAM_ALG_INIT 0x00000004 #define CAAM_ALG_INITF 0x0000000C #define CAAM_ALG_UPDATE 0x00000000 #define CAAM_ALG_FINAL 0x00000008 /* ECDSA ECDSEL (pre defined flags for ECDSA parameters i.e. order) */ #define CAAM_ECDSEL_SHIFT 7 #define CAAM_ECDSA_PD 0x00400000 #define CAAM_ECDSA_KEYGEN_PD 0x02000000 #define CAAM_ECDSA_P192 (0x00 << CAAM_ECDSEL_SHIFT) #define CAAM_ECDSA_P224 (0x01 << CAAM_ECDSEL_SHIFT) #define CAAM_ECDSA_P256 (0x02 << CAAM_ECDSEL_SHIFT) #define CAAM_ECDSA_P384 (0x03 << CAAM_ECDSEL_SHIFT) #define CAAM_ECDSA_P521 (0x04 << CAAM_ECDSEL_SHIFT) #define CAAM_ECDSA_BRAINPOOL_P256 (0x0B << CAAM_ECDSEL_SHIFT) #define CAAM_ENTROPY 0x00500001 /* wolfSSL specific flags */ #define CAAM_FIND_PART 0xFFFFFFFF #define CAAM_GET_PART 0xFFFFFFFE #define CAAM_FREE_PART 0xFFFFFFFD #define CAAM_READ_PART 0xFFFFFFFC #define CAAM_WRITE_PART 0xFFFFFFFB #endif /* WOLFSSL_IMX6_CAAM */ #endif /* WOLF_CRYPT_CAAM_INIT_H */
c211c546689f3487558234950bb3efde901bfc28
42ea124983b717e3f6a8acfaf16bb6f455e23d12
/src/misc/test1/test1.c
f4f9ce066fefeddb4324dab29ae6fe263ecd251d
[ "BSD-2-Clause", "BSD-3-Clause", "MIT" ]
permissive
f32c/f32c
4a3f026c6a3e30089976c523861bf46c047bed1b
115c2d582296c8af6e9fc24e2355e5f31ff2f3b6
refs/heads/master
2023-09-01T19:32:24.288992
2023-08-17T19:32:17
2023-08-17T19:32:17
34,478,922
399
140
BSD-2-Clause
2023-04-28T17:13:20
2015-04-23T20:09:23
VHDL
UTF-8
C
false
false
1,805
c
test1.c
/*- * Copyright (c) 2014 Marko Zec, University of Zagreb * * 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 disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $Id$ */ #include <io.h> #include <stdio.h> #include <sys/isr.h> int isr_cnt; static int fb_isr(void) { int i; /* Clear the fb interrupt */ INB(i, IO_FB); isr_cnt++; OUTB(IO_LED, isr_cnt); return (1); } struct isr_link fb_isr_l = { .handler_fn = &fb_isr }; void main(void) { int c = 0; isr_register_handler(2, &fb_isr_l); __asm("ei"); while (c != 3) { c = sio_getchar(1); if (c > 0) sio_putchar(c, 1); } __asm("di"); }
71aa5d483ae68695a7983694e2b0d7dfb2485a93
aa3befea459382dc5c01c925653d54f435b3fb0f
/arch/arm/src/s32k3xx/s32k3xx_progmem.c
38be56657d49ed68b36f868eb53aecf831ca7172
[ "MIT-open-group", "BSD-3-Clause", "HPND-sell-variant", "BSD-4-Clause-UC", "LicenseRef-scancode-warranty-disclaimer", "MIT-0", "LicenseRef-scancode-bsd-atmel", "LicenseRef-scancode-gary-s-brown", "LicenseRef-scancode-proprietary-license", "SunPro", "MIT", "LicenseRef-scancode-public-domain-disclaimer", "LicenseRef-scancode-other-permissive", "HPND", "ISC", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "GPL-1.0-or-later", "CC-BY-2.0", "CC-BY-4.0" ]
permissive
apache/nuttx
14519a7bff4a87935d94fb8fb2b19edb501c7cec
606b6d9310fb25c7d92c6f95bf61737e3c79fa0f
refs/heads/master
2023-08-25T06:55:45.822534
2023-08-23T16:03:31
2023-08-24T21:25:47
228,103,273
407
241
Apache-2.0
2023-09-14T18:26:05
2019-12-14T23:27:55
C
UTF-8
C
false
false
11,506
c
s32k3xx_progmem.c
/**************************************************************************** * arch/arm/src/s32k3xx/s32k3xx_progmem.c * * 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 Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. * ****************************************************************************/ /* Copyright 2022 NXP */ /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <stdint.h> #include <assert.h> #include <errno.h> #include <sys/param.h> #include "hardware/s32k3xx_pflash.h" #include "hardware/s32k3xx_xrdc.h" #include "s32k3xx_config.h" #include "s32k3xx_progmem.h" #include "arm_internal.h" #include <arch/board/board.h> /* Include last: has dependencies */ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ #if CONFIG_S32K3XX_PROGMEM_SIZE > DFLASH_SIZE # error Progmem size too big #endif #if CONFIG_S32K3XX_PROGMEM_SIZE % 8 != 0 # error Progmem must be a multiple of 8 #endif /**************************************************************************** * Private Functions ****************************************************************************/ uint32_t get_sector(uint32_t address) { DEBUGASSERT(((address >= S32K3XX_PROGMEM_START_ADDR) && (address <= S32K3XX_PROGMEM_END_ADDR))); /* The address is from the data sectors */ return ((address - (uint32_t)S32K3XX_PROGMEM_START_ADDR) / S32K3XX_PROGMEM_SECTOR_SIZE); } void data_sector_lock(uint32_t sector, uint32_t lock) { uint32_t regval; regval = getreg32(S32K3XX_PFLASH_PFCBLK4_SPELOCK); if (lock) { regval |= (1 << sector); } else { regval &= ~(1 << sector); } putreg32(regval, S32K3XX_PFLASH_PFCBLK4_SPELOCK); } uint32_t execute_flash_sequence(uint32_t mask) { uint32_t regval; uint32_t status; /* Set Mask bit */ regval = getreg32(S32K3XX_FMU_MCR); regval |= mask; putreg32(regval, S32K3XX_FMU_MCR); /* Set EHV bit to start program operation */ regval |= FMU_MCR_EHV_MASK; putreg32(regval, S32K3XX_FMU_MCR); /* Wait for MCRS Done */ do { regval = getreg32(S32K3XX_FMU_MCRS); } while ((regval & FMU_MCRS_DONE_MASK) != FMU_MCRS_DONE_MASK); regval = getreg32(S32K3XX_FMU_MCR); regval &= ~FMU_MCR_EHV_MASK; putreg32(regval, S32K3XX_FMU_MCR); status = getreg32(S32K3XX_FMU_MCRS); regval &= ~mask; putreg32(regval, S32K3XX_FMU_MCR); return status; } void execute_init_sequence(uint32_t addr) { uint8_t domain_id = getreg8(S32K3XX_XRDC_HWCFG1); do { putreg32(addr, S32K3XX_PFLASH_PFCPGM_PEADR_L); } while (FMU_MCR_PEID(getreg32(S32K3XX_FMU_MCR)) != domain_id); putreg32((FMU_MCRS_PES_SHIFT | FMU_MCRS_PEP_SHIFT), S32K3XX_FMU_MCRS); } /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: up_progmem_neraseblocks * * Description: * Return number of erase blocks * ****************************************************************************/ size_t up_progmem_neraseblocks(void) { return S32K3XX_PROGMEM_SECTOR_COUNT; } /**************************************************************************** * Name: up_progmem_isuniform * * Description: * Is program memory uniform or page size differs? * ****************************************************************************/ bool up_progmem_isuniform(void) { return true; } /**************************************************************************** * Name: up_progmem_pagesize * * Description: * Return read/write page size * ****************************************************************************/ size_t up_progmem_pagesize(size_t page) { return (size_t)S32K3XX_PROGMEM_PAGE_SIZE; } /**************************************************************************** * Name: up_progmem_erasesize * * Description: * Return erase block size * ****************************************************************************/ size_t up_progmem_erasesize(size_t block) { return (size_t)S32K3XX_PROGMEM_BLOCK_SECTOR_SIZE; } /**************************************************************************** * Name: up_progmem_getpage * * Description: * Address to read/write page conversion * * Input Parameters: * addr - Address with or without flash offset (absolute or aligned to * page0) * * Returned Value: * Page or negative value on error. The following errors are reported * (errno is not set!): * * -EFAULT: On invalid address * ****************************************************************************/ ssize_t up_progmem_getpage(size_t addr) { if (addr >= S32K3XX_PROGMEM_START_ADDR) { addr -= S32K3XX_PROGMEM_START_ADDR; } return (size_t)(addr / S32K3XX_PROGMEM_PAGE_SIZE); } /**************************************************************************** * Name: up_progmem_getaddress * * Description: * Read/write page to address conversion * * Input Parameters: * page - page index * * Returned Value: * Base address of given page, SIZE_MAX if page index is not valid. * ****************************************************************************/ size_t up_progmem_getaddress(size_t page) { return (size_t)(S32K3XX_PROGMEM_START_ADDR + (page * S32K3XX_PROGMEM_PAGE_SIZE)); } /**************************************************************************** * Name: up_progmem_eraseblock * * Description: * Erase selected block. * * Input Parameters: * block - The erase block index to be erased. * * Returned Value: * block size or negative value on error. The following errors are * reported (errno is not set!): * * -EFAULT: On invalid page * -EIO: On unsuccessful erase * -EROFS: On access to write protected area * -EACCES: Insufficient permissions (read/write protected) * -EPERM: If operation is not permitted due to some other constraints * (i.e. some internal block is not running etc.) * ****************************************************************************/ ssize_t up_progmem_eraseblock(size_t block) { uint32_t dest; dest = (block * S32K3XX_PROGMEM_BLOCK_SECTOR_SIZE + S32K3XX_PROGMEM_START_ADDR); data_sector_lock(get_sector(dest), 0); execute_init_sequence(dest); putreg32(0x0, S32K3XX_FMU_PD(0)); execute_flash_sequence(FMU_MCR_ERS_MASK); putreg32(0xffffffff, S32K3XX_FMU_PD(0)); return (ssize_t)S32K3XX_PROGMEM_BLOCK_SECTOR_SIZE; } /**************************************************************************** * Name: up_progmem_ispageerased * * Description: * Checks whether page is erased * * Input Parameters: * page - The erase page index to be checked. * * Returned Value: * Returns number of bytes NOT erased or negative value on error. If it * returns zero then complete page is erased. * * The following errors are reported: * -EFAULT: On invalid page * ****************************************************************************/ ssize_t up_progmem_ispageerased(size_t page) { const uint8_t *p; int i; if (page >= S32K3XX_PROGMEM_PAGE_COUNT) { return -EFAULT; } p = (const uint8_t *)up_progmem_getaddress(page); for (i = 0; i < S32K3XX_PROGMEM_PAGE_SIZE; i++) { if (p[i] != S32K3XX_PROGMEM_ERASEDVAL) { break; } } return (ssize_t)(S32K3XX_PROGMEM_PAGE_SIZE - i); } /**************************************************************************** * Name: up_progmem_write * * Description: * Program data at given address * * Note: this function is not limited to single page and nor it requires * the address be aligned inside the page boundaries. * * Input Parameters: * addr - Address with or without flash offset * buf - Pointer to buffer * count - Number of bytes to write * * Returned Value: * Bytes written or negative value on error. The following errors are * reported (errno is not set!) * * EINVAL: If count is not aligned with the flash boundaries (i.e. * some MCU's require per half-word or even word access) * EFAULT: On invalid address * EIO: On unsuccessful write, do note when this occurs the complete * flash sector is deemed to be unreadable and a read will most * likely result in a hard fault. * EROFS: On access to write protected area * EACCES: Insufficient permissions (read/write protected) * EPERM: If operation is not permitted due to some other constraints * (i.e. some internal block is not running etc.) * ****************************************************************************/ ssize_t up_progmem_write(size_t addr, const void *buf, size_t count) { uint32_t i; uint32_t dest; uint32_t offset; uint32_t *p_offset; uint32_t *p_src; size_t words_to_write; if (count % S32K3XX_PROGMEM_DFLASH_WRITE_UNIT_SIZE != 0) { return -EINVAL; } /* Address with or without flash offset */ addr = ((addr % S32K3XX_PROGMEM_START_ADDR) + S32K3XX_PROGMEM_START_ADDR); offset = addr % S32K3XX_PROGMEM_WRITE_SIZE; dest = addr - offset; words_to_write = ((count + offset) / 4); if (offset > 0) { p_offset = (uint32_t *)(dest); } p_src = (uint32_t *)(buf); data_sector_lock(get_sector(dest), 0); while (words_to_write > 0) { /* Destination address */ execute_init_sequence(dest); for (i = 0; i < MIN(32, words_to_write); i++) { if (offset > 0) { putreg32(*p_offset++, S32K3XX_FMU_PD(i)); offset = offset - 4; } else { putreg32(*p_src++, S32K3XX_FMU_PD(i)); } dest += 4; } words_to_write = words_to_write - i; execute_flash_sequence(FMU_MCR_PGM_MASK); } return count; } /**************************************************************************** * Name: up_progmem_erasestate * * Description: * Return value of erase state. * ****************************************************************************/ uint8_t up_progmem_erasestate(void) { return S32K3XX_PROGMEM_ERASEDVAL; } void s32k3xx_progmem_init(void) { /* Disable D-Flash ECC for back-to-back flash writes */ putreg32(PFLASH_PFCR4_DERR_SUP, S32K3XX_PFLASH_PFCR4); }
2b63845668d73a722808d2129b2048089d8909d8
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/multimedia/spook/files/patch-tcp.c
939f7f288c96cf41a52238df58073cfd1a1c64ed
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C
false
false
381
c
patch-tcp.c
--- tcp.c.orig 2004-12-29 02:33:21 UTC +++ tcp.c @@ -454,7 +454,7 @@ static void do_accept( struct event_info strerror( errno ) ); i = 1; - if( setsockopt( fd, SOL_TCP, TCP_NODELAY, &i, sizeof( i ) ) < 0 ) + if( setsockopt( fd, IPPROTO_TCP, TCP_NODELAY, &i, sizeof( i ) ) < 0 ) spook_log( SL_INFO, "error setting TCP_NODELAY on socket: %s", strerror( errno ) );
b6f677585c9cc6bd92e8c674cd59279208be9a5c
07327b5e8b2831b12352bf7c6426bfda60129da7
/Include/10.0.10240.0/um/ucm/1.0/UcmGlobals.h
878190483d80e86cb206df3dc11447981749e18a
[]
no_license
tpn/winsdk-10
ca279df0fce03f92036e90fb04196d6282a264b7
9b69fd26ac0c7d0b83d378dba01080e93349c2ed
refs/heads/master
2021-01-10T01:56:18.586459
2018-02-19T21:26:31
2018-02-19T21:29:50
44,352,845
218
432
null
null
null
null
UTF-8
C
false
false
763
h
UcmGlobals.h
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: UcmGlobals.h Environment: user mode NOTE: This header is generated by stubwork. To modify contents, add or remove <shared> or <umdf> tags in the corresponding .x and .y template files. --*/ #pragma once #ifndef WDF_EXTERN_C #ifdef __cplusplus #define WDF_EXTERN_C extern "C" #define WDF_EXTERN_C_START extern "C" { #define WDF_EXTERN_C_END } #else #define WDF_EXTERN_C #define WDF_EXTERN_C_START #define WDF_EXTERN_C_END #endif #endif WDF_EXTERN_C_START typedef struct _UCM_DRIVER_GLOBALS { ULONG Reserved; } UCM_DRIVER_GLOBALS, *PUCM_DRIVER_GLOBALS; WDF_EXTERN_C_END
39c22583577c759488f42fe279d721472488c68c
9ceacf33fd96913cac7ef15492c126d96cae6911
/regress/lib/libm/fpaccuracy/acosh.c
342d3f15894b64a26163293adb89d213c5d291c9
[]
no_license
openbsd/src
ab97ef834fd2d5a7f6729814665e9782b586c130
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
refs/heads/master
2023-09-02T18:54:56.624627
2023-09-02T15:16:12
2023-09-02T15:16:12
66,966,208
3,394
1,235
null
2023-08-08T02:42:25
2016-08-30T18:18:25
C
UTF-8
C
false
false
72,067
c
acosh.c
/* $OpenBSD: acosh.c,v 1.1 2009/04/09 01:24:43 martynas Exp $ */ /* * Copyright (c) 2009 Gaston H. Gonnet <gonnet@inf.ethz.ch> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This program was generated automatically by a program written by Gaston H. Gonnet on enigma on 2002-09-01 17:24:48. Do not edit, rerun the original maple program. */ #include "header.h" #define DBL_MAX_EXP 1024 #define N 1033 #define F acosh #define Fs "acosh" #define Fn fpaccuracy_acosh /* 8 candidate values discarded */ static struct input_point { double arg_m, val, eps; int arg_e, val_e; } input_points[N] = { 4503599627370497.,6369051672525772.,.446772684160763817756,-52,78, 4503599627370498.,4503599627370496.,-.166666666666666650013,-52,77, 4503599627370507.,5280938667038374.,-.273598422638878555452,-52,76, 4503599627370886.,7861168282203689.,-.453958877332191899231,-52,74, 4537596023237373.,8848272451552041.,.497704718081085686959,-52,56, 4537596023277372.,8848272456750798.,.499898551361032829416,-52,56, 4537596023286069.,8848272457881166.,.499894252423405232182,-52,56, 4537596023286249.,8848272457904561.,.491268967173333633095,-52,56, 4537596023286285.,8848272457909240.,.489543902663235214599,-52,56, 4537596023286287.,8848272457909500.,.433892510117539624541,-52,56, 4537596023290705.,8848272458483717.,.499947642463039830000,-52,56, 4538829836245640.,9007199246344715.,-.003937236051013921118,-52,56, 4538829836308555.,9007199254376902.,-.499960781456323413578,-52,56, 4538829836311027.,9007199254692495.,-.000340961751077885359,-52,56, 4538829836311302.,9007199254727603.,.499818323057337270293,-52,56, 4538829836311305.,9007199254727987.,-.498361758230531770107,-52,56, 4538829836311377.,9007199254737179.,-.454683714050580588438,-52,56, 4538829836311406.,9007199254740881.,-.103757837808633755997,-52,56, 4538829836311407.,4503599627370504.,.281757734120695178153,-52,55, 4538829836311424.,4503599627371589.,.453580835406749697022,-52,55, 4538829836311562.,4503599627380398.,.495438942001951020412,-52,55, 4538829836311574.,4503599627381164.,.499078776539523508531,-52,55, 4538829836311852.,4503599627398910.,.250068239998815146261,-52,55, 4538829836312127.,4503599627416465.,-.499852323935245918842,-52,55, 4538829836314874.,4503599627591816.,-.499971695754192903082,-52,55, 4538829836317896.,4503599627784721.,-.250019937318492214422,-52,55, 4538829836324215.,4503599628188085.,.499935074891656555718,-52,55, 4645071652270580.,9007199254357355.,-.000017003205781065382,-52,55, 4645071652282692.,9007199254740931.,-.087225353092083873264,-52,55, 4645071652282693.,9007199254740963.,-.418144046675918583320,-52,55, 4645071652282694.,4503599627370497.,.125468629870066524406,-52,54, 4645071652282716.,4503599627370845.,.485363000432256764690,-52,54, 4645071652282728.,4503599627371035.,.499850838909131071702,-52,54, 4645071652285351.,4503599627412569.,.499984002923098669670,-52,54, 4728254527300129.,5666615828271070.,.499986364789149031807,-52,54, 4728254527302389.,5666615828299340.,.498774688239499385995,-52,54, 4728254527303067.,5666615828307821.,.498411156871562414031,-52,54, 4728254527366125.,5666615829096604.,.499941517922475218630,-52,54, 4785050892120248.,6336073334947307.,.499917265465930527738,-52,54, 4785050892178755.,6336073335599161.,-.480228106127191569017,-52,54, 4785050892178762.,6336073335599239.,-.490053618663278653970,-52,54, 4785050892178769.,6336073335599317.,-.499879131200364976288,-52,54, 4785050892179278.,6336073335604987.,.499951454496361235099,-52,54, 4867368130154436.,7192609895586038.,.499960774706349486359,-52,54, 4867368130221790.,7192609896243209.,.499828613061869751667,-52,54, 4867368130222041.,7192609896245658.,.499456829145515463739,-52,54, 4867368130222757.,7192609896252644.,.490428149883921533631,-52,54, 4867368130222794.,7192609896253005.,.498341472130240471537,-52,54, 4867368130229752.,7192609896320894.,.499986976067296246387,-52,54, 4978067397627770.,8198170742849479.,.499996658753014323606,-52,54, 4978067397643827.,8198170742985856.,-.337744867513965427493,-52,54, 4978067397643851.,8198170742986060.,-.499674606926752882658,-52,54, 4978067397644518.,8198170742991725.,-.499971950272932333833,-52,54, 5003811407059991.,8413787424899092.,.457234652384892955515,-52,54, 5003811407059995.,8413787424899125.,.499640763619584317570,-52,54, 5003811407061292.,8413787424909839.,.499822324135224473810,-52,54, 5003811407062589.,8413787424920554.,-.499996129970111672949,-52,54, 5048327701408832.,8773264916002178.,.499990131297012562219,-52,54, 5048327701447206.,8773264916305233.,.499535544758744184304,-52,54, 5048327701447479.,8773264916307389.,.490958757005331384951,-52,54, 5048327701447489.,8773264916307468.,.465003563303887979070,-52,54, 5048327701448824.,8773264916318011.,.499985197282044447594,-52,54, 5048327701457801.,8773264916388907.,-.499992589415814091457,-52,54, 5078375876659868.,9007199254304339.,.499993377564374079597,-52,54, 5078375876711492.,9007199254700613.,-.499983608126043039860,-52,54, 5078375876715750.,9007199254733297.,.499901223010371791803,-52,54, 5078375876715926.,9007199254734649.,-.499633836050157497060,-52,54, 5078375876716630.,9007199254740053.,-.497774074484772309953,-52,54, 5078375876716735.,9007199254740858.,.496821486243533277885,-52,54, 5078375876716744.,9007199254740928.,-.417927465697671569994,-52,54, 5078375876716752.,9007199254740989.,-.008815422979223853483,-52,54, 5078375876716753.,4503599627370498.,.333661791180275129922,-52,53, 5088757830344157.,4543257237107282.,.499997177368455282950,-52,53, 5088757830351559.,4543257237135423.,.499923325047342022153,-52,53, 5088757830353436.,4543257237142559.,.497878088222415312553,-52,53, 5088757830353451.,4543257237142617.,-.474967238705754905508,-52,53, 5088757830353486.,4543257237142750.,-.411606334874501277455,-52,53, 5088757830353547.,4543257237142981.,.498822668935591677416,-52,53, 5088757830353658.,4543257237143403.,.499767249606301242588,-52,53, 5088757830356862.,4543257237155585.,-.499994602310883064162,-52,53, 5106532173885847.,4610295455200265.,-.499997759594665717564,-52,53, 5106532173938359.,4610295455396759.,-.499988972013275359713,-52,53, 5106532173942396.,4610295455411865.,-.499874413266485517245,-52,53, 5106532173943074.,4610295455414401.,.499897112507838968625,-52,53, 5241359265431037.,5087730131580932.,.499969264971833089149,-52,53, 5241359265575346.,5087730132065703.,-.499941194922803715421,-52,53, 5241359265597211.,5087730132139153.,-.499932077357967935606,-52,53, 5241359265598330.,5087730132142912.,-.499245614336891974330,-52,53, 5241359265598600.,5087730132143818.,.498239054565534801819,-52,53, 5241359265598625.,5087730132143902.,.479487635010432466304,-52,53, 5241359265598639.,5087730132143950.,-.491013159941093422525,-52,53, 5241359265598703.,5087730132144165.,-.499016794011324511475,-52,53, 5265125201200186.,5166884948113088.,.499990190639750782424,-52,53, 5265125201278958.,5166884948373224.,.499979457021866023028,-52,53, 5265125201284226.,5166884948390621.,.499521206622962389868,-52,53, 5265125201284269.,5166884948390764.,-.497635153698434894168,-52,53, 5265125201284312.,5166884948390906.,-.494791514024153850487,-52,53, 5265125201284937.,5166884948392970.,-.499971170409143596483,-52,53, 5358638315440300.,5466054987788084.,.499997341548197502239,-52,53, 5358638315489314.,5466054987940115.,-.499986802782939617606,-52,53, 5358638315492144.,5466054987948893.,-.499822813222855165044,-52,53, 5358638315493785.,5466054987953982.,.499565556531551037701,-52,53, 5358638315494001.,5466054987954652.,.481203513398246781333,-52,53, 5358638315494011.,5466054987954683.,.498871937325033162509,-52,53, 5361875182249858.,5476084687287170.,-.470595082245130066003,-52,53, 5361875182249868.,5476084687287200.,.483449414446688376101,-52,53, 5361875182249931.,5476084687287395.,.493929743600637195800,-52,53, 5361875182249973.,5476084687287526.,-.499083370301052389084,-52,53, 5361875182250256.,5476084687288402.,-.499624114062103193115,-52,53, 5361875182250539.,5476084687289277.,.499835142019859527700,-52,53, 5361875182255979.,5476084687306117.,-.499958693843194533649,-52,53, 5361875182259700.,5476084687317634.,.499998467004096869326,-52,53, 5432341888717928.,5689527433623894.,-.499997571457318559128,-52,53, 5432341888720019.,5689527433630093.,.499948261320095984409,-52,53, 5432341888726292.,5689527433648693.,.499785713861371121357,-52,53, 5432341888726607.,5689527433649628.,-.497353009845124749728,-52,53, 5432341888726608.,5689527433649630.,.467735438650769315231,-52,53, 5432341888726693.,5689527433649883.,-.499746439204614975496,-52,53, 5438257955007275.,5707038642201762.,.481383203615295088743,-52,53, 5438257955007341.,5707038642201957.,.498843817239413053878,-52,53, 5438257955007518.,5707038642202481.,-.499784537169459926896,-52,53, 5438257955008204.,5707038642204507.,.499881840146411177849,-52,53, 5438257955014046.,5707038642221769.,.499956116616797966876,-52,53, 5438257955016967.,5707038642230400.,.499993232719855836172,-52,53, 5627653235341647.,6238389060012051.,-.499997388150865220772,-52,53, 5627653235354255.,6238389060045703.,-.499945943790568806352,-52,53, 5627653235357365.,6238389060054003.,.397909353282915548944,-52,53, 5627653235357401.,6238389060054099.,.485472951502321937965,-52,53, 5627653235357407.,6238389060054116.,-.499933115461276523397,-52,53, 5648553535545348.,6293888536683039.,-.499996968071346180418,-52,53, 5648553535546694.,6293888536686594.,.499964056710538848874,-52,53, 5648553535553424.,6293888536704374.,.499769145730913472150,-52,53, 5648553535554097.,6293888536706152.,.499749651434787969864,-52,53, 5648553535554111.,6293888536706189.,.486376288991547524050,-52,53, 5674809791146915.,6362817349066071.,-.499634076107302532298,-52,53, 5674809791147214.,6362817349066851.,-.483502931245409242279,-52,53, 5674809791147283.,6362817349067031.,-.479780359369969619314,-52,53, 5674809791147296.,6362817349067064.,.433964473011697679245,-52,53, 5674809791147715.,6362817349068158.,-.499952083414648657900,-52,53, 5674809791150938.,6362817349076566.,-.499983263405109582020,-52,53, 5674809791154161.,6362817349084973.,.499985543704433729050,-52,53, 5674809791217021.,6362817349248959.,.499995131603423763438,-52,53, 5676165846161903.,6366353815883724.,.499425215461757419731,-52,53, 5676165846161959.,6366353815883870.,.495178018113378758116,-52,53, 5676165846162015.,6366353815884016.,.490930820761112258375,-52,53, 5676165846162837.,6366353815886160.,-.499983397964171225701,-52,53, 5676165846191562.,6366353815961048.,-.499997224418173251454,-52,53, 5679432883882566.,6374864594926453.,.499966834957299563614,-52,53, 5679432883882833.,6374864594927149.,-.492364292219695370500,-52,53, 5679432883882853.,6374864594927201.,-.431864751187807860175,-52,53, 5679432883882896.,6374864594927312.,.498209262029077889766,-52,53, 5679432883896781.,6374864594963456.,-.499984496512258299598,-52,53, 5679432883934335.,6374864595061210.,-.499997817860176748183,-52,53, 5770212341039937.,6606261536735739.,.499987217968874154130,-52,53, 5770212341041052.,6606261536738524.,-.450789081008633634391,-52,53, 5770212341041066.,6606261536738559.,-.494117213919343419990,-52,53, 5770212341041068.,6606261536738563.,.499693052807680324324,-52,53, 5770212341063686.,6606261536795038.,.499999185491856547962,-52,53, 5794885835783937.,6667535065795440.,-.499993352339193730652,-52,53, 5794885835815190.,6667535065872634.,-.499969168764549880454,-52,53, 5794885835818603.,6667535065881064.,-.489343611263243019155,-52,53, 5794885835818620.,6667535065881106.,-.499838590937892289028,-52,53, 5794885835829959.,6667535065909113.,-.499990103225405634075,-52,53, 5818856945580347.,6726436547140088.,-.499998869906994064412,-52,53, 5818856945594333.,6726436547174277.,-.499985115464394121852,-52,53, 5818856945595379.,6726436547176833.,.463693868658868460275,-52,53, 5818856945595550.,6726436547177251.,.475920547598683299455,-52,53, 5818856945595874.,6726436547178043.,.499086886558527966652,-52,53, 5818856945595883.,6726436547178065.,.499730395972509229609,-52,53, 5843024995981468.,6785212468858840.,.499981772639263348867,-52,53, 5843024995982400.,6785212468861096.,-.497267958113552556349,-52,53, 5843024995982419.,6785212468861141.,.473818152516390492743,-52,53, 5843024995982431.,6785212468861171.,-.491811672349098376654,-52,53, 5843024995982574.,6785212468861517.,-.498900418674146228128,-52,53, 5843024995982748.,6785212468861937.,.499467120734374916236,-52,53, 5843024995983301.,6785212468863276.,-.499973975488431237892,-52,53, 5843024996004744.,6785212468915157.,.499997888266092184431,-52,53, 5964309486566633.,7071475383355299.,.499999965452235290079,-52,53, 5964309486582715.,7071475383392344.,-.499957096601653238496,-52,53, 5964309486587767.,7071475383403981.,-.496585864719903292420,-52,53, 5964309486587777.,7071475383404004.,-.462137386453091960708,-52,53, 5964309486587912.,7071475383404315.,-.497082929859932970438,-52,53, 5964309486588637.,7071475383405985.,-.499568255843443190591,-52,53, 5964309486588782.,7071475383406318.,.499934678903182399366,-52,53, 5978738329838536.,7104618347118916.,-.499989574006959732522,-52,53, 5978738329842005.,7104618347126862.,-.499956808230798235558,-52,53, 5978738329842387.,7104618347127736.,.499181996688969134667,-52,53, 5978738329842411.,7104618347127791.,.472949879716262662408,-52,53, 5978738329842418.,7104618347127808.,-.493034487734206151840,-52,53, 5978738329898920.,7104618347257230.,-.499997285389555917582,-52,53, 6139790562155094.,7462608193746914.,.499996692795458110217,-52,53, 6139790562167903.,7462608193774562.,-.499981436513035111199,-52,53, 6139790562171312.,7462608193781920.,-.499897566754658961469,-52,53, 6139790562172139.,7462608193783705.,-.499583880704129387824,-52,53, 6139790562172240.,7462608193783922.,.499245239322001933795,-52,53, 6139790562172341.,7462608193784140.,.498074359340370513888,-52,53, 6139790562172360.,7462608193784182.,-.492244915112487070677,-52,53, 6139790562172366.,7462608193784194.,.458180577165500829232,-52,53, 6139790562202921.,7462608193850144.,.499999647521315819549,-52,53, 6190687021002773.,7571492370991915.,-.499996901216076855416,-52,53, 6190687021033943.,7571492371058012.,-.481164955799085324577,-52,53, 6190687021033976.,7571492371058081.,.496429572353699066371,-52,53, 6190687021034059.,7571492371058258.,-.499317523507951964803,-52,53, 6190687021034283.,7571492371058733.,-.499887999111401567009,-52,53, 6190687021037809.,7571492371066210.,-.499939329715353447103,-52,53, 6190687021041335.,7571492371073687.,-.499990669365358429984,-52,53, 6191107172163530.,7572383251250693.,.499996789942070108453,-52,53, 6191107172189198.,7572383251305115.,.499979752696650376507,-52,53, 6191107172201458.,7572383251331109.,.489374593852272198457,-52,53, 6191107172201508.,7572383251331216.,-.499249407835042279082,-52,53, 6191107172202032.,7572383251332326.,.499971054372519113016,-52,53, 6234082493771038.,7662837277718069.,-.499947955834928542759,-52,53, 6234082493773540.,7662837277723297.,-.468970353896009506202,-52,53, 6234082493773551.,7662837277723320.,-.484022011131387197511,-52,53, 6234082493773562.,7662837277723343.,-.499073668366849715198,-52,53, 6234082493773629.,7662837277723483.,-.499842853348316879301,-52,53, 6234082493789242.,7662837277756107.,-.499981522975930076797,-52,53, 6234082493798344.,7662837277775126.,-.499998393664946361355,-52,53, 6319178667599219.,7838170078525813.,-.499996519412543550238,-52,53, 6319178667602349.,7838170078532173.,-.499544383471893996930,-52,53, 6319178667609235.,7838170078546165.,-.498549706937117194348,-52,53, 6319178667609329.,7838170078546356.,-.495341240756738555215,-52,53, 6345705003149390.,7891841962477203.,.499997786451857971709,-52,53, 6345705003159729.,7891841962498034.,.499988364262427747864,-52,53, 6345705003170068.,7891841962518865.,.499978873689366155706,-52,53, 6345705003171477.,7891841962521704.,.350833557221702072311,-52,53, 6345705003171487.,7891841962521724.,.498816911961892345625,-52,53, 6345705003171825.,7891841962522406.,-.499345697857300076026,-52,53, 6420396283795305.,8040579839459300.,-.499994432671696023644,-52,53, 6420396283806567.,8040579839481467.,.499719322418190960795,-52,53, 6420396283806662.,8040579839481654.,.496697905535464327557,-52,53, 6420396283806724.,8040579839481777.,-.463168703380410545462,-52,53, 6420396283806725.,8040579839481779.,-.494779455137137216616,-52,53, 6420396283808212.,8040579839484706.,-.499967318057424551229,-52,53, 6420396283830388.,8040579839528357.,-.499998443543432821542,-52,53, 6442675752377705.,8084285555713857.,.499998265725258586647,-52,53, 6442675752378595.,8084285555715597.,.499654368276551796168,-52,53, 6442675752390254.,8084285555738391.,.495149268287009299780,-52,53, 6442675752392123.,8084285555742045.,.494427069183631529517,-52,53, 6442675752392167.,8084285555742132.,-.483118022741048248544,-52,53, 6442675752392168.,8084285555742133.,.471937770624286586306,-52,53, 6442675752392212.,8084285555742219.,.494392678698431831173,-52,53, 6492836060963972.,8181614496572311.,.499988677033232725203,-52,53, 6492836060964417.,8181614496573168.,.499569313082324430184,-52,53, 6492836060965132.,8181614496574545.,.476423593238752977486,-52,53, 6492836060965145.,8181614496574571.,-.487633601670198739818,-52,53, 6492836060965199.,8181614496574675.,-.492178872831493802056,-52,53, 6492836060965280.,8181614496574831.,-.498996779576561794523,-52,53, 6492836060992573.,8181614496627393.,-.499998583153859236073,-52,53, 6671477663156628.,8516907964982875.,-.499979320523764169746,-52,53, 6671477663237120.,8516907965130173.,.499966741486441262072,-52,53, 6671477663238314.,8516907965132358.,.499791986478413803677,-52,53, 6671477663238661.,8516907965132994.,-.496071196225657492932,-52,53, 6671477663238861.,8516907965133360.,-.499450552278624645870,-52,53, 6671477663242443.,8516907965139915.,-.499974822600773730900,-52,53, 6863840991801811.,8859989244334199.,-.499997168374311180895,-52,53, 6863840991833587.,8859989244389454.,.499777336404647604332,-52,53, 6863840991833790.,8859989244389808.,-.498965293926847073955,-52,53, 6863840991833924.,8859989244390041.,-.483356980953740386492,-52,53, 6863840991833928.,8859989244390047.,.472332819433393746790,-52,53, 6863840991833993.,8859989244390161.,-.497707924276674197327,-52,53, 6863840991834422.,8859989244390907.,-.499976832810261866975,-52,53, 6863840991838394.,8859989244397813.,.499994947228228310231,-52,53, 6872244953278135.,8874587399272331.,-.499994547289605743362,-52,53, 6872244953283690.,8874587399281970.,-.499763692100584866478,-52,53, 6872244953283977.,8874587399282468.,-.499211711294404394410,-52,53, 6872244953284011.,8874587399282526.,.497369359600080036052,-52,53, 6872244953284045.,8874587399282585.,.493950430494052878092,-52,53, 6872244953284060.,8874587399282612.,-.478146155876415858330,-52,53, 6872244953285446.,8874587399285017.,-.499870736937396323042,-52,53, 6872244953287202.,8874587399288064.,-.499977783138828294666,-52,53, 6872244953334293.,8874587399369775.,.499998409083886422345,-52,53, 6948383626888368.,9005439764267704.,.499482316016871265912,-52,53, 6948383626888415.,9005439764267785.,-.493694058736925784995,-52,53, 6948383626888442.,9005439764267830.,.467672704701960248612,-52,53, 6948383626888452.,9005439764267847.,.490401135605173215961,-52,53, 6948383626891008.,9005439764272198.,.499788073080994646363,-52,53, 6948383626892768.,9005439764275194.,.499991909487955224406,-52,53, 6948383626951681.,9005439764375480.,.499996048907117739258,-52,53, 6949417371915066.,9007199254670376.,-.499997302186109394160,-52,53, 6949417371951281.,9007199254732008.,-.499968570539847015614,-52,53, 6949417371956560.,9007199254740991.,.493629386100644303756,-52,53, 6949417371956561.,4503599627370497.,-.402267178710356345727,-52,52, 6949417371956617.,4503599627370544.,.249148002691310869731,-52,52, 6949417371957489.,4503599627371286.,.249755827289001129308,-52,52, 6949417371957925.,4503599627371657.,.250059739527651814393,-52,52, 6949417371961138.,4503599627374391.,.250005770452497485270,-52,52, 6968649149660986.,4519925405975342.,-.499995440227575947212,-52,52, 6968649149671664.,4519925405984385.,-.498791044124299550954,-52,52, 6968649149671873.,4519925405984561.,.499453169796883163369,-52,52, 6968649149672931.,4519925405985458.,-.499865594320924683212,-52,52, 6968649149678639.,4519925405990292.,-.499970991152655345667,-52,52, 6968649149699146.,4519925406007659.,-.499999318590428629474,-52,52, 6997291737950032.,4544097165537353.,-.499998297763499755130,-52,52, 6997291737954515.,4544097165541122.,.499975050947110232690,-52,52, 6997291737957533.,4544097165543661.,-.498704503815925594724,-52,52, 6997291737957665.,4544097165543772.,-.492682536074857772809,-52,52, 6997291737957684.,4544097165543787.,.485456989584547057252,-52,52, 6997291737957992.,4544097165544046.,.499508247631935166947,-52,52, 6997291737958998.,4544097165544892.,.499948395534222727980,-52,52, 7016625066959077.,4560317419285792.,.486371057673769161358,-52,52, 7016625066959083.,4560317419285798.,-.491566508686277856387,-52,52, 7016625066959126.,4560317419285833.,.499880932399838134363,-52,52, 7016625066961347.,4560317419287692.,.499991784268031096356,-52,52, 7016625066979704.,4560317419303058.,-.499992536918206944024,-52,52, 7021455653564539.,4564358305913330.,-.499989776727750984455,-52,52, 7021455653586897.,4564358305932021.,.499961626850646853825,-52,52, 7021455653589800.,4564358305934449.,-.499597423209602928571,-52,52, 7021455653589916.,4564358305934545.,.480096393562764400936,-52,52, 7021455653589922.,4564358305934550.,.496287453050916258868,-52,52, 7021455653590294.,4564358305934862.,-.499866858697891208759,-52,52, 7021455653605364.,4564358305947461.,-.499989135070282902178,-52,52, 7143909179063442.,4665251770615504.,-.499999922548068734520,-52,52, 7143909179064086.,4665251770616027.,-.499992864612868130725,-52,52, 7143909179093066.,4665251770639562.,-.499675338508499701591,-52,52, 7143909179128486.,4665251770668327.,-.499287466210949434989,-52,52, 7143909179128965.,4665251770668716.,-.497729427436833946461,-52,52, 7143909179128981.,4665251770668728.,.496059567594539755299,-52,52, 7143909179129130.,4665251770668850.,-.499280416178111664822,-52,52, 7190497239683270.,4702883505905670.,.497797711406235209418,-52,52, 7190497239683387.,4702883505905764.,.499719852079994376594,-52,52, 7190497239684959.,4702883505907027.,.499904511144876959406,-52,52, 7190497239686007.,4702883505907870.,-.499972383064288454892,-52,52, 7190497239702134.,4702883505920827.,-.499986409396925948972,-52,52, 7190497239718261.,4702883505933783.,.499999516451582563459,-52,52, 7198073455274710.,4708965234968179.,-.499991632927791498780,-52,52, 7198073455283707.,4708965234975395.,-.499903331640269303158,-52,52, 7198073455284490.,4708965234976023.,-.498561869641762205196,-52,52, 7198073455285076.,4708965234976492.,.499887806825182189880,-52,52, 7198073455288890.,4708965234979552.,-.499963617842716031458,-52,52, 7198073455308253.,4708965234995082.,-.499995944152683233765,-52,52, 7233217877655696.,4737040288044622.,.499992666966780030279,-52,52, 7233217877737936.,4737040288110058.,.499982144837007560301,-52,52, 7233217877741817.,4737040288113146.,.499932980131605456081,-52,52, 7233217877742463.,4737040288113661.,-.496467885990308569989,-52,52, 7233217877742468.,4737040288113664.,.481888144457371860917,-52,52, 7233217877742556.,4737040288113735.,-.499045719664187658733,-52,52, 7233217877742972.,4737040288114066.,-.499823986439483291335,-52,52, 7360340063864506.,4836768463721821.,-.499996107284985150849,-52,52, 7360340063886466.,4836768463738809.,-.499928528895958865546,-52,52, 7360340063886625.,4836768463738932.,-.499381591806868706671,-52,52, 7360340063888268.,4836768463740203.,-.493729908801634004181,-52,52, 7360340063888480.,4836768463740367.,-.493000659414637469031,-52,52, 7360340063888489.,4836768463740373.,.469294450228983044186,-52,52, 7376366427605820.,4849144756296036.,.478509609657858206923,-52,52, 7376366427605833.,4849144756296047.,-.499699415110483281785,-52,52, 7376366427607806.,4849144756297567.,.499807825490940147528,-52,52, 7376366427611202.,4849144756300185.,.499973353157149822549,-52,52, 7376366427684168.,4849144756356435.,.499995825271386539881,-52,52, 7417783623952546.,4880931656541628.,-.499816957249002271773,-52,52, 7417783623952919.,4880931656541913.,-.498545906792005742020,-52,52, 7417783623952936.,4880931656541925.,.490788162531230760588,-52,52, 7417783623952953.,4880931656541938.,.480122231854420114863,-52,52, 7417783623953203.,4880931656542129.,.499740898366465720484,-52,52, 7417783623959578.,4880931656547001.,-.499983109021493154866,-52,52, 7417783624013863.,4880931656588479.,-.499986160541259271315,-52,52, 7424772695357273.,4886267875714273.,.499997470882860186169,-52,52, 7424772695360538.,4886267875716764.,.499971236484127298321,-52,52, 7424772695362837.,4886267875718518.,.499646484178617537780,-52,52, 7424772695363803.,4886267875719255.,.499945000352382303398,-52,52, 7545254496737148.,4977031707744784.,-.499999028779837914512,-52,52, 7545254496780886.,4977031707777321.,.499983949949436918823,-52,52, 7545254496796495.,4977031707788933.,.499657716746990513012,-52,52, 7545254496796526.,4977031707788957.,-.438519624133836543639,-52,52, 7545254496796534.,4977031707788963.,-.487081518554719032128,-52,52, 7545254496797401.,4977031707789608.,-.499976826475954865185,-52,52, 7602884003724941.,5019652019023750.,.499993024230517584938,-52,52, 7602884003725364.,5019652019024062.,-.499985630523433699198,-52,52, 7602884003732555.,5019652019029349.,-.499622765419017900341,-52,52, 7602884003734198.,5019652019030556.,.474455412802653865750,-52,52, 7602884003734213.,5019652019030568.,-.497175035967716570563,-52,52, 7602884003734247.,5019652019030593.,-.499537386514013657309,-52,52, 7602884003771928.,5019652019058296.,.499999833068115109169,-52,52, 7736954682052246.,5116912930036804.,-.499987488060468492674,-52,52, 7736954682053330.,5116912930037580.,-.499818899057670330384,-52,52, 7736954682056019.,5116912930039504.,.467388974612989490388,-52,52, 7736954682056033.,5116912930039514.,.489531373357604287090,-52,52, 7736954682056040.,5116912930039520.,-.499397427270098600297,-52,52, 7736954682075911.,5116912930053745.,-.499997065348929334759,-52,52, 7845121518179364.,5193540593052287.,.499999750567471369117,-52,52, 7845121518201381.,5193540593067723.,.499996939068392513996,-52,52, 7845121518210608.,5193540593074192.,.499950322148453826686,-52,52, 7845121518210792.,5193540593074322.,-.498641698939454776386,-52,52, 7845121518210879.,5193540593074382.,.496589247609799712987,-52,52, 7845121518210889.,5193540593074390.,-.492464666580005797805,-52,52, 7845121518210899.,5193540593074397.,-.481518580769824637979,-52,52, 8270159510157866.,5480193677978453.,-.496639390676845450711,-52,52, 8270159510157886.,5480193677978465.,.488839498884603110926,-52,52, 8270159510157889.,5480193677978467.,.436661332318816544847,-52,52, 8270159510158077.,5480193677978590.,-.499837105805811994080,-52,52, 8270159510160281.,5480193677980020.,.499936523545314897981,-52,52, 8270159510168407.,5480193677985297.,-.499990653503905330143,-52,52, 8270159510194989.,5480193678002556.,-.499998608054093795543,-52,52, 8300391572313768.,5499771768521310.,.499999299184784536643,-52,52, 8300391572322187.,5499771768526748.,.499968698796883794257,-52,52, 8300391572322910.,5499771768527216.,-.499915150490317205164,-52,52, 8300391572325079.,5499771768528617.,-.499566698697814141226,-52,52, 8300391572325127.,5499771768528648.,-.495409609867333551851,-52,52, 8300391572325161.,5499771768528669.,.465868328054103128808,-52,52, 8300391572325175.,5499771768528679.,-.491252521037107058331,-52,52, 8313067990198533.,5507950873322779.,-.499992047687545345059,-52,52, 8313067990203200.,5507950873325786.,.499987812606417797873,-52,52, 8313067990205037.,5507950873326970.,.493123231569444916713,-52,52, 8313067990205082.,5507950873326999.,.496765634315661493585,-52,52, 8313067990205127.,5507950873327029.,-.499591962938344151462,-52,52, 8313067990248500.,5507950873354984.,-.499993526222350910889,-52,52, 8352209008752700.,5533094617749004.,.499985836440784469987,-52,52, 8352209008753003.,5533094617749198.,.499564347682994918150,-52,52, 8352209008753609.,5533094617749586.,.498721370137646914282,-52,52, 8352209008753634.,5533094617749603.,-.494712746098574730271,-52,52, 8352209008753684.,5533094617749635.,-.481580978571220674482,-52,52, 8352209008769301.,5533094617759633.,.499995277700162002306,-52,52, 8581012629609056.,5676840429734464.,-.499996402665943867230,-52,52, 8581012629615897.,5676840429738682.,-.499908422388017153553,-52,52, 8581012629616935.,5676840429739322.,-.493463265136988605657,-52,52, 8581012629616948.,5676840429739330.,-.477968287253019291994,-52,52, 8581012629616995.,5676840429739359.,-.498871059518808526035,-52,52, 8581012629617188.,5676840429739478.,-.499599464782750453991,-52,52, 8581012629618672.,5676840429740392.,.499981087364886235996,-52,52, 8633217711568164.,5708894574953416.,.499996686558876624478,-52,52, 8633217711578873.,5708894574959964.,.499954202621411620204,-52,52, 8633217711580026.,5708894574960669.,.499856248460819803637,-52,52, 8633217711581964.,5708894574961854.,.486682063292335922200,-52,52, 8633217711582000.,5708894574961876.,.498821242511754963359,-52,52, 8633217711582332.,5708894574962079.,.499660339751564212934,-52,52, 8633217711588429.,5708894574965808.,-.499990337242482516310,-52,52, 8733683808952761.,5769839192013892.,-.499983044149714999671,-52,52, 8733683808956335.,5769839192016042.,.499884067929716837316,-52,52, 8733683808956875.,5769839192016367.,.497066004177682336444,-52,52, 8733683808956983.,5769839192016432.,.496502391423990672154,-52,52, 8733683808956988.,5769839192016436.,-.494264442499817868142,-52,52, 8733683808956998.,5769839192016442.,-.475798110347441989122,-52,52, 8733683808975830.,5769839192027775.,.499998582352417981398,-52,52, 8899157617727365.,5868168336808327.,-.499992466647818896654,-52,52, 8899157617751779.,5868168336822652.,-.499949409373017570258,-52,52, 8899157617754995.,5868168336824538.,.499318976637311121852,-52,52, 8899157617755041.,5868168336824565.,.489980153793744387106,-52,52, 8899157617755312.,5868168336824725.,-.499820302527597178056,-52,52, 8899157617756384.,5868168336825353.,.499935825908680989156,-52,52, 8899157617788936.,5868168336844453.,.499993140143318941553,-52,52, 8922510259453986.,5881846477197613.,.485087075071261263933,-52,52, 8922510259453998.,5881846477197621.,-.498610299538881652033,-52,52, 8922510259454181.,5881846477197728.,-.499995262345130053565,-52,52, 9006076593794525.,5930402871388207.,.499996874692613360448,-52,52, 9006076593822609.,5930402871404425.,-.499929339722465357227,-52,52, 9006076593822990.,5930402871404645.,-.492913668903219232889,-52,52, 9006076593823002.,5930402871404651.,.436441155374350696719,-52,52, 9006076593823274.,5930402871404809.,-.498182827670699800676,-52,52, 9006076593827167.,5930402871407057.,-.499988585696123770834,-52,52, 9007199254739116.,5931051093852153.,.499881183415546655650,-52,52, 9007199254740926.,5931051093853199.,-.496131583211613976082,-52,52, 9007199254740952.,5931051093853214.,-.485024584281226328062,-52,52, 9007199254740990.,5931051093853235.,.454285644924620924362,-52,52, 9007199254740991.,5931051093853236.,.031635914114246817068,-52,52, 4503599627370497.,5931051093853238.,-.236313278316876017602,-51,52, 4503599627370547.,5931051093853295.,.498713640645256015270,-51,52, 4503599627370909.,5931051093853714.,-.499691466094401253129,-51,52, 4503599627374600.,5931051093857975.,.499995688873204897484,-51,52, 4503599627409713.,5931051093898520.,.499999539525320554147,-51,52, 4788213549069671.,6246661566468673.,.499994892209822010304,-51,52, 4788213549070310.,6246661566469355.,-.473769606548075063686,-51,52, 4788213549070325.,6246661566469371.,-.487238256755061288719,-51,52, 4788213549070340.,6246661566469386.,.499293093037888184107,-51,52, 4822659400860671.,6283204483340570.,.499963377095760438230,-51,52, 4822659401073703.,6283204483565537.,.499954869695349000343,-51,52, 4822659401075006.,6283204483566913.,.499809260514230198143,-51,52, 4822659401076309.,6283204483568289.,.499663650857691021078,-51,52, 4822659401076416.,6283204483568402.,.494279475676744469031,-51,52, 4822659401076434.,6283204483568422.,-.497280479026907356550,-51,52, 4882991802327536.,6346413280900654.,-.498976105487308854952,-51,52, 4882991802327612.,6346413280900732.,.497269441589074976705,-51,52, 4882991802327815.,6346413280900944.,-.499601005043503392384,-51,52, 4882991802328094.,6346413280901233.,.499774095379256852172,-51,52, 4882991802334486.,6346413280907877.,.499794311486991650840,-51,52, 4882991802393612.,6346413280969334.,.499980786817803623853,-51,52, 4882991802400004.,6346413280975979.,-.499999110299485342031,-51,52, 4942700989126384.,6407999959847795.,-.499999371945048838282,-51,52, 4942700989152707.,6407999959874738.,-.499980981662274623374,-51,52, 4942700989156613.,6407999959878736.,-.499826309841436405506,-51,52, 4942700989157080.,6407999959879213.,.499680149630676700725,-51,52, 4942700989157165.,6407999959879301.,-.498268353469394790035,-51,52, 4942700989157333.,6407999959879472.,.458727546280204406447,-51,52, 4942700989157335.,6407999959879475.,-.494165359675201932674,-51,52, 4942700989164892.,6407999959887209.,.499989480358141048982,-51,52, 5322127222038518.,6778787770640275.,-.499995223444201392806,-51,52, 5322127222128764.,6778787770724557.,-.499972365685541744242,-51,52, 5322127222135997.,6778787770731311.,.499763451193784297325,-51,52, 5322127222136224.,6778787770731523.,.498234352496508967767,-51,52, 5322127222136254.,6778787770731552.,-.484346585658139934325,-51,52, 5322127222141853.,6778787770736780.,.499964320044352020689,-51,52, 5358895155324120.,6812982258061983.,-.499982684828160326882,-51,52, 5358895155328736.,6812982258066258.,-.499907450986534489337,-51,52, 5358895155329846.,6812982258067286.,-.499456084763519386427,-51,52, 5358895155330374.,6812982258067774.,.495353213673427178901,-51,52, 5358895155330387.,6812982258067787.,-.465001860418825429904,-51,52, 5358895155330401.,6812982258067800.,-.499230401748983290923,-51,52, 5358895155332797.,6812982258070018.,.499942095712330388900,-51,52, 5678778009585157.,7099027783509822.,.499999678122856837720,-51,52, 5678778009589888.,7099027783513909.,.499986691302060155369,-51,52, 5678778009604081.,7099027783526170.,.499947706598836295999,-51,52, 5678778009606351.,7099027783528131.,.499730096287627811782,-51,52, 5678778009606358.,7099027783528138.,-.453134010882171281493,-51,52, 5678778009606542.,7099027783528297.,-.499847685062919289978,-51,52, 5900045005108267.,7285897773775600.,-.499996180038940014374,-51,52, 5900045005111798.,7285897773778516.,-.499920764183196453910,-51,52, 5900045005111976.,7285897773778662.,.497534184508777240374,-51,52, 5900045005111999.,7285897773778681.,.491587352036013115529,-51,52, 5900045005112005.,7285897773778686.,.446557743564843003277,-51,52, 5900045005112131.,7285897773778791.,-.499064034331091801266,-51,52, 5945422757920584.,7323204409462203.,-.499994285754659600053,-51,52, 5945422757944012.,7323204409481377.,.498856756627981688575,-51,52, 5945422757944034.,7323204409481396.,-.494912463025374947731,-51,52, 5945422757944144.,7323204409481486.,-.463758561293324939434,-51,52, 5945422757944155.,7323204409481495.,-.460643171120226896203,-51,52, 5945422757944337.,7323204409481643.,.499993284468208953083,-51,52, 5996555356296445.,7364846046318524.,-.499741133217297734325,-51,52, 5996555356296619.,7364846046318664.,.498472392921953983875,-51,52, 5996555356296788.,7364846046318801.,.445013116581380253694,-51,52, 5996555356296793.,7364846046318805.,.496685919056442775571,-51,52, 5996555356298148.,7364846046319904.,-.499984610346565588846,-51,52, 5996555356306547.,7364846046326709.,.499988979920968694787,-51,52, 5996555356343491.,7364846046356646.,.499991743601270734710,-51,52, 6033267816829380.,7394489941670268.,.499995763055682110283,-51,52, 6033267816851975.,7394489941688448.,.499885999799941340656,-51,52, 6033267816852062.,7394489941688519.,-.499671847195303349119,-51,52, 6033267816852671.,7394489941689009.,-.496576776194853987373,-51,52, 6033267816852845.,7394489941689149.,-.495692470205280608604,-51,52, 6033267816852860.,7394489941689161.,-.426650719689157710529,-51,52, 6033267816858797.,7394489941693938.,-.499925868145362751915,-51,52, 6033267816872354.,7394489941704846.,-.499991778399290916200,-51,52, 6134612617349938.,7475247441943925.,-.499997159552398466519,-51,52, 6134612617365746.,7475247441956401.,-.499971550679664158246,-51,52, 6134612617405266.,7475247441987591.,-.499907691050767178951,-51,52, 6134612617405878.,7475247441988074.,-.496870266710341483381,-51,52, 6134612617405897.,7475247441988088.,.498322071626133390311,-51,52, 6134612617406305.,7475247441988411.,-.499652978845673480000,-51,52, 6597896828391946.,7825848188137970.,.499996072050174991968,-51,52, 6597896828408121.,7825848188149717.,-.495482073574032965321,-51,52, 6597896828408132.,7825848188149724.,.492527183935627333145,-51,52, 6597896828408373.,7825848188149900.,-.497451810629234363137,-51,52, 6597896828408709.,7825848188150143.,.499921873284857963204,-51,52, 6597896828420885.,7825848188158985.,.499987266587390495435,-51,52, 6637929922643094.,7854820184593200.,-.499999576758453789340,-51,52, 6637929922670798.,7854820184613180.,.499962568729023592821,-51,52, 6637929922671415.,7854820184613625.,.499853436980760960767,-51,52, 6637929922673101.,7854820184614841.,.496313734752807081642,-51,52, 6637929922673137.,7854820184614867.,.460650965306411545160,-51,52, 6637929922673144.,7854820184614873.,-.490727906530406065736,-51,52, 6637929922673266.,7854820184614960.,.499526041455520824081,-51,52, 6637929922679827.,7854820184619692.,.499986307088817129981,-51,52, 6869894088669545.,8018905814021938.,.499998612908857956833,-51,52, 6869894088681018.,8018905814029899.,.499993370677466804933,-51,52, 6869894088690090.,8018905814036194.,.470092936744257247272,-51,52, 6869894088690103.,8018905814036203.,.490662964775368843165,-51,52, 6869894088690544.,8018905814036509.,.496153915665595395512,-51,52, 6869894088690838.,8018905814036713.,.499814549580186459003,-51,52, 6869894088692491.,8018905814037860.,.499988113550531609678,-51,52, 7015678990828224.,8118881663733338.,-.499952540474160256521,-51,52, 7015678990830111.,8118881663734616.,.499930749744938366282,-51,52, 7015678990831399.,8118881663735490.,-.499618970770893173407,-51,52, 7015678990845896.,8118881663745316.,-.499985674335215538988,-51,52, 7015678990854732.,8118881663751304.,.499997746120378196226,-51,52, 7110554443477601.,8182708111230863.,.499623199521373565093,-51,52, 7110554443477914.,8182708111231073.,-.499025878791506143288,-51,52, 7110554443477956.,8182708111231101.,-.454116170450881539114,-51,52, 7110554443478007.,8182708111231135.,-.399582953180370617468,-51,52, 7110554443479160.,8182708111231904.,.499962135235399289025,-51,52, 7110554443496929.,8182708111243769.,.499976580880101501991,-51,52, 7110554443526544.,8182708111263545.,-.499999416279207530453,-51,52, 7402099550016234.,8373083816254618.,-.499965067178043374639,-51,52, 7402099550020214.,8373083816257159.,.498070458474000888590,-51,52, 7402099550020250.,8373083816257182.,.491017513473025275443,-51,52, 7402099550020261.,8373083816257190.,-.483359775277297408034,-51,52, 7402099550020488.,8373083816257334.,.499945265963475048611,-51,52, 7402099550027435.,8373083816261772.,-.499966095438331643347,-51,52, 7402099550195450.,8373083816369082.,-.499982950893009295613,-51,52, 7487002011812391.,8426970706170517.,.499998225982125139343,-51,52, 7487002011875837.,8426970706210534.,.499987826152361164280,-51,52, 7487002011876208.,8426970706210768.,.499089362452485324103,-51,52, 7487002011876338.,8426970706210850.,.493383701314741739444,-51,52, 7487002011876357.,8426970706210862.,.477165181609863495190,-51,52, 7577399261588474.,8483611571883287.,-.499973160031562568285,-51,52, 7577399261594598.,8483611571887098.,.489051221902257694637,-51,52, 7577399261594614.,8483611571887108.,.448526138637044842024,-51,52, 7577399261594643.,8483611571887127.,-.499925574781212246998,-51,52, 7577399261604168.,8483611571893055.,.499985789777579431471,-51,52, 7577399261647894.,8483611571920273.,.499998737546349563843,-51,52, 7841312357860269.,8644831832544011.,-.499999239705843872362,-51,52, 7841312357883161.,8644831832557736.,.499990976724497883752,-51,52, 7841312357883468.,8644831832557921.,-.423388501274351635210,-51,52, 7841312357883493.,8644831832557936.,-.433435690036818789739,-51,52, 7841312357883648.,8644831832558029.,-.495728260365277731398,-51,52, 7841312357883658.,8644831832558035.,-.499747135870408353545,-51,52, 8062329644088625.,8775360228791635.,-.499993679796163342437,-51,52, 8062329644088888.,8775360228791787.,.499983617426223299064,-51,52, 8062329644096252.,8775360228796071.,.499347937455263343398,-51,52, 8062329644102014.,8775360228799424.,-.463126642906861682337,-51,52, 8062329644102026.,8775360228799431.,-.482139085631604471329,-51,52, 8062329644102038.,8775360228799437.,.498848471643641470030,-51,52, 8062329644132754.,8775360228817306.,.499999206914979971048,-51,52, 8471711556201592.,9007199254725567.,-.000017268500075156403,-51,52, 8471711556229564.,4503599627370496.,-.044370824229501747567,-51,51, 8471711556229565.,4503599627370496.,.231349740542281448317,-51,51, 8471711556229566.,4503599627370497.,-.492929694685935390820,-51,51, 8471711556229595.,4503599627370505.,-.497033316304238959576,-51,51, 8471711556229624.,4503599627370512.,.498863062077428019649,-51,51, 8471711556229867.,4503599627370579.,.498960301619204324358,-51,51, 8471711556232297.,4503599627371249.,.499932696923232322799,-51,51, 8471711556232540.,4503599627371317.,-.499970063557738382222,-51,51, 8471711556242775.,4503599627374139.,-.499989627257519704793,-51,51, 8758552636996213.,4581282121630747.,-.499996558246434587514,-51,51, 8758552636998660.,4581282121631397.,.499995028450003602895,-51,51, 8758552637008448.,4581282121634001.,.499961373288237083026,-51,51, 8758552637010102.,4581282121634442.,-.469803202585279454899,-51,51, 8758552637010117.,4581282121634446.,-.479202518570029236330,-51,51, 8758552637010147.,4581282121634454.,-.498001150539550753392,-51,51, 8758552637010256.,4581282121634483.,-.499636180029058656548,-51,51, 8758552637010895.,4581282121634652.,.499952959010915632683,-51,51, 8913898133484470.,4622222853999532.,-.499996576373610361054,-51,51, 8913898133511963.,4622222854006710.,-.499989013911823352138,-51,51, 8913898133517421.,4622222854008134.,.499976111704476159404,-51,51, 8913898133522607.,4622222854009488.,.484919156177392530652,-51,51, 8913898133522653.,4622222854009500.,.494812596213302604376,-51,51, 8913898133522676.,4622222854009506.,.499759316231232815681,-51,51, 8913898133522879.,4622222854009559.,.499941236388768746887,-51,51, 8983393463046817.,4640291897272381.,-.499998008749937605580,-51,51, 8983393463098167.,4640291897285677.,-.499986176584156163288,-51,51, 8983393463099175.,4640291897285938.,-.499635409590037077414,-51,51, 8983393463099287.,4640291897285967.,-.499596435481508385050,-51,51, 8983393463099337.,4640291897285979.,.446849535102531650052,-51,51, 8983393463099341.,4640291897285980.,.482565212749251531268,-51,51, 4561025520236263.,4675902007600595.,-.499997951840470660022,-50,51, 4561025520245871.,4675902007605489.,.499991862808356578163,-50,51, 4561025520263978.,4675902007614714.,.496329840231454602562,-50,51, 4561025520264084.,4675902007614769.,-.499715234958925154534,-50,51, 4561025520265087.,4675902007615279.,.499971459164062049726,-50,51, 4632240566460032.,4711885797615856.,-.499994518887927895685,-50,51, 4632240566469219.,4711885797620459.,.499990589248061244164,-50,51, 4632240566470969.,4711885797621337.,-.499903399090976807533,-50,51, 4632240566472100.,4711885797621903.,.292736543115155696109,-50,51, 4632240566472202.,4711885797621954.,.409314150627841967290,-50,51, 4632240566472280.,4711885797621993.,.498461732842618437914,-50,51, 4632240566472282.,4711885797621995.,-.499252431715986235472,-50,51, 4632240566472719.,4711885797622214.,-.499797387782136272873,-50,51, 4865083545550015.,4825566235894479.,.499999176442401102415,-50,51, 4865083545554822.,4825566235896767.,-.498531615047248600228,-50,51, 4865083545554864.,4825566235896786.,.483590645553304277652,-50,51, 4865083545555049.,4825566235896875.,-.499918444660715719363,-50,51, 4870600750970452.,4828189556811440.,.499998348334549115716,-50,51, 4870600750984522.,4828189556818126.,.499950834076746062669,-50,51, 4870600750984886.,4828189556818299.,.471093883188362920200,-50,51, 4870600750984905.,4828189556818308.,.499807393993264597619,-50,51, 5194636483446893.,4977005345244173.,.499992672825997179255,-50,51, 5194636483463691.,4977005345251632.,.499890064778475574116,-50,51, 5194636483464245.,4977005345251878.,.498577000598203462835,-50,51, 5194636483464353.,4977005345251926.,.454999724545413339357,-50,51, 5194636483464371.,4977005345251934.,.447736845203179938814,-50,51, 5194636483469749.,4977005345254322.,.499972115983328580682,-50,51, 5194636483472778.,4977005345255668.,-.499986859648640848897,-50,51, 5207462811764305.,4982693395273990.,-.499275792785478447800,-50,51, 5207462811764314.,4982693395273993.,.486766116476919696431,-50,51, 5207462811764664.,4982693395274148.,.499507032231242249449,-50,51, 5207462811767028.,4982693395275195.,.499848531497080412631,-50,51, 5207462811767816.,4982693395275544.,.499962364474891260262,-50,51, 5207462811776843.,4982693395279542.,.499997348200974127657,-50,51, 5395254053562302.,5064331155979788.,-.499996005185891994982,-50,51, 5395254053589235.,5064331155991281.,.499992679211836019363,-50,51, 5395254053591932.,5064331155992432.,.479013560391909382564,-50,51, 5395254053591960.,5064331155992444.,.428369357449578230873,-50,51, 5395254053592000.,5064331155992461.,.498877638960421254848,-50,51, 5395254053592157.,5064331155992529.,-.499377356110798808508,-50,51, 5395254053593816.,5064331155993236.,.499953619413322538807,-50,51, 5414042587525269.,5072334840564354.,-.499994274175763446940,-50,51, 5414042587540760.,5072334840570940.,.499867639939473771906,-50,51, 5414042587549612.,5072334840574704.,.499788724875131044414,-50,51, 5414042587550080.,5072334840574904.,-.499763572214211387365,-50,51, 5414042587550748.,5072334840575188.,-.456389500569462204080,-50,51, 5414042587550762.,5072334840575193.,.496615345243059806497,-50,51, 5414042587550889.,5072334840575247.,.498873589398774487062,-50,51, 5414042587576636.,5072334840586195.,.499999642978450117535,-50,51, 5463888598461792.,5093428776557567.,-.499915771603691700487,-50,51, 5463888598462274.,5093428776557770.,-.499526315130236339394,-50,51, 5463888598462547.,5093428776557884.,.477872692366142534679,-50,51, 5463888598462661.,5093428776557932.,.490412937252964573547,-50,51, 5463888598462756.,5093428776557973.,-.499136858675482883595,-50,51, 5463888598464183.,5093428776558573.,.499941469764525300015,-50,51, 5463888598477102.,5093428776564015.,-.499993418482517237612,-50,51, 5512288168003915.,5113719170835459.,.499992469726320675160,-50,51, 5512288168015832.,5113719170840432.,.499388680459277120248,-50,51, 5512288168018583.,5113719170841580.,.499836692268623441610,-50,51, 5512288168019762.,5113719170842073.,-.499971302853250059080,-50,51, 5512288168035216.,5113719170848522.,-.499999096393710108957,-50,51, 5856227526130867.,5252770545579721.,.499995786653926544411,-50,51, 5856227526151560.,5252770545587830.,-.499990493198461670954,-50,51, 5856227526172202.,5252770545595918.,-.482966253215881051974,-50,51, 5856227526172253.,5252770545595938.,-.499976802800108589208,-50,51, 6255935994524666.,5404088923692165.,.499993953832247735892,-50,51, 6255935994567391.,5404088923707799.,.476207632818369192642,-50,51, 6255935994567402.,5404088923707804.,-.498660983919798514580,-50,51, 6255935994568118.,5404088923708066.,-.499200037074447757652,-50,51, 6255935994569192.,5404088923708458.,.499991383135472216874,-50,51, 7336013593192052.,5767802219713735.,-.499993024174181721884,-50,51, 7336013593192110.,5767802219713753.,-.483356943356463127331,-50,51, 7240243707632093.,7309008430703898.,-.499993806870348025382,-49,51, 7240243707645082.,7309008430707949.,.496507090221542049082,-49,51, 7240243707645098.,7309008430707954.,.487803111031064736999,-49,51, 7240243707645191.,7309008430707983.,.499711231986195648852,-49,51, 7240243707646454.,7309008430708378.,-.499859125402210892037,-49,51, 7240243707650820.,7309008430709740.,-.499957447675010416707,-49,51, 7240243707653003.,7309008430710420.,.499993390878724915307,-49,51, 7541662945646442.,7401122255448114.,-.499998620413183890860,-49,51, 7541662945718442.,7401122255469672.,-.499970584251404478239,-49,51, 7541662945730442.,7401122255473265.,-.499965931679536803179,-49,51, 7541662945730609.,7401122255473315.,-.497382533638472346417,-49,51, 8408023983763533.,7646606907105863.,-.499828293389884026548,-49,51, 8408023983763708.,7646606907105909.,.473302477721545078369,-49,51, 8408023983763723.,7646606907105913.,.499570829531050447933,-49,51, 8408023983768596.,7646606907107221.,.499949386997113475998,-49,51, 8408023983771908.,7646606907108111.,-.499998534158332483851,-49,51, 4883924055201146.,7984829198143479.,.499991990477257362019,-48,51, 4883924055245017.,7984829198163741.,-.499929010286431301121,-48,51, 4883924055246589.,7984829198164466.,.498842935603300336621,-48,51, 4883924055247323.,7984829198164805.,.483002355550399811341,-48,51, 4883924055247336.,7984829198164811.,.486808993777885041232,-48,51, 4883924055247375.,7984829198164829.,.498228908460244525975,-48,51, 4883924055250008.,7984829198166045.,.499988789117588387119,-48,51, 5179581817553889.,8117387310981554.,.499997271436605732859,-48,51, 5179581817582576.,8117387310994045.,-.499993846828879495553,-48,51, 5179581817584441.,8117387310994857.,-.499784117839042061401,-48,51, 5179581817584797.,8117387310995011.,.498647337098342192326,-48,51, 5179581817584820.,8117387310995022.,-.487409057667306617022,-48,51, 5179581817584836.,8117387310995028.,.478812580756563559441,-48,51, 5179581817584944.,8117387310995076.,-.499191359882877273553,-48,51, 6014154868567824.,8454217309912390.,.499996424851712461878,-48,51, 6014154868571898.,8454217309913918.,-.453141682769377017605,-48,51, 6014154868571906.,8454217309913921.,-.454522415431410311630,-48,51, 6014154868572098.,8454217309913993.,-.487659999321408619805,-48,51, 6014154868572170.,8454217309914019.,.499913406719248385098,-48,51, 6036727180147451.,8462662158563129.,-.499918266711687163443,-48,51, 6036727180148399.,8462662158563483.,-.495096378013232004262,-48,51, 6036727180148482.,8462662158563513.,.498996677640203894534,-48,51, 6036727180148640.,8462662158563572.,.499800325750383508487,-48,51, 6036727180151176.,8462662158564520.,-.499958841503059034242,-48,51, 6036727180154901.,8462662158565911.,-.499999417154626206918,-48,51, 6746930395988093.,8713364490101986.,.499998221414732262212,-48,51, 6746930395992323.,8713364490103400.,-.499928220734859790434,-48,51, 6746930396004073.,8713364490107325.,-.499723898028870629645,-48,51, 6746930396004480.,8713364490107460.,.455602328175352172929,-48,51, 6746930396004501.,8713364490107467.,.470496310362570757082,-48,51, 6746930396004540.,8713364490107480.,.498156562995918671030,-48,51, 6746930396004543.,8713364490107482.,-.499715725263057690946,-48,51, 7240486963994320.,8872472584425737.,.499991229633607903507,-48,51, 7240486964060996.,8872472584446489.,.499986801046133017143,-48,51, 7240486964061886.,8872472584446767.,-.499593318153400657231,-48,51, 7240486964062066.,8872472584446823.,-.477036488332733018434,-48,51, 7240486964062082.,8872472584446828.,-.497253659015407842813,-48,51, 7686584201523627.,9007199254740029.,-.000025937695958695390,-48,51, 7686584201524780.,9007199254740367.,.000266748207651915271,-48,51, 7686584201526895.,9007199254740987.,.009476661940493633806,-48,51, 7686584201526909.,9007199254740991.,.113556538437446861173,-48,51, 7686584201526912.,4503599627370496.,-.003498886870889210533,-48,50, 7686584201526913.,4503599627370496.,.143075394432573204239,-48,50, 7686584201527086.,4503599627370522.,-.499573940068716430874,-48,50, 7686584201544265.,4503599627373040.,-.499995430762363428916,-48,50, 8412198194100013.,4605225279294614.,.499989188989709238207,-48,50, 8412198194105845.,4605225279295396.,-.499972433576972363007,-48,50, 8412198194111102.,4605225279296099.,.498176014203863311598,-48,50, 8412198194111214.,4605225279296114.,.496805009091872345596,-48,50, 8412198194111259.,4605225279296121.,-.476960126890680322641,-48,50, 8412198194111274.,4605225279296123.,-.468215172218205050435,-48,50, 8412198194111677.,4605225279296177.,-.499934056685711741840,-48,50, 8412198194153987.,4605225279301843.,-.499998591732091161032,-48,50, 8425248473951205.,4606971569160033.,.499743891387204764922,-48,50, 8425248473951347.,4606971569160052.,.486374860217791506826,-48,50, 8425248473951377.,4606971569160056.,.497634924055198419703,-48,50, 8425248473963994.,4606971569161743.,.499909104006385470549,-48,50, 8425248473971099.,4606971569162694.,-.499999112328021246221,-48,50, 5003071701573540.,4800679877718147.,.464744046372655294940,-47,50, 5003071701573549.,4800679877718149.,.490921433745437729326,-47,50, 5003071701573589.,4800679877718158.,.496154266513315526456,-47,50, 5003071701573629.,4800679877718168.,-.498612900718878731063,-47,50, 5003071701580123.,4800679877719630.,-.499062501821056493043,-47,50, 5003071701593302.,4800679877722597.,-.499974933425254063615,-47,50, 5003071701593684.,4800679877722682.,.499998619165225381079,-47,50, 5120534392556723.,4826818455007683.,-.499998696541647779545,-47,50, 5120534392616415.,4826818455020812.,.499986726424624770290,-47,50, 5120534392625762.,4826818455022868.,.489229219899398239862,-47,50, 5120534392625771.,4826818455022870.,.468891483986737006298,-47,50, 5120534392625803.,4826818455022878.,-.492309354813864469651,-47,50, 5120534392626003.,4826818455022922.,-.499814597318621048698,-47,50, 5120534392626544.,4826818455023040.,.499883721697395585706,-47,50, 5120534392629740.,4826818455023743.,.499949946163759925224,-47,50, 5123050939692742.,4827371864859589.,-.499988468979236484456,-47,50, 5123050939696026.,4827371864860311.,-.498328976184250104251,-47,50, 5123050939696076.,4827371864860321.,.494388129366296110022,-47,50, 5123050939696167.,4827371864860342.,-.498866738531985307378,-47,50, 5123050939696449.,4827371864860404.,-.499942263230017209914,-47,50, 5123050939713201.,4827371864864086.,.499996774112527800485,-47,50, 5155547973509572.,4834493897084320.,.498919027262414229105,-47,50, 5155547973509659.,4834493897084340.,-.494408944685206430260,-47,50, 5155547973509668.,4834493897084341.,.471798506492607595575,-47,50, 5155547973509691.,4834493897084346.,.496550881724783389219,-47,50, 5155547973510341.,4834493897084489.,-.499577644331697875208,-47,50, 5155547973510785.,4834493897084585.,.499989947090191046650,-47,50, 5155547973559346.,4834493897095194.,.499993966537945870326,-47,50, 5169587047118223.,4837556806802507.,-.499954085229706041226,-47,50, 5169587047119118.,4837556806802701.,.497061698251920221993,-47,50, 5169587047119127.,4837556806802703.,.457925544119161649308,-47,50, 5169587047119219.,4837556806802724.,-.497688475904788601511,-47,50, 5169587047119935.,4837556806802879.,.499924150853137549119,-47,50, 5169587047143366.,4837556806807985.,-.499990026490419927482,-47,50, 5169587047151747.,4837556806809810.,.499997987164282116056,-47,50, 5889278157439986.,4984355200605035.,.499528242376564086609,-47,50, 5889278157440488.,4984355200605131.,.498255833659051338591,-47,50, 5889278157440535.,4984355200605140.,.486184512523725598695,-47,50, 5889278157440556.,4984355200605145.,-.497932460749528248802,-47,50, 5889278157441309.,4984355200605289.,-.499841073842812681773,-47,50, 5889278157446031.,4984355200606192.,-.499857636050958111792,-47,50, 5889278157483807.,4984355200613416.,-.499990159795800797974,-47,50, 5889278157486955.,4984355200614017.,.499998794465981878198,-47,50, 5946548684535912.,4995254249379818.,-.499997644273914652170,-47,50, 5946548684548579.,4995254249382216.,.499957901157697336760,-47,50, 5946548684548843.,4995254249382266.,.498851740528104918956,-47,50, 5946548684548901.,4995254249382277.,.483457205237972651417,-47,50, 5946548684557608.,4995254249383927.,-.499994843756998175991,-47,50, 6341302679999459.,5067638486766365.,.499975880993701815127,-47,50, 6341302679999825.,5067638486766430.,.499379305216954629379,-47,50, 6341302679999921.,5067638486766448.,-.451596845807075833807,-47,50, 6341302679999932.,5067638486766450.,-.498062863111929147318,-47,50, 6341302680011188.,5067638486768448.,.499983427526876370983,-47,50, 6341302680034646.,5067638486772614.,.499998509029254324672,-47,50, 6606288997994424.,5113741318717852.,-.499999522614484943140,-47,50, 6606288998012404.,5113741318720916.,.499973854174575159132,-47,50, 6606288998055204.,5113741318728212.,.495461057892001153960,-47,50, 6606288998055210.,5113741318728214.,-.481735836428549894436,-47,50, 6606288998055468.,5113741318728257.,.498797707786875852205,-47,50, 6606288998055556.,5113741318728272.,.499909924418100921318,-47,50, 6984907017014014.,5176500755935308.,-.499979221865227579363,-47,50, 6984907017015329.,5176500755935520.,-.491573152836066747673,-47,50, 6984907017015335.,5176500755935520.,.475765582079564149466,-47,50, 6984907017015391.,5176500755935530.,-.495739558707920896572,-47,50, 6984907017015453.,5176500755935540.,-.499905964579863807338,-47,50, 6984907017027455.,5176500755937475.,-.499989890042833707948,-47,50, 6984907017040896.,5176500755939641.,.499999437607926059761,-47,50, 6985563423467393.,5176606578859047.,-.499993669178271968173,-47,50, 6985563423472095.,5176606578859804.,.499866313523098939792,-47,50, 6985563423472492.,5176606578859868.,.499429140622752623261,-47,50, 6985563423472728.,5176606578859907.,-.455490690120739396417,-47,50, 6985563423472734.,5176606578859908.,-.488242889207455106995,-47,50, 6985563423472796.,5176606578859918.,-.493348946436899449681,-47,50, 6985563423472889.,5176606578859932.,.498991967718767639086,-47,50, 7177764435657946.,5207172156584751.,-.499991466749214329276,-47,50, 7177764435663077.,5207172156585556.,-.499593382301986808082,-47,50, 7177764435666468.,5207172156586088.,-.487051986328602321851,-47,50, 7177764435666487.,5207172156586090.,.493849897045355885031,-47,50, 7177764435666691.,5207172156586122.,.499322750112620318295,-47,50, 7177764435666742.,5207172156586131.,-.499309036620705757883,-47,50, 7177764435675487.,5207172156587503.,-.499994821440835941831,-47,50, 7177764435693028.,5207172156590255.,-.499998182860373754242,-47,50, 7385014309474579.,5239226751339756.,.499998844438702584383,-47,50, 7385014309483452.,5239226751341110.,-.499988959305211297490,-47,50, 7385014309500011.,5239226751343635.,-.499740799808617059067,-47,50, 7385014309500529.,5239226751343713.,.487524647688601610580,-47,50, 7385014309500542.,5239226751343715.,.469830537297533875794,-47,50, 7385014309500575.,5239226751343721.,-.498162204464422974580,-47,50, 7385014309501198.,5239226751343816.,-.499964571671647351992,-47,50, 7437989765694654.,5247275871692156.,.499997042155057275575,-47,50, 7437989765705057.,5247275871693732.,-.499987411641549237569,-47,50, 7437989765715460.,5247275871695307.,-.499971867641787895123,-47,50, 7437989765718320.,5247275871695740.,-.499871468543278327254,-47,50, 7437989765719357.,5247275871695897.,-.499485414785416768988,-47,50, 7437989765719542.,5247275871695925.,-.490737661706518406744,-47,50, 7437989765719555.,5247275871695926.,.477444612834134731647,-47,50, 7437989765719608.,5247275871695935.,-.498427652500161163555,-47,50, 7652073479075089.,5279230007700128.,.499991667359964032924,-47,50, 7652073479255605.,5279230007726693.,.499947040495600221747,-47,50, 7652073479272797.,5279230007729223.,.499942757622949380649,-47,50, 7652073479273062.,5279230007729262.,.497732361175399690417,-47,50, 7652073479273076.,5279230007729265.,-.442007055995451827469,-47,50, 7652073479273096.,5279230007729268.,-.498777651953817679685,-47,50, 7775918031497824.,5297309195802496.,.499988602703697480630,-47,50, 7775918031515902.,5297309195805114.,.499950624462319148590,-47,50, 7775918031516413.,5297309195805189.,-.498612236942754908962,-47,50, 7775918031516461.,5297309195805195.,.452599079402506787192,-47,50, 7775918031516482.,5297309195805198.,.493754030303545281917,-47,50, 7775918031516558.,5297309195805209.,.499838614516758783596,-47,50, 7775918031542363.,5297309195808947.,-.499994344046748903326,-47,50, 7848203524024993.,5307728984286980.,.499992674413097233353,-47,50, 7848203524027962.,5307728984287406.,.499957994854209382455,-47,50, 7848203524033900.,5307728984288258.,.499888635252806791872,-47,50, 7848203524035043.,5307728984288423.,-.499451088301228847477,-47,50, 7848203524035154.,5307728984288438.,.427122219383851849380,-47,50, 7848203524035189.,5307728984288443.,.449014703789010748397,-47,50, 7848203524035266.,5307728984288454.,.497178169480281467913,-47,50, 7848203524053770.,5307728984291109.,.499993350119118267466,-47,50, 8229524690681513.,5361153929967440.,.499991633673058543885,-47,50, 8229524690706149.,5361153929970811.,.499915783440924183702,-47,50, 8229524690706434.,5361153929970850.,.497114126565974788165,-47,50, 8229524690706646.,5361153929970880.,-.494443597145390084670,-47,50, 8229524690706653.,5361153929970880.,.463382327071674741963,-47,50, 8229524690707216.,5361153929970957.,.499953089098648561703,-47,50, 8229524690708283.,5361153929971103.,.499990394737437749716,-47,50, 8431287344791155.,5388428482255443.,-.499977159992711863825,-47,50, 8431287344794734.,5388428482255921.,-.499749277354193265731,-47,50, 8431287344794749.,5388428482255923.,-.496395430403075865217,-47,50, 8431287344794779.,5388428482255927.,-.489687736500851759596,-47,50, 8431287344794794.,5388428482255929.,-.486333889549745054489,-47,50, 8431287344796224.,5388428482256120.,-.499933813560609874367,-47,50, 8431287344812921.,5388428482258350.,-.499988313307730220234,-47,50, 8431287344834687.,5388428482261257.,-.499999474129478475704,-47,50, 8597292967839829.,5410384179940546.,.497923234470363940017,-47,50, 8597292967839852.,5410384179940550.,-.489597329683208225934,-47,50, 8597292967839913.,5410384179940558.,-.499977956351416925276,-47,50, 8597292967945687.,5410384179954412.,-.499984684321401003399,-47,50, 4519369790809197.,5466767829388068.,.499997506497500280029,-46,50, 4519369790811573.,5466767829388660.,.499024229716580263341,-46,50, 4519369790811846.,5466767829388729.,-.480885578620358991880,-46,50, 4519369790811854.,5466767829388731.,-.487622862381210402991,-46,50, 4519369790811870.,5466767829388734.,.498902570097076187049,-46,50, 4989098822997298.,5578112143622654.,-.487083625500387086686,-46,50, 4989098822997307.,5578112143622656.,-.455833575081420577456,-46,50, 4989098822997360.,5578112143622668.,-.494027722614247696466,-46,50, 4989098822997422.,5578112143622681.,.499028180271717766132,-46,50, 4989098822997710.,5578112143622746.,.499029793675212393609,-46,50, 4989098823038894.,5578112143632041.,.499260471734804374665,-46,50, 4989098823165614.,5578112143660641.,.499969769029243959978,-46,50, 4989098823170798.,5578112143661811.,.499998770267177324257,-46,50, 5097491090201989.,5602313667947422.,.499996679598545609350,-46,50, 5097491090220482.,5602313667951508.,-.499988463223479603865,-46,50, 5097491090223076.,5602313667952081.,-.499932305888378642901,-46,50, 5097491090223298.,5602313667952130.,-.461376998682037241616,-46,50, 5097491090223316.,5602313667952134.,-.485277919719454530942,-46,50, 5097491090223325.,5602313667952136.,-.497228380238168441683,-46,50, 5097491090223411.,5602313667952154.,.499689441471721580561,-46,50, 5389599355914345.,5665057368176520.,.499998814299229818176,-46,50, 5389599355917753.,5665057368177232.,.499856749108922407531,-46,50, 5389599355918179.,5665057368177321.,.499838990928472619390,-46,50, 5389599355918203.,5665057368177327.,-.486077502490353629084,-46,50, 5389599355918208.,5665057368177328.,-.441476771952611908355,-46,50, 5558376291134075.,5699777339893893.,.499992240114292595653,-46,50, 5558376291143627.,5699777339895828.,.499944156823687053894,-46,50, 5558376291145646.,5699777339896237.,.499619922712423895269,-46,50, 5558376291145957.,5699777339896301.,-.499439431836990264668,-46,50, 5558376291146036.,5699777339896317.,-.495985055662001046916,-46,50, 5558376291146056.,5699777339896321.,-.444477618655710749071,-46,50, 5558376291146811.,5699777339896473.,.499928128321083826769,-46,50, 5558376291195736.,5699777339906384.,.499995859968997560395,-46,50, 5626057994121679.,5713405170410547.,-.499997281649197492751,-46,50, 5626057994166433.,5713405170419503.,.475982506434709954064,-46,50, 5626057994166438.,5713405170419504.,.476672498363079374511,-46,50, 5626057994166548.,5713405170419526.,.491852320786981587391,-46,50, 5626057994166608.,5713405170419539.,-.499867776072889567390,-46,50, 5626057994170955.,5713405170420409.,-.499988793911351908759,-46,50, 5676094739315912.,5723375147734755.,.499996438898796472835,-46,50, 5676094739327839.,5723375147737122.,-.499984002270660494577,-46,50, 5676094739339766.,5723375147739488.,-.499964448412483386906,-46,50, 5676094739340996.,5723375147739731.,.499366820797895486022,-46,50, 5676094739341188.,5723375147739770.,-.412932688403304859489,-46,50, 5676094739341228.,5723375147739778.,-.477995086153717119435,-46,50, 5676094739341243.,5723375147739780.,.497606514689863864435,-46,50, 5676094739341364.,5723375147739805.,-.499207238505537136347,-46,50, 5745910122809843.,5737140170913361.,-.499998104912880409493,-46,50, 5745910122819503.,5737140170915254.,-.499832555524737179117,-46,50, 5745910122819702.,5737140170915292.,.496754705759425302491,-46,50, 5745910122819753.,5737140170915302.,.490854958651128890182,-46,50, 5745910122819850.,5737140170915321.,.499241714150790873312,-46,50, 5745910122820692.,5737140170915486.,.499877261876640516025,-46,50, 5745910122827132.,5737140170916748.,.499987626105895110842,-46,50, 5761236311978061.,5740139534134699.,-.499998191441150895277,-46,50, 5761236311988064.,5740139534136653.,.499996079776712193574,-46,50, 5761236311994250.,5740139534137863.,-.499707554656988355748,-46,50, 5761236311994470.,5740139534137905.,.497393189002353758739,-46,50, 5761236311994501.,5740139534137912.,-.443924433482143669698,-46,50, 5761236311994511.,5740139534137914.,-.489510763315859472938,-46,50, 5761236311994557.,5740139534137923.,-.499207880550995867846,-46,50, 5761236311996005.,5740139534138205.,.499891559488881178002,-46,50, 5761236311998067.,5740139534138608.,.499990347599681932958,-46,50, 6010785129971091.,5787884807014969.,.499998416308924292902,-46,50, 6010785129990501.,5787884807018606.,-.499968021597272150852,-46,50, 6010785130045496.,5787884807028908.,-.499872992768981601169,-46,50, 6010785130047295.,5787884807029244.,.499820995217062005480,-46,50, 6010785130047311.,5787884807029247.,.497038951752338553661,-46,50, 6010785130047391.,5787884807029262.,.483128734428601604558,-46,50, 6029425626628170.,5791371254978919.,.499993594033160698427,-46,50, 6029425626631158.,5791371254979477.,.499755231025660933828,-46,50, 6029425626633150.,5791371254979849.,.499596322200346987831,-46,50, 6029425626633166.,5791371254979852.,.487546853052658099744,-46,50, 6029425626633182.,5791371254979855.,.475497383904961281594,-46,50, 6148561900150141.,5813402605955546.,-.499982024541834322320,-46,50, 6148561900152953.,5813402605956060.,.455865661223909175943,-46,50, 6148561900152975.,5813402605956064.,.484680970286581694622,-46,50, 6148561900152986.,5813402605956066.,.499088624817912547482,-46,50, 6148561900153472.,5813402605956155.,.499281361380387274827,-46,50, 6148561900154930.,5813402605956422.,.499859571025596941697,-46,50, 6148561900176030.,5813402605960286.,.499996891449476897493,-46,50, 6155847187529103.,5814735955958743.,.499998623974177994451,-46,50, 6155847187543159.,5814735955961315.,-.499991512569455319455,-46,50, 6155847187552967.,5814735955963108.,.493185542915481585437,-46,50, 6155847187552978.,5814735955963111.,-.494791114140534547845,-46,50, 6155847187553224.,5814735955963156.,-.498632717394198376439,-46,50, 6155847187553306.,5814735955963171.,-.499913251812485957467,-46,50, 6155847187557215.,5814735955963886.,-.499981654984368067610,-46,50, 6689418048874930.,5908331445360167.,.499996160923287789441,-46,50, 6689418048923219.,5908331445368295.,.499863070877195183803,-46,50, 6689418048923320.,5908331445368313.,-.499826577801887086993,-46,50, 6689418048923332.,5908331445368315.,-.479987724179616893840,-46,50, 6689418048923362.,5908331445368320.,-.430390590123957264844,-46,50, 6689418048926445.,5908331445368838.,.499874886208572069618,-46,50, 6689418048958705.,5908331445374268.,.499993025118224775554,-46,50, 6725394088048580.,5914370701845378.,-.499987323918430332847,-46,50, 6725394088093748.,5914370701852940.,-.499862143651349593186,-46,50, 6725394088094411.,5914370701853050.,.499209831584044842661,-46,50, 6725394088095247.,5914370701853190.,.461840557506287997444,-46,50, 6725394088095265.,5914370701853193.,.475390022896766951281,-46,50, 6725394088095295.,5914370701853198.,.497972465214213948972,-46,50, 6725394088097069.,5914370701853496.,-.499985779120591427503,-46,50, 6836428713291095.,5932808252962972.,.499995583724850488252,-46,50, 6836428713304107.,5932808252965116.,-.424085848423843888998,-46,50, 6836428713304137.,5932808252965121.,-.483086958401233467846,-46,50, 6836428713304143.,5932808252965122.,-.494887180396713985776,-46,50, 6836428713304313.,5932808252965150.,-.495893470269022441122,-46,50, 6836428713304993.,5932808252965262.,-.499918629765219449699,-46,50, 6836428713308976.,5932808252965918.,-.499965998038013863458,-46,50, 6555196675018131.,9007199254740953.,-.000253578928894812539,-42,50, 6555196675018294.,9007199254740981.,-.003881354119605271715,-42,50, 6555196675018329.,9007199254740987.,.007609614397636049565,-42,50, 6555196675018352.,9007199254740991.,-.041982034862479987237,-42,50, 6555196675018358.,4503599627370496.,-.005720362986908442538,-42,49, 6555196675018359.,4503599627370496.,.080158079420480103455,-42,49, 6555196675018364.,4503599627370497.,-.490449708542577363088,-42,49, 6555196675021438.,4503599627370760.,.499882251707693563001,-42,49, 6555196675057815.,4503599627373884.,.499981695145168236911,-42,49, 6555196675064429.,4503599627374452.,.499999773907603210283,-42,49 }; #include "trailer.h"
63500e2271b45feff47c973b3cad9876e53ea06e
67305fcba68fdf469862aed2959ad1dd5b22a536
/rt-thread/components/drivers/include/drivers/i2c_dev.h
5ef9dd1a8c6fefd0c9a13adea2e8f9cbaf6eca31
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
RT-Thread/IoT_Board
cdabf100a8d515fbcaa65ab0b72ec67acb0d2c9a
2d218a4e06f06dbb356ec00767904f91d00db7cc
refs/heads/master
2023-09-04T16:51:34.485240
2022-01-19T01:26:16
2022-01-19T01:26:16
161,133,933
344
238
Apache-2.0
2023-06-06T04:10:57
2018-12-10T07:21:46
C
UTF-8
C
false
false
747
h
i2c_dev.h
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2012-04-25 weety first version */ #ifndef __I2C_DEV_H__ #define __I2C_DEV_H__ #include <rtthread.h> #ifdef __cplusplus extern "C" { #endif #define RT_I2C_DEV_CTRL_10BIT 0x20 #define RT_I2C_DEV_CTRL_ADDR 0x21 #define RT_I2C_DEV_CTRL_TIMEOUT 0x22 #define RT_I2C_DEV_CTRL_RW 0x23 struct rt_i2c_priv_data { struct rt_i2c_msg *msgs; rt_size_t number; }; rt_err_t rt_i2c_bus_device_device_init(struct rt_i2c_bus_device *bus, const char *name); #ifdef __cplusplus } #endif #endif
61c65752df4c1dc73a5e60071c6e6fcc64dd304b
aed47b5a4ea3af5cbacfc034c1565bd800e9461a
/Projects/Stepper Motor Controller/Model Reference Adaptive CAN-Bus Controller/Core/Src/CControl/Sources/ControlEngineering/theta2ss.c
9c97f7158e1f30272e85627f6d4e7e9c1ea32731
[ "MIT" ]
permissive
DanielMartensson/CControl
a4dcfc13af8ef8266ac83f9ec0690848f5afd1b2
25ce62ef3a0d87a55459fc9e7d4e1ee895d89ed9
refs/heads/master
2023-08-30T23:53:16.167470
2023-08-28T21:30:11
2023-08-28T21:30:11
214,724,629
169
53
MIT
2023-03-02T21:35:56
2019-10-12T22:33:21
C
UTF-8
C
false
false
1,398
c
theta2ss.c
/* * theta2ss.c * * Created on: 1 mars 2020 * Author: Daniel Mårtensson */ #include "../../Headers/Functions.h" /* * Convert SISO transfer function parameters theta vector into a * state space model on Observable Canonical Form. * Vector theta can be found from rls function. * * It's recommended that NP = NZ = NZE = ADIM * A [ADIM*ADIM] * B [ADIM*1] * C [1*ADIM] * K [ADIM*1] * theta [NP+NZ+NZE] */ void theta2ss(float* A, float* B, float* C, float* theta, float* K, uint8_t ADIM, uint8_t YDIM, uint8_t RDIM, uint8_t NP, uint8_t NZ, uint8_t NZE){ // Clear A, B, C, K memset(A, 0, ADIM*ADIM*sizeof(float)); // We need to set this to zeros to begin with //memset(B, 0, ADIM*RDIM*sizeof(float)); //memset(C, 0, YDIM*ADIM*sizeof(float)); //memset(K, 0, ADIM*YDIM*sizeof(float)); // Insert A = [A] for(uint8_t i = 0; i < ADIM; i++){ *(A + i*ADIM) = -*(theta + i); // Insert on column 0 only to last row } for(uint8_t i = 0; i < ADIM-1; i++){ *(A + i*ADIM + 1 + i) = 1; // Ones at the diagonal with 1 in shift to right to last row } // Insert B = [B] for(uint8_t i = 0; i < ADIM; i++){ *(B + i) = *(theta + NP + i); // Insert the B in [B] } // Insert C = [1 0] *(C + 0) = 1; // Notice that transfer functions is only SISO // Create the kalman gain matrix K for(uint8_t i = 0; i < ADIM; i++){ *(K + i) = *(theta + NP + NZ + i) - *(theta + i); } }
faac4a23333146cb075616ff23c78e0860b36c68
cfe9d50e65955c28875c575e7fb551d49e25c1d5
/api/1.2/EGL/egl.h
d67fd1afb9ff9a27ecde37822ca8df12709187d3
[]
no_license
KhronosGroup/EGL-Registry
3925b1d810f841cbb1d5b679533f57d9a75654a3
b055c9b483e70ecd57b3cf7204db21f5a06f9ffe
refs/heads/main
2023-09-03T15:25:20.182496
2023-07-29T10:29:09
2023-07-29T10:29:09
76,110,702
113
109
null
2023-07-05T16:17:01
2016-12-10T12:18:06
HTML
UTF-8
C
false
false
8,657
h
egl.h
/* Copyright 2006-2020 The Khronos Group Inc. * SPDX-License-Identifier: Apache-2.0 */ /* Reference egl.h for EGL 1.2 * Last modified 2006/10/24 */ #ifndef __egl_h_ #define __egl_h_ /* EGL Types */ #include <sys/types.h> typedef int32_t EGLint; typedef unsigned int EGLBoolean; typedef void *EGLConfig; typedef void *EGLContext; typedef void *EGLDisplay; typedef void *EGLSurface; /* Define NativeDisplayType, NativeWindowType, NativePixmapType in egltypes.h */ #include <EGL/egltypes.h> /* EGL Versioning */ #define EGL_VERSION_1_0 1 #define EGL_VERSION_1_1 1 #define EGL_VERSION_1_2 1 /* EGL Enumerants. Exceptional cases aside, most * enums are assigned unique values starting at 0x3000. */ /* EGL aliases */ #define EGL_FALSE 0 #define EGL_TRUE 1 /* Out-of-band handle values */ /* These values may vary depending on semantics of native concepts */ #define EGL_DEFAULT_DISPLAY ((void *)0) #define EGL_NO_CONTEXT ((EGLContext)0) #define EGL_NO_DISPLAY ((EGLDisplay)0) #define EGL_NO_SURFACE ((EGLSurface)0) /* Out-of-band attribute value */ #define EGL_DONT_CARE ((EGLint)-1) /* Errors / GetError return values */ #define EGL_SUCCESS 0x3000 #define EGL_NOT_INITIALIZED 0x3001 #define EGL_BAD_ACCESS 0x3002 #define EGL_BAD_ALLOC 0x3003 #define EGL_BAD_ATTRIBUTE 0x3004 #define EGL_BAD_CONFIG 0x3005 #define EGL_BAD_CONTEXT 0x3006 #define EGL_BAD_CURRENT_SURFACE 0x3007 #define EGL_BAD_DISPLAY 0x3008 #define EGL_BAD_MATCH 0x3009 #define EGL_BAD_NATIVE_PIXMAP 0x300A #define EGL_BAD_NATIVE_WINDOW 0x300B #define EGL_BAD_PARAMETER 0x300C #define EGL_BAD_SURFACE 0x300D #define EGL_CONTEXT_LOST 0x300E /* EGL 1.1 - IMG_power_management */ /* Reserved 0x300F-0x301F for additional errors */ /* Config attributes */ #define EGL_BUFFER_SIZE 0x3020 #define EGL_ALPHA_SIZE 0x3021 #define EGL_BLUE_SIZE 0x3022 #define EGL_GREEN_SIZE 0x3023 #define EGL_RED_SIZE 0x3024 #define EGL_DEPTH_SIZE 0x3025 #define EGL_STENCIL_SIZE 0x3026 #define EGL_CONFIG_CAVEAT 0x3027 #define EGL_CONFIG_ID 0x3028 #define EGL_LEVEL 0x3029 #define EGL_MAX_PBUFFER_HEIGHT 0x302A #define EGL_MAX_PBUFFER_PIXELS 0x302B #define EGL_MAX_PBUFFER_WIDTH 0x302C #define EGL_NATIVE_RENDERABLE 0x302D #define EGL_NATIVE_VISUAL_ID 0x302E #define EGL_NATIVE_VISUAL_TYPE 0x302F #define EGL_PRESERVED_RESOURCES 0x3030 #define EGL_SAMPLES 0x3031 #define EGL_SAMPLE_BUFFERS 0x3032 #define EGL_SURFACE_TYPE 0x3033 #define EGL_TRANSPARENT_TYPE 0x3034 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036 #define EGL_TRANSPARENT_RED_VALUE 0x3037 #define EGL_NONE 0x3038 /* Attrib list terminator */ #define EGL_BIND_TO_TEXTURE_RGB 0x3039 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A #define EGL_MIN_SWAP_INTERVAL 0x303B #define EGL_MAX_SWAP_INTERVAL 0x303C #define EGL_LUMINANCE_SIZE 0x303D #define EGL_ALPHA_MASK_SIZE 0x303E #define EGL_COLOR_BUFFER_TYPE 0x303F #define EGL_RENDERABLE_TYPE 0x3040 /* Reserved 0x3041-0x304F for additional config attributes */ /* Config attribute values */ #define EGL_SLOW_CONFIG 0x3050 /* EGL_CONFIG_CAVEAT value */ #define EGL_NON_CONFORMANT_CONFIG 0x3051 /* EGL_CONFIG_CAVEAT value */ #define EGL_TRANSPARENT_RGB 0x3052 /* EGL_TRANSPARENT_TYPE value */ #define EGL_RGB_BUFFER 0x308E /* EGL_COLOR_BUFFER_TYPE value */ #define EGL_LUMINANCE_BUFFER 0x308F /* EGL_COLOR_BUFFER_TYPE value */ /* More config attribute values, for EGL_TEXTURE_FORMAT */ #define EGL_NO_TEXTURE 0x305C #define EGL_TEXTURE_RGB 0x305D #define EGL_TEXTURE_RGBA 0x305E #define EGL_TEXTURE_2D 0x305F /* Config attribute mask bits */ #define EGL_PBUFFER_BIT 0x01 /* EGL_SURFACE_TYPE mask bits */ #define EGL_PIXMAP_BIT 0x02 /* EGL_SURFACE_TYPE mask bits */ #define EGL_WINDOW_BIT 0x04 /* EGL_SURFACE_TYPE mask bits */ #define EGL_OPENGL_ES_BIT 0x01 /* EGL_RENDERABLE_TYPE mask bits */ #define EGL_OPENVG_BIT 0x02 /* EGL_RENDERABLE_TYPE mask bits */ /* QueryString targets */ #define EGL_VENDOR 0x3053 #define EGL_VERSION 0x3054 #define EGL_EXTENSIONS 0x3055 #define EGL_CLIENT_APIS 0x308D /* QuerySurface / CreatePbufferSurface targets */ #define EGL_HEIGHT 0x3056 #define EGL_WIDTH 0x3057 #define EGL_LARGEST_PBUFFER 0x3058 #define EGL_TEXTURE_FORMAT 0x3080 #define EGL_TEXTURE_TARGET 0x3081 #define EGL_MIPMAP_TEXTURE 0x3082 #define EGL_MIPMAP_LEVEL 0x3083 #define EGL_RENDER_BUFFER 0x3086 #define EGL_COLORSPACE 0x3087 #define EGL_ALPHA_FORMAT 0x3088 #define EGL_HORIZONTAL_RESOLUTION 0x3090 #define EGL_VERTICAL_RESOLUTION 0x3091 #define EGL_PIXEL_ASPECT_RATIO 0x3092 #define EGL_SWAP_BEHAVIOR 0x3093 /* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */ #define EGL_BACK_BUFFER 0x3084 #define EGL_SINGLE_BUFFER 0x3085 /* OpenVG color spaces */ #define EGL_COLORSPACE_sRGB 0x3089 /* EGL_COLORSPACE value */ #define EGL_COLORSPACE_LINEAR 0x308A /* EGL_COLORSPACE value */ /* OpenVG alpha formats */ #define EGL_ALPHA_FORMAT_NONPRE 0x308B /* EGL_ALPHA_FORMAT value */ #define EGL_ALPHA_FORMAT_PRE 0x308C /* EGL_ALPHA_FORMAT value */ /* Constant scale factor by which fractional display resolutions & * aspect ratio are scaled when queried as integer values. */ #define EGL_DISPLAY_SCALING 10000 /* Unknown display resolution/aspect ratio */ #define EGL_UNKNOWN ((EGLint)-1) /* Back buffer swap behaviors */ #define EGL_BUFFER_PRESERVED 0x3094 /* EGL_SWAP_BEHAVIOR value */ #define EGL_BUFFER_DESTROYED 0x3095 /* EGL_SWAP_BEHAVIOR value */ /* CreatePbufferFromClientBuffer buffer types */ #define EGL_OPENVG_IMAGE 0x3096 /* QueryContext targets */ #define EGL_CONTEXT_CLIENT_TYPE 0x3097 /* BindAPI/QueryAPI targets */ #define EGL_OPENGL_ES_API 0x30A0 #define EGL_OPENVG_API 0x30A1 /* GetCurrentSurface targets */ #define EGL_DRAW 0x3059 #define EGL_READ 0x305A /* WaitNative engines */ #define EGL_CORE_NATIVE_ENGINE 0x305B /* EGL extensions must request enum blocks from the OpenGL ARB * Secretary, who maintains the EGL enumerant registry. */ /* EGL Functions */ EGLint eglGetError(); EGLDisplay eglGetDisplay(NativeDisplayType display_id); EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); EGLBoolean eglTerminate(EGLDisplay dpy); const char *eglQueryString(EGLDisplay dpy, EGLint name); EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config); EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config); EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value); EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, NativeWindowType win, const EGLint *attrib_list); EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list); EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, NativePixmapType pixmap, const EGLint *attrib_list); EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface); EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value); EGLBoolean eglBindAPI(EGLenum api); EGLenum eglQueryAPI(void); EGLBoolean eglWaitClient(void); EGLBoolean eglReleaseThread(void); EGLSurface eglCreatePbufferFromClientBuffer( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list); EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value); EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval); EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list); EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx); EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx); EGLContext eglGetCurrentContext(void); EGLSurface eglGetCurrentSurface(EGLint readdraw); EGLDisplay eglGetCurrentDisplay(void); EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value); EGLBoolean eglWaitGL(void); EGLBoolean eglWaitNative(EGLint engine); EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, NativePixmapType target); void (*eglGetProcAddress(const char *procname))(); #endif /* __egl_h_ */
877fdc6fa35cf47f61f3981bc8385a3609b743ed
0744dcc5394cebf57ebcba343747af6871b67017
/os/arch/arm/src/stm32l4/stm32l4_dma.h
564b6f2dd6a482fec5a4fb72d8d0868d3745b7e3
[ "GPL-1.0-or-later", "BSD-3-Clause", "ISC", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-permissive", "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
C
false
false
11,107
h
stm32l4_dma.h
/************************************************************************************ * arch/arm/src/stm32l4/stm32l4_dma.h * * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * Sebastien Lorquet <sebastien@lorquet.fr> * dev@ziggurat29.com * * 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 disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ************************************************************************************/ #ifndef __ARCH_ARM_SRC_STM32L4_STM32L4_DMA_H #define __ARCH_ARM_SRC_STM32L4_STM32L4_DMA_H /************************************************************************************ * Included Files ************************************************************************************/ #include <tinyara/config.h> #include <sys/types.h> #include "chip.h" /* Include the correct DMA register definitions for this STM32 family */ #if defined(CONFIG_STM32L4_STM32L4X3) # include "chip/stm32l4x3xx_dma.h" #elif defined(CONFIG_STM32L4_STM32L4X5) # include "chip/stm32l4x5xx_dma.h" #elif defined(CONFIG_STM32L4_STM32L4X6) # include "chip/stm32l4x6xx_dma.h" #elif defined(CONFIG_STM32L4_STM32L4XR) # include "chip/stm32l4xrxx_dma.h" #else # error "Unsupported STM32L4 chip" #endif /* These definitions provide the bit encoding of the 'status' parameter passed to the * DMA callback function (see dma_callback_t). */ # define DMA_STATUS_TEIF DMA_CHAN_TEIF_BIT /* Channel Transfer Error */ # define DMA_STATUS_HTIF DMA_CHAN_HTIF_BIT /* Channel Half Transfer */ # define DMA_STATUS_TCIF DMA_CHAN_TCIF_BIT /* Channel Transfer Complete */ #define DMA_STATUS_ERROR (DMA_STATUS_TEIF) #define DMA_STATUS_SUCCESS (DMA_STATUS_TCIF|DMA_STATUS_HTIF) /************************************************************************************ * Public Types ************************************************************************************/ /* DMA_HANDLE provides an opaque are reference that can be used to represent a DMA * channel. */ typedef FAR void *DMA_HANDLE; /* Description: * This is the type of the callback that is used to inform the user of the * completion of the DMA. * * Input Parameters: * handle - Refers tot he DMA channel * status - A bit encoded value that provides the completion status. See the * DMASTATUS_* definitions above. * arg - A user-provided value that was provided when stm32l4_dmastart() was * called. */ typedef void (*dma_callback_t)(DMA_HANDLE handle, uint8_t status, void *arg); #ifdef CONFIG_DEBUG_DMA_INFO struct stm32l4_dmaregs_s { uint32_t isr; /* Interrupt Status Register; each channel gets 4 bits */ uint32_t cselr; /* Channel Selection Register; chooses peripheral bound */ uint32_t ccr; /* Channel Configuration Register; determines functionality */ uint32_t cndtr; /* Channel Count Register; determines number of transfers */ uint32_t cpar; /* Channel Peripheral Address Register; determines start */ uint32_t cmar; /* Channel Memory Address Register; determines start */ }; #endif /************************************************************************************ * Public Data ************************************************************************************/ #ifndef __ASSEMBLY__ #undef EXTERN #if defined(__cplusplus) #define EXTERN extern "C" extern "C" { #else #define EXTERN extern #endif /************************************************************************************ * Public Functions ************************************************************************************/ /**************************************************************************** * Name: stm32l4_dmachannel * * Description: * Allocate a DMA channel. This function gives the caller mutually * exclusive access to the DMA channel specified by the 'chan' argument. * DMA channels are shared on the STM32L4: Devices sharing the same DMA * channel cannot do DMA concurrently! See the DMACHAN_* definitions in * stm32l4_dma.h. * * If the DMA channel is not available, then stm32l4_dmachannel() will wait * until the holder of the channel relinquishes the channel by calling * stm32l4_dmafree(). WARNING: If you have two devices sharing a DMA * channel and the code never releases the channel, the stm32l4_dmachannel * call for the other will hang forever in this function! Don't let your * design do that! * * Hmm.. I suppose this interface could be extended to make a non-blocking * version. Feel free to do that if that is what you need. * * Input Parameters: * chan - Identifies the stream/channel resource * This is a bit encoded value as provided by the DMACHAN_* definitions * in chip/stm32l4x6xx_dma.h * * Returned Value: * Provided that 'chan' is valid, this function ALWAYS returns a non-NULL, * void* DMA channel handle. (If 'chan' is invalid, the function will * assert if debug is enabled or do something ignorant otherwise). * * Assumptions: * - The caller does not hold the DMA channel. * - The caller can wait for the DMA channel to be freed if it is not * available. * ****************************************************************************/ DMA_HANDLE stm32l4_dmachannel(unsigned int chan); /**************************************************************************** * Name: stm32l4_dmafree * * Description: * Release a DMA channel. If another thread is waiting for this DMA channel * in a call to stm32l4_dmachannel, then this function will re-assign the * DMA channel to that thread and wake it up. NOTE: The 'handle' used * in this argument must NEVER be used again until stm32l4_dmachannel() is * called again to re-gain access to the channel. * * Returned Value: * None * * Assumptions: * - The caller holds the DMA channel. * - There is no DMA in progress * ****************************************************************************/ void stm32l4_dmafree(DMA_HANDLE handle); /**************************************************************************** * Name: stm32l4_dmasetup * * Description: * Configure DMA before using * ****************************************************************************/ void stm32l4_dmasetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr, size_t ntransfers, uint32_t ccr); /**************************************************************************** * Name: stm32l4_dmastart * * Description: * Start the DMA transfer * * Assumptions: * - DMA handle allocated by stm32l4_dmachannel() * - No DMA in progress * ****************************************************************************/ void stm32l4_dmastart(DMA_HANDLE handle, dma_callback_t callback, void *arg, bool half); /**************************************************************************** * Name: stm32l4_dmastop * * Description: * Cancel the DMA. After stm32l4_dmastop() is called, the DMA channel is * reset and stm32l4_dmasetup() must be called before stm32l4_dmastart() can be * called again * * Assumptions: * - DMA handle allocated by stm32l4_dmachannel() * ****************************************************************************/ void stm32l4_dmastop(DMA_HANDLE handle); /**************************************************************************** * Name: stm32l4_dmaresidual * * Description: * Returns the number of bytes remaining to be transferred * * Assumptions: * - DMA handle allocated by stm32l4_dmachannel() * ****************************************************************************/ size_t stm32l4_dmaresidual(DMA_HANDLE handle); /**************************************************************************** * Name: stm32l4_dmacapable * * Description: * Check if the DMA controller can transfer data to/from given memory * address with the given configuration. This depends on the internal * connections in the ARM bus matrix of the processor. Note that this * only applies to memory addresses, it will return false for any peripheral * address. * * Returned Value: * True, if transfer is possible. * ****************************************************************************/ #ifdef CONFIG_STM32L4_DMACAPABLE bool stm32l4_dmacapable(uintptr_t maddr, uint32_t count, uint32_t ccr); #else # define stm32l4_dmacapable(maddr, count, ccr) (true) #endif /**************************************************************************** * Name: stm32l4_dmasample * * Description: * Sample DMA register contents * * Assumptions: * - DMA handle allocated by stm32l4_dmachannel() * ****************************************************************************/ #ifdef CONFIG_DEBUG_DMA_INFO void stm32l4_dmasample(DMA_HANDLE handle, struct stm32l4_dmaregs_s *regs); #else # define stm32l4_dmasample(handle,regs) #endif /**************************************************************************** * Name: stm32l4_dmadump * * Description: * Dump previously sampled DMA register contents * * Assumptions: * - DMA handle allocated by stm32l4_dmachannel() * ****************************************************************************/ #ifdef CONFIG_DEBUG_DMA_INFO void stm32l4_dmadump(DMA_HANDLE handle, const struct stm32l4_dmaregs_s *regs, const char *msg); #else # define stm32l4_dmadump(handle,regs,msg) #endif #undef EXTERN #if defined(__cplusplus) } #endif #endif /* __ASSEMBLY__ */ #endif /* __ARCH_ARM_SRC_STM32L4_STM32L4_DMA_H */
a2f70fa8e9ef4c7769fa636e2898b18d42c6f187
2fb6e11034c6d2252b98446cbca74b1e97b5588b
/src/wchar/_towcase.h
10b54aa891ce83cedac63473eccca197573b01a3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
embeddedartistry/libc
67994cfee6bf0def31820c23d3b46e0a5974407d
01472251c5d2ea2d6532b63665ded46285dd58be
refs/heads/master
2023-05-28T05:07:45.496796
2023-05-15T22:50:02
2023-05-15T22:50:02
88,765,798
438
66
MIT
2022-11-16T23:44:23
2017-04-19T16:18:26
C
UTF-8
C
false
false
195
h
_towcase.h
#ifndef TOWCASE_H__ #define TOWCASE_H__ #include <wctype.h> #ifdef __cplusplus extern "C" { #endif wchar_t __towcase(wchar_t wc, int lower); #ifdef __cplusplus } #endif #endif // TOWCASE_H_
cfea2825caff1db72a23a605627105a98ad56789
e7508ea0a1c1fca5979908742b7ad3033f7686e9
/objc/blocks_private.h
60a1d590acc411d80255cec63fb79bfb70e18c44
[ "GPL-1.0-or-later", "MIT" ]
permissive
gnustep/libobjc2
c89e3bd185cb431e891f4c29e1e9530482ff8a1d
71e38a048fc06fea0c2015662540d46a33b5c45d
refs/heads/master
2023-08-03T08:23:45.566080
2023-01-29T17:40:34
2023-02-19T16:03:04
22,781,599
429
125
MIT
2023-02-19T16:03:06
2014-08-09T07:37:34
C
UTF-8
C
false
false
2,445
h
blocks_private.h
#ifndef __LIBOBJC_BLOCKS_PRIVATE_H_INCLUDED__ #define __LIBOBJC_BLOCKS_PRIVATE_H_INCLUDED__ #if defined(__clang__) && !defined(__OBJC_RUNTIME_INTERNAL__) #pragma clang system_header #endif /* * This header file exposes some implementation details of the blocks runtime * that are needed, e.g., by libdispatch. */ /** * Block descriptor that contains copy and dispose operations. */ struct Block_descriptor { /** * Reserved for future use. Currently always 0. */ unsigned long int reserved; /** Size of the block. */ unsigned long int size; /** * Copy function, generated by the compiler to help copy the block if it * contains nontrivial copy operations. */ void (*copy_helper)(void *dst, void *src); /** * Dispose function, generated by the compiler to help copy the block if it * contains nontrivial destructors. */ void (*dispose_helper)(void *src); /** * Objective-C type encoding of the block. */ const char *encoding; }; // Helper structure struct Block_layout { /** * Class pointer. Always initialised to &_NSConcreteStackBlock for blocks * that are created on the stack or &_NSConcreteGlobalBlock for blocks that * are created in global storage. */ void *isa; /** * Flags. See the block_flags enumerated type for possible values. */ int flags; /** * Reserved - always initialised to 0 by the compiler. Used for the * reference count in this implementation. */ int reserved; /** * The function that implements the block. The first argument is this * structure, the subsequent arguments are the block's explicit parameters. * If the BLOCK_USE_SRET flag is set, there is an additional hidden * argument, which is a pointer to the space on the stack allocated to hold * the return value. */ void (*invoke)(void *, ...); /** * The block's descriptor. This is either Block_descriptor_basic or * Block_descriptor, depending on whether the * BLOCK_HAS_COPY_DISPOSE flag is set. */ struct Block_descriptor *descriptor; /** * Block variables are appended to this structure. */ }; #ifndef __OBJC_RUNTIME_INTERNAL__ /* * Deprecated Block_basic datastructure needed by libdispatch */ struct Block_basic { void *isa; int Block_flags; int Block_size; void (*Block_invoke)(void *); void (*Block_copy)(void *dst, void *src); void (*Block_dispose)(void *); }; #endif // __OBJC_RUNTIME_INTERNAL__ #endif //__LIBOBJC_BLOCKS_PRIVATE_H_INCLUDED__
b96c3d983fcb5751bf9281681895286b50e843d0
e3acfc4f06840e23ef1185dcf367f40d3e3f59b4
/tests/regression/15-deadlock/10-account_incorrect.c
a6a7b75da3c564323af28a05a412ad414329ba38
[ "MIT" ]
permissive
goblint/analyzer
d62d3c610b86ed288849371b41c330c30678abc7
69ee7163eef0bfbfd6a4f3b9fda7cea5ce9ab79f
refs/heads/master
2023-08-16T21:58:53.013737
2023-08-16T08:49:18
2023-08-16T08:49:18
2,066,905
141
62
MIT
2023-09-14T18:48:34
2011-07-18T15:10:56
OCaml
UTF-8
C
false
false
1,258
c
10-account_incorrect.c
// PARAM: --set ana.activated[+] deadlock #include <pthread.h> #include <stdio.h> typedef struct { int balance; int id; pthread_mutex_t mutex; } bank_account; bank_account A, B; int counter = 0; init_account(bank_account *a) { a->id = counter++; a->balance = 0; pthread_mutex_init(&a->mutex, NULL); } void deposit(bank_account *f, bank_account *t, int ammount) { if (f->id == t->id) return; if (f->id < t->id) { pthread_mutex_lock(&f->mutex); // DEADLOCK pthread_mutex_lock(&t->mutex); // DEADLOCK } else { pthread_mutex_lock(&f->mutex); // DEADLOCK pthread_mutex_lock(&t->mutex); // DEADLOCK } t->balance += ammount; f->balance -= ammount; pthread_mutex_unlock(&t->mutex); pthread_mutex_unlock(&f->mutex); } void *t1(void *arg) { deposit(&A, &B, rand() % 100); return NULL; } void *t2(void *arg) { deposit(&B, &A, rand() % 100); return NULL; } int main(void) { pthread_t id1, id2; init_account(&A); init_account(&B); int i; for (i = 0; i < 100000; i++) { pthread_create(&id1, NULL, t1, NULL); pthread_create(&id2, NULL, t2, NULL); pthread_join (id1, NULL); pthread_join (id2, NULL); printf("%d: A = %d, B = %d.\n", i, A.balance, B.balance); } return 0; }
2591f5adb3489a05624d72c090a681d1dc1cc437
7f6c235b0598353549959c18f69eefd20b766907
/libsrc/stdio/fgetpos.c
0a45ee9d376d2dcc746eef8af08bd071b393f8e0
[ "ClArtistic" ]
permissive
z88dk/z88dk
46dfd4905f36d99333173cadd0a660839befc9f0
8b07f37cc43c5d9ffe69b563c80763491d8faff7
refs/heads/master
2023-09-04T19:29:49.254958
2023-09-03T20:51:24
2023-09-03T20:51:24
54,035,569
820
263
NOASSERTION
2023-09-05T11:09:04
2016-03-16T13:48:16
Assembly
UTF-8
C
false
false
1,611
c
fgetpos.c
/* * Get the position of a file * * int fgetpos(FILE *fp, fpos_t *posn) * * Calls some machine dependent routine to do the dirty work * * djm 1/4/2000 * * -------- * $Id: fgetpos.c,v 1.4 2016-03-06 21:36:52 dom Exp $ */ #define ANSI_STDIO #ifdef Z80 #define STDIO_ASM #endif #include <stdio.h> int fgetpos(FILE *fp, fpos_t *posn) { #ifdef Z80 #asm IF __CPU_GBZ80__ | __CPU_INTEL__ ld hl,sp+2 ld c,(hl) inc hl ld b,(hl) inc hl ld a,(hl+) inc hl ld h,(hl) ld l,a ELSE pop af ;ret pop bc ;&posn pop hl ;fp push hl push bc push af ENDIF IF !__CPU_INTEL__ && !__CPU_GBZ80__ push ix ;save callers ix ENDIF ld e,(hl) inc hl ld d,(hl) inc hl ld a,(hl) ;flags and _IOUSE jr z,fgetpos_abort and _IOSYSTEM jr nz,fgetpos_abort IF !__CPU_INTEL__ && !__CPU_GBZ80__ ld a,(hl) and _IOEXTRA jr nz,fgetpos_trampoline ENDIF push de ;fd push bc ;&posn call fdgetpos pop bc pop bc IF !__CPU_INTEL__ && !__CPU_GBZ80__ pop ix ENDIF ret .fgetpos_abort IF !__CPU_INTEL__ && !__CPU_GBZ80__ pop ix ENDIF ld hl,-1 ret IF !__CPU_INTEL__ && !__CPU_GBZ80__ .fgetpos_trampoline ; Call the seek function via the trampoline dec hl dec hl IF __CPU_R2KA__ | __CPU_R3K__ ld ix,hl ELSE push hl pop ix ;ix = fp ENDIF push bc ; keep variable ptr for &posn result ld de,0 ;posn for lseek() ld bc,0 ld a,SEEK_CUR ex af,af ld hl,(ix+fp_extra) ld a,__STDIO_MSG_SEEK call l_jphl pop bc ;&posn call l_plong pop ix ENDIF #endasm #else if ( fp->flags&_IOUSE && fchkstd(fp)== 0 ) { return (fdgetpos(fp->fd,posn)); } return -1; #endif }
05157cb40c90397df7cc93c8b00a4cf8f835a60b
b2d5907cb1777f897154eb408b67240e30af26a6
/tests/not.c
77039a5086c6fba776d87843db4be5b8bf5a1d71
[ "MIT" ]
permissive
Konstantin8105/c4go
494dc7696cecf71228c1d80350f1a11916887148
c5400a76df0f5157f234547bef3ae8fb7b692685
refs/heads/master
2023-08-16T20:14:09.217497
2023-08-16T13:18:51
2023-08-16T13:18:51
127,093,867
380
48
MIT
2023-08-16T11:18:07
2018-03-28T06:24:57
C
UTF-8
C
false
false
15,027
c
not.c
#include "tests.h" #include <stdio.h> #define START_TEST(t) \ diag(#t); \ test_##t(); void print_bool(int tr, int fl) { if (tr) { printf("print_bool tr is true\n"); } else { printf("print_bool tr is false\n"); } if (fl) { printf("print_bool fl is true\n"); } else { printf("print_bool fl is false\n"); } if (tr != 0 && fl != 0) { pass("test != 0"); } if (tr == 0 && fl == 0) { pass("test == 0"); } } void ok() { pass("success"); } void f() { fail("need fix"); } #define not_c_type(type) \ diag("------------------"); \ { \ diag(#type); \ type a; \ int p; \ diag("not for C type : zero value"); \ a = 0; \ if (!a) { \ printf("a1\n"); \ ok(); \ } else { \ printf("a2\n"); \ f(); \ } \ diag("not-not for C type : zero value"); \ a = 0; \ if (!(!a)) { \ printf("a3\n"); \ f(); \ } else { \ printf("a4\n"); \ ok(); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ diag("for C type : assign"); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ diag("not for C type : non-zero positive value"); \ a = 42; \ if (!a) { \ printf("a5\n"); \ } else { \ printf("a6\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ diag("for C type : assign"); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ diag("not-not for C type : non-zero positive value"); \ a = 42; \ if (!(!a)) { \ printf("a7\n"); \ } else { \ printf("a8\n"); \ } \ diag("not for C type : non-zero negative value"); \ a = -42; \ if (!a) { \ printf("a5\n"); \ } else { \ printf("a6\n"); \ } \ diag("not-not for C type : non-zero negative value"); \ a = -42; \ if (!(!a)) { \ printf("a7\n"); \ } else { \ printf("a8\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ diag("for C type : assign"); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ diag("for C type : zero value"); \ a = 0; \ if (a) { \ printf("a9\n"); \ } else { \ printf("a10\n"); \ } \ diag("for C type : positive value"); \ a = 15; \ if (a) { \ printf("a11\n"); \ } else { \ printf("a12\n"); \ } \ diag("for C type : negative value"); \ a = -15; \ if (a) { \ printf("a13\n"); \ } else { \ printf("a14\n"); \ } \ diag("for C type : assign"); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ } void test_c_types() { not_c_type(char); not_c_type(double); not_c_type(float); not_c_type(short); not_c_type(int); not_c_type(long); not_c_type(long double); not_c_type(long long); not_c_type(signed char); } #define not_c_pointer(type) \ diag("------------------"); \ { \ diag(#type); \ type* a = NULL; \ int p; \ diag("for C pointer: null"); \ if (a) { \ printf("a1\n"); \ } else { \ printf("a2\n"); \ } \ diag("for C pointer: not null"); \ if (!a) { \ printf("a2\n"); \ } else { \ printf("a3\n"); \ } \ diag("for C pointer: not-not null"); \ if (!(!a)) { \ printf("a4\n"); \ } else { \ printf("a5\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ type b = 42; \ a = &b; \ diag("for C pointer: null"); \ if (a) { \ printf("a11\n"); \ } else { \ printf("a12\n"); \ } \ diag("for C pointer: not null"); \ if (!a) { \ printf("a12\n"); \ } else { \ printf("a13\n"); \ } \ diag("for C pointer: not-not null"); \ if (!(!a)) { \ printf("a14\n"); \ } else { \ printf("a15\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ } #define not_c_struct(type) \ diag("------------------"); \ { \ diag(#type); \ type* a = NULL; \ int p; \ diag("for C pointer: null"); \ if (a) { \ printf("a1\n"); \ } else { \ printf("a2\n"); \ } \ diag("for C pointer: not null"); \ if (!a) { \ printf("a2\n"); \ } else { \ printf("a3\n"); \ } \ diag("for C pointer: not-not null"); \ if (!(!a)) { \ printf("a4\n"); \ } else { \ printf("a5\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ type b; \ a = &b; \ diag("for C pointer: null"); \ if (a) { \ printf("a11\n"); \ } else { \ printf("a12\n"); \ } \ diag("for C pointer: not null"); \ if (!a) { \ printf("a12\n"); \ } else { \ printf("a13\n"); \ } \ diag("for C pointer: not-not null"); \ if (!(!a)) { \ printf("a14\n"); \ } else { \ printf("a15\n"); \ } \ diag("for C type : function"); \ print_bool(!a, !(!a)); \ p = !a; \ if (p) { \ printf("p1\n"); \ } else { \ printf("p2\n"); \ } \ } void test_c_pointers() { not_c_pointer(char); not_c_pointer(double); not_c_pointer(float); not_c_pointer(int); not_c_pointer(long double); not_c_pointer(long long); not_c_pointer(signed char); not_c_pointer(unsigned long); } struct str { int i; }; union un { int i; double d; }; void test_c_struct() { not_c_struct(struct str); not_c_struct(union un); } void test_c_function() { void (*a)(void); a = NULL; int p; diag("for C pointer: null"); if (a) { printf("a1\n"); } else { printf("a2\n"); } diag("for C pointer: not null"); if (!a) { printf("a2\n"); } else { printf("a3\n"); } diag("for C pointer: not-not null"); if (!(!a)) { printf("a4\n"); } else { printf("a5\n"); } diag("for C type : function"); print_bool(!a, !(!a)); p = !a; if (p) { printf("p1\n"); } else { printf("p2\n"); } a = test_c_pointers; diag("for C pointer: null"); if (a) { printf("a11\n"); } else { printf("a12\n"); } diag("for C pointer: not null"); if (!a) { printf("a12\n"); } else { printf("a13\n"); } diag("for C pointer: not-not null"); if (!(!a)) { printf("a14\n"); } else { printf("a15\n"); } diag("for C type : function"); print_bool(!a, !(!a)); p = !a; if (p) { printf("p1\n"); } else { printf("p2\n"); } } int main() { plan(18); START_TEST(c_types); START_TEST(c_pointers); START_TEST(c_struct); START_TEST(c_function); done_testing(); }
b0930f56c5ab6a738c89a4c1eb98ccda8affbcc4
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-security/krb-1.2.1/src/plugins/preauth/otp/main.c
2fc1b250ac4d3961c2f1a239cdf9e906647eb9d6
[ "BSD-4-Clause", "LicenseRef-scancode-generic-export-compliance", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-mit-old-style", "BSD-4-Clause-UC", "LicenseRef-scancode-rsa-1990", "BSD-3-Clause", "MIT-CMU", "LicenseRef-scancode-mit-no-advert-export-control", "CC-BY-SA-3.0", "LicenseRef-scancode-mit-modification-obligations", "LicenseRef-scancode-proprietary-license", "GPL-2.0-or-later", "LicenseRef-scancode-michigan-disclaimer", "ISC", "LicenseRef-scancode-nrl-permission", "FreeBSD-DOC", "LicenseRef-scancode-rsa-md4", "RSA-MD", "OLDAP-2.8", "FSFULLRWD", "BSD-2-Clause", "LicenseRef-scancode-brian-gladman", "MIT", "Apache-2.0" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
C
false
false
11,630
c
main.c
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* plugins/preauth/otp/main.c - OTP kdcpreauth module definition */ /* * Copyright 2011 NORDUnet A/S. All rights reserved. * Copyright 2013 Red Hat, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "k5-int.h" #include "k5-json.h" #include <krb5/preauth_plugin.h> #include "otp_state.h" #include <errno.h> #include <ctype.h> static krb5_preauthtype otp_pa_type_list[] = { KRB5_PADATA_OTP_REQUEST, 0 }; struct request_state { krb5_context context; krb5_kdcpreauth_verify_respond_fn respond; void *arg; krb5_enc_tkt_part *enc_tkt_reply; krb5_kdcpreauth_callbacks preauth_cb; krb5_kdcpreauth_rock rock; }; static krb5_error_code decrypt_encdata(krb5_context context, krb5_keyblock *armor_key, krb5_pa_otp_req *req, krb5_data *out) { krb5_error_code retval; krb5_data plaintext; if (req == NULL) return EINVAL; retval = alloc_data(&plaintext, req->enc_data.ciphertext.length); if (retval) return retval; retval = krb5_c_decrypt(context, armor_key, KRB5_KEYUSAGE_PA_OTP_REQUEST, NULL, &req->enc_data, &plaintext); if (retval != 0) { com_err("otp", retval, "Unable to decrypt encData in PA-OTP-REQUEST"); free(plaintext.data); return retval; } *out = plaintext; return 0; } static krb5_error_code nonce_verify(krb5_context ctx, krb5_keyblock *armor_key, const krb5_data *nonce) { krb5_error_code retval; krb5_timestamp ts; krb5_data *er = NULL; if (armor_key == NULL || nonce->data == NULL) { retval = EINVAL; goto out; } /* Decode the PA-OTP-ENC-REQUEST structure. */ retval = decode_krb5_pa_otp_enc_req(nonce, &er); if (retval != 0) goto out; /* Make sure the nonce is exactly the same size as the one generated. */ if (er->length != armor_key->length + sizeof(krb5_timestamp)) goto out; /* Check to make sure the timestamp at the beginning is still valid. */ ts = load_32_be(er->data); retval = krb5_check_clockskew(ctx, ts); out: krb5_free_data(ctx, er); return retval; } static krb5_error_code timestamp_verify(krb5_context ctx, const krb5_data *nonce) { krb5_error_code retval = EINVAL; krb5_pa_enc_ts *et = NULL; if (nonce->data == NULL) goto out; /* Decode the PA-ENC-TS-ENC structure. */ retval = decode_krb5_pa_enc_ts(nonce, &et); if (retval != 0) goto out; /* Check the clockskew. */ retval = krb5_check_clockskew(ctx, et->patimestamp); out: krb5_free_pa_enc_ts(ctx, et); return retval; } static krb5_error_code nonce_generate(krb5_context ctx, unsigned int length, krb5_data *nonce_out) { krb5_data nonce; krb5_error_code retval; krb5_timestamp now; retval = krb5_timeofday(ctx, &now); if (retval != 0) return retval; retval = alloc_data(&nonce, sizeof(now) + length); if (retval != 0) return retval; retval = krb5_c_random_make_octets(ctx, &nonce); if (retval != 0) { free(nonce.data); return retval; } store_32_be(now, nonce.data); *nonce_out = nonce; return 0; } static void on_response(void *data, krb5_error_code retval, otp_response response, char *const *indicators) { struct request_state rs = *(struct request_state *)data; krb5_context context = rs.context; krb5_keyblock *armor_key; char *const *ind; free(data); if (retval == 0 && response != otp_response_success) retval = KRB5_PREAUTH_FAILED; if (retval) goto done; rs.enc_tkt_reply->flags |= TKT_FLG_PRE_AUTH; armor_key = rs.preauth_cb->fast_armor(context, rs.rock); if (armor_key == NULL) { retval = ENOENT; goto done; } retval = rs.preauth_cb->replace_reply_key(context, rs.rock, armor_key, FALSE); if (retval) goto done; for (ind = indicators; ind != NULL && *ind != NULL; ind++) { retval = rs.preauth_cb->add_auth_indicator(context, rs.rock, *ind); if (retval) goto done; } done: rs.respond(rs.arg, retval, NULL, NULL, NULL); } static krb5_error_code otp_init(krb5_context context, krb5_kdcpreauth_moddata *moddata_out, const char **realmnames) { krb5_error_code retval; otp_state *state; retval = otp_state_new(context, &state); if (retval) return retval; *moddata_out = (krb5_kdcpreauth_moddata)state; return 0; } static void otp_fini(krb5_context context, krb5_kdcpreauth_moddata moddata) { otp_state_free((otp_state *)moddata); } static int otp_flags(krb5_context context, krb5_preauthtype pa_type) { return PA_REPLACES_KEY; } static void otp_edata(krb5_context context, krb5_kdc_req *request, krb5_kdcpreauth_callbacks cb, krb5_kdcpreauth_rock rock, krb5_kdcpreauth_moddata moddata, krb5_preauthtype pa_type, krb5_kdcpreauth_edata_respond_fn respond, void *arg) { krb5_otp_tokeninfo ti, *tis[2] = { &ti, NULL }; krb5_keyblock *armor_key = NULL; krb5_pa_otp_challenge chl; krb5_pa_data *pa = NULL; krb5_error_code retval; krb5_data *encoding; char *config; /* Determine if otp is enabled for the user. */ retval = cb->get_string(context, rock, "otp", &config); if (retval == 0 && config == NULL) retval = ENOENT; if (retval != 0) goto out; cb->free_string(context, rock, config); /* Get the armor key. This indicates the length of random data to use in * the nonce. */ armor_key = cb->fast_armor(context, rock); if (armor_key == NULL) { retval = ENOENT; goto out; } /* Build the (mostly empty) challenge. */ memset(&ti, 0, sizeof(ti)); memset(&chl, 0, sizeof(chl)); chl.tokeninfo = tis; ti.format = -1; ti.length = -1; ti.iteration_count = -1; /* Generate the nonce. */ retval = nonce_generate(context, armor_key->length, &chl.nonce); if (retval != 0) goto out; /* Build the output pa-data. */ retval = encode_krb5_pa_otp_challenge(&chl, &encoding); if (retval != 0) goto out; pa = k5alloc(sizeof(krb5_pa_data), &retval); if (pa == NULL) { krb5_free_data(context, encoding); goto out; } pa->pa_type = KRB5_PADATA_OTP_CHALLENGE; pa->contents = (krb5_octet *)encoding->data; pa->length = encoding->length; free(encoding); out: (*respond)(arg, retval, pa); } static void otp_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request, krb5_enc_tkt_part *enc_tkt_reply, krb5_pa_data *pa, krb5_kdcpreauth_callbacks cb, krb5_kdcpreauth_rock rock, krb5_kdcpreauth_moddata moddata, krb5_kdcpreauth_verify_respond_fn respond, void *arg) { krb5_keyblock *armor_key = NULL; krb5_pa_otp_req *req = NULL; struct request_state *rs; krb5_error_code retval; krb5_data d, plaintext; char *config; /* Get the FAST armor key. */ armor_key = cb->fast_armor(context, rock); if (armor_key == NULL) { retval = KRB5KDC_ERR_PREAUTH_FAILED; com_err("otp", retval, "No armor key found when verifying padata"); goto error; } /* Decode the request. */ d = make_data(pa->contents, pa->length); retval = decode_krb5_pa_otp_req(&d, &req); if (retval != 0) { com_err("otp", retval, "Unable to decode OTP request"); goto error; } /* Decrypt the nonce from the request. */ retval = decrypt_encdata(context, armor_key, req, &plaintext); if (retval != 0) { com_err("otp", retval, "Unable to decrypt nonce"); goto error; } /* Verify the nonce or timestamp. */ retval = nonce_verify(context, armor_key, &plaintext); if (retval != 0) retval = timestamp_verify(context, &plaintext); krb5_free_data_contents(context, &plaintext); if (retval != 0) { com_err("otp", retval, "Unable to verify nonce or timestamp"); goto error; } /* Create the request state. Save the response callback, and the * enc_tkt_reply pointer so we can set the TKT_FLG_PRE_AUTH flag later. */ rs = k5alloc(sizeof(struct request_state), &retval); if (rs == NULL) goto error; rs->context = context; rs->arg = arg; rs->respond = respond; rs->enc_tkt_reply = enc_tkt_reply; rs->preauth_cb = cb; rs->rock = rock; /* Get the principal's OTP configuration string. */ retval = cb->get_string(context, rock, "otp", &config); if (retval == 0 && config == NULL) retval = KRB5_PREAUTH_FAILED; if (retval != 0) { free(rs); goto error; } /* Send the request. */ otp_state_verify((otp_state *)moddata, cb->event_context(context, rock), cb->client_name(context, rock), config, req, on_response, rs); cb->free_string(context, rock, config); k5_free_pa_otp_req(context, req); return; error: k5_free_pa_otp_req(context, req); (*respond)(arg, retval, NULL, NULL, NULL); } krb5_error_code kdcpreauth_otp_initvt(krb5_context context, int maj_ver, int min_ver, krb5_plugin_vtable vtable); krb5_error_code kdcpreauth_otp_initvt(krb5_context context, int maj_ver, int min_ver, krb5_plugin_vtable vtable) { krb5_kdcpreauth_vtable vt; if (maj_ver != 1) return KRB5_PLUGIN_VER_NOTSUPP; vt = (krb5_kdcpreauth_vtable)vtable; vt->name = "otp"; vt->pa_type_list = otp_pa_type_list; vt->init = otp_init; vt->fini = otp_fini; vt->flags = otp_flags; vt->edata = otp_edata; vt->verify = otp_verify; com_err("otp", 0, "Loaded"); return 0; }
b90c0a8000a36c3402834e91746b2fd51c517c18
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/mail/emil/files/patch-mimeparse.c
b3eab04c834ee3ef65619bad6dfbc9e6af5d5c78
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C
false
false
1,062
c
patch-mimeparse.c
--- mimeparse.c.orig 1996-06-04 13:36:59 UTC +++ mimeparse.c @@ -219,9 +219,40 @@ parse_mime_siblings(struct message *m) inbuf->bodystart, inbuf->bodyend); #endif + /* FIX */ + if (m->sd->encoding == EMULTI && m->sd->endbound != NULL) + { + int tttt; + move_past_boundary(m, m->sd->endbound); + for (;;) + { + tttt = get_line(m->sd); +#ifdef DEBUG + if (edebug) + fprintf(stderr," get_line = %d\n", tttt); +#endif + if (tttt == 1) + { + inbuf->offset += tttt; + inbuf->loffset += 1; + continue; + } + if (tttt == 2 && *(m->sd->contents + m->sd->offset) == '\r') + { + inbuf->offset += tttt; + inbuf->loffset += 1; + continue; + } + break; + } - m->sd->offset = m->sd->bodyend; - if (getline(m->sd) == 0) + } + else + /* END_FIX */ + m->sd->offset = m->sd->bodyend; + + + if (get_line(m->sd) == 0) return(OK); if (m->sd->offset < m->sd->end) {
4fc8e479bd17849aa4629471aed2bba1683eab0b
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Source/ThirdParty/elftoolchain/build/Linux/libdwarf/dwarf_die.c
b2b38403005f937838c510a87d2a67973a92e19e
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
C
false
false
8,149
c
dwarf_die.c
/*- * Copyright (c) 2007 John Birrell (jb@freebsd.org) * Copyright (c) 2009,2011 Kai Wang * 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 conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include "_libdwarf.h" ELFTC_VCSID("$Id: dwarf_die.c 2073 2011-10-27 03:30:47Z jkoshy $"); int dwarf_child(Dwarf_Die die, Dwarf_Die *ret_die, Dwarf_Error *error) { Dwarf_Debug dbg; Dwarf_CU cu; int ret; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || ret_die == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } if (die->die_ab->ab_children == DW_CHILDREN_no) return (DW_DLE_NO_ENTRY); dbg = die->die_dbg; cu = die->die_cu; ret = _dwarf_die_parse(die->die_dbg, dbg->dbg_info_sec, cu, cu->cu_dwarf_size, die->die_next_off, cu->cu_next_offset, ret_die, 0, error); if (ret == DW_DLE_NO_ENTRY) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } else if (ret != DW_DLE_NONE) return (DW_DLV_ERROR); return (DW_DLV_OK); } int dwarf_siblingof(Dwarf_Debug dbg, Dwarf_Die die, Dwarf_Die *ret_die, Dwarf_Error *error) { Dwarf_CU cu; Dwarf_Attribute at; uint64_t offset; int ret, search_sibling; if (dbg == NULL || ret_die == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } if ((cu = dbg->dbg_cu_current) == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_DIE_NO_CU_CONTEXT); return (DW_DLV_ERROR); } /* Application requests the first DIE in this CU. */ if (die == NULL) return (dwarf_offdie(dbg, cu->cu_1st_offset, ret_die, error)); /* * If the DIE doesn't have any children, its sibling sits next * right to it. */ search_sibling = 0; if (die->die_ab->ab_children == DW_CHILDREN_no) offset = die->die_next_off; else { /* * Look for DW_AT_sibling attribute for the offset of * its sibling. */ if ((at = _dwarf_attr_find(die, DW_AT_sibling)) != NULL) { if (at->at_form != DW_FORM_ref_addr) offset = at->u[0].u64 + cu->cu_offset; else offset = at->u[0].u64; } else { offset = die->die_next_off; search_sibling = 1; } } ret = _dwarf_die_parse(die->die_dbg, dbg->dbg_info_sec, cu, cu->cu_dwarf_size, offset, cu->cu_next_offset, ret_die, search_sibling, error); if (ret == DW_DLE_NO_ENTRY) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } else if (ret != DW_DLE_NONE) return (DW_DLV_ERROR); return (DW_DLV_OK); } static int _dwarf_search_die_within_cu(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Off offset, Dwarf_Die *ret_die, Dwarf_Error *error) { assert(dbg != NULL && cu != NULL && ret_die != NULL); return (_dwarf_die_parse(dbg, dbg->dbg_info_sec, cu, cu->cu_dwarf_size, offset, cu->cu_next_offset, ret_die, 0, error)); } int dwarf_offdie(Dwarf_Debug dbg, Dwarf_Off offset, Dwarf_Die *ret_die, Dwarf_Error *error) { Dwarf_CU cu; int ret; if (dbg == NULL || ret_die == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } /* First search the current CU. */ if (dbg->dbg_cu_current != NULL) { cu = dbg->dbg_cu_current; if (offset > cu->cu_offset && offset < cu->cu_next_offset) { ret = _dwarf_search_die_within_cu(dbg, cu, offset, ret_die, error); if (ret == DW_DLE_NO_ENTRY) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } else if (ret != DW_DLE_NONE) return (DW_DLV_ERROR); return (DW_DLV_OK); } } /* Search other CUs. */ ret = _dwarf_info_load(dbg, 1, error); if (ret != DW_DLE_NONE) return (DW_DLV_ERROR); STAILQ_FOREACH(cu, &dbg->dbg_cu, cu_next) { if (offset < cu->cu_offset || offset > cu->cu_next_offset) continue; ret = _dwarf_search_die_within_cu(dbg, cu, offset, ret_die, error); if (ret == DW_DLE_NO_ENTRY) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } else if (ret != DW_DLE_NONE) return (DW_DLV_ERROR); return (DW_DLV_OK); } DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } int dwarf_tag(Dwarf_Die die, Dwarf_Half *tag, Dwarf_Error *error) { Dwarf_Debug dbg; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || tag == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } assert(die->die_ab != NULL); *tag = (Dwarf_Half) die->die_ab->ab_tag; return (DW_DLV_OK); } int dwarf_dieoffset(Dwarf_Die die, Dwarf_Off *ret_offset, Dwarf_Error *error) { Dwarf_Debug dbg; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || ret_offset == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } *ret_offset = die->die_offset; return (DW_DLV_OK); } int dwarf_die_CU_offset(Dwarf_Die die, Dwarf_Off *ret_offset, Dwarf_Error *error) { Dwarf_Debug dbg; Dwarf_CU cu; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || ret_offset == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } cu = die->die_cu; assert(cu != NULL); *ret_offset = die->die_offset - cu->cu_offset; return (DW_DLV_OK); } int dwarf_die_CU_offset_range(Dwarf_Die die, Dwarf_Off *cu_offset, Dwarf_Off *cu_length, Dwarf_Error *error) { Dwarf_Debug dbg; Dwarf_CU cu; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || cu_offset == NULL || cu_length == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } cu = die->die_cu; assert(cu != NULL); *cu_offset = cu->cu_offset; *cu_length = cu->cu_length + cu->cu_length_size; return (DW_DLV_OK); } int dwarf_diename(Dwarf_Die die, char **ret_name, Dwarf_Error *error) { Dwarf_Debug dbg; dbg = die != NULL ? die->die_dbg : NULL; if (die == NULL || ret_name == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } if (die->die_name == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } *ret_name = die->die_name; return (DW_DLV_OK); } int dwarf_die_abbrev_code(Dwarf_Die die) { assert(die != NULL); return (die->die_abnum); } int dwarf_get_cu_die_offset_given_cu_header_offset(Dwarf_Debug dbg, Dwarf_Off in_cu_header_offset, Dwarf_Off *out_cu_die_offset, Dwarf_Error *error) { Dwarf_CU cu; if (dbg == NULL || out_cu_die_offset == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } STAILQ_FOREACH(cu, &dbg->dbg_cu, cu_next) { if (cu->cu_offset == in_cu_header_offset) { *out_cu_die_offset = cu->cu_1st_offset; break; } } if (cu == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY); return (DW_DLV_NO_ENTRY); } return (DW_DLV_OK); } int dwarf_get_address_size(Dwarf_Debug dbg, Dwarf_Half *addr_size, Dwarf_Error *error) { if (dbg == NULL || addr_size == NULL) { DWARF_SET_ERROR(dbg, error, DW_DLE_ARGUMENT); return (DW_DLV_ERROR); } *addr_size = dbg->dbg_pointer_size; return (DW_DLV_OK); }
b376449770682947f07373a23d12d67600744c20
7d7900e1c25b729fc8c208673a449c0520ba466e
/lib/CL/devices/pthread/pthread_scheduler.c
7f6c8021bc1a3b52bf53cfe84f6ab91760b1000e
[ "MIT", "BSD-2-Clause" ]
permissive
pocl/pocl
384091e15c8f6abf29fd2c6deace34a7de5a6ac6
5a99e12d0bb78427ad948ac368589135507f1b59
refs/heads/main
2023-09-02T14:16:21.381680
2023-08-21T12:13:47
2023-08-21T12:13:47
12,292,999
775
250
MIT
2023-09-14T06:50:34
2013-08-22T09:26:12
C
UTF-8
C
false
false
18,027
c
pthread_scheduler.c
/* OpenCL native pthreaded device implementation. Copyright (c) 2011-2019 pocl developers 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, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define _GNU_SOURCE #ifdef __linux__ #include <sched.h> #endif #include <pthread.h> #include <string.h> #include <time.h> #include <unistd.h> #include "builtin_kernels.hh" #include "common.h" #include "common_driver.h" #include "pocl-pthread.h" #include "pocl-pthread_scheduler.h" #include "pocl-pthread_utils.h" #include "pocl_cl.h" #include "pocl_mem_management.h" #include "pocl_util.h" #include "utlist.h" #ifdef __APPLE__ #include "pthread_barrier.h" #endif static void* pocl_pthread_driver_thread (void *p); struct pool_thread_data { pthread_t thread __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); unsigned long executed_commands; /* per-CU (= per-thread) local memory */ void *local_mem; unsigned current_ftz; unsigned num_threads; /* index of this particular thread * [0, num_threads-1] * used for deciding whether a particular thread should run * commands scheduled on a subdevice. */ unsigned index; /* printf buffer*/ void *printf_buffer; } __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); typedef struct scheduler_data_ { unsigned num_threads; unsigned printf_buf_size; struct pool_thread_data *thread_pool; size_t local_mem_size; _cl_command_node *work_queue __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); kernel_run_command *kernel_queue; pthread_cond_t wake_pool __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); POCL_FAST_LOCK_T wq_lock_fast __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); int thread_pool_shutdown_requested; pthread_barrier_t init_barrier __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); int worker_out_of_memory; } scheduler_data __attribute__ ((aligned (HOST_CPU_CACHELINE_SIZE))); static scheduler_data scheduler; cl_int pthread_scheduler_init (cl_device_id device) { unsigned i; size_t num_worker_threads = device->max_compute_units; POCL_FAST_INIT (scheduler.wq_lock_fast); PTHREAD_CHECK (pthread_cond_init (&(scheduler.wake_pool), NULL)); POCL_LOCK (scheduler.wq_lock_fast); VG_ASSOC_COND_VAR (scheduler.wake_pool, scheduler.wq_lock_fast); POCL_UNLOCK (scheduler.wq_lock_fast); scheduler.thread_pool = pocl_aligned_malloc ( HOST_CPU_CACHELINE_SIZE, num_worker_threads * sizeof (struct pool_thread_data)); memset (scheduler.thread_pool, 0, num_worker_threads * sizeof (struct pool_thread_data)); scheduler.num_threads = num_worker_threads; assert (num_worker_threads > 0); scheduler.printf_buf_size = device->printf_buffer_size; assert (device->printf_buffer_size > 0); /* safety margin - aligning pointers later (in kernel arg setup) * may require more local memory than actual local mem size. * TODO fix this */ scheduler.local_mem_size = device->local_mem_size + device->max_parameter_size * MAX_EXTENDED_ALIGNMENT; PTHREAD_CHECK (pthread_barrier_init (&scheduler.init_barrier, NULL, num_worker_threads + 1)); scheduler.worker_out_of_memory = 0; for (i = 0; i < num_worker_threads; ++i) { scheduler.thread_pool[i].index = i; PTHREAD_CHECK (pthread_create (&scheduler.thread_pool[i].thread, NULL, pocl_pthread_driver_thread, (void *)&scheduler.thread_pool[i])); #if defined(__linux__) && defined(__x86_64__) pocl_ignore_sigfpe_for_thread (scheduler.thread_pool[i].thread); #endif } PTHREAD_CHECK2 (PTHREAD_BARRIER_SERIAL_THREAD, pthread_barrier_wait (&scheduler.init_barrier)); if (scheduler.worker_out_of_memory) { pthread_scheduler_uninit (); return CL_OUT_OF_HOST_MEMORY; } return CL_SUCCESS; } void pthread_scheduler_uninit () { unsigned i; POCL_FAST_LOCK (scheduler.wq_lock_fast); scheduler.thread_pool_shutdown_requested = 1; PTHREAD_CHECK (pthread_cond_broadcast (&scheduler.wake_pool)); POCL_FAST_UNLOCK (scheduler.wq_lock_fast); for (i = 0; i < scheduler.num_threads; ++i) { PTHREAD_CHECK (pthread_join (scheduler.thread_pool[i].thread, NULL)); } pocl_aligned_free (scheduler.thread_pool); POCL_FAST_DESTROY (scheduler.wq_lock_fast); PTHREAD_CHECK (pthread_cond_destroy (&scheduler.wake_pool)); PTHREAD_CHECK (pthread_barrier_destroy (&scheduler.init_barrier)); scheduler.thread_pool_shutdown_requested = 0; } /* push_command and push_kernel MUST use broadcast and wake up all threads, because commands can be for subdevices (= not all threads) */ void pthread_scheduler_push_command (_cl_command_node *cmd) { POCL_FAST_LOCK (scheduler.wq_lock_fast); DL_APPEND (scheduler.work_queue, cmd); PTHREAD_CHECK (pthread_cond_broadcast (&scheduler.wake_pool)); POCL_FAST_UNLOCK (scheduler.wq_lock_fast); } static void pthread_scheduler_push_kernel (kernel_run_command *run_cmd) { POCL_FAST_LOCK (scheduler.wq_lock_fast); DL_APPEND (scheduler.kernel_queue, run_cmd); PTHREAD_CHECK (pthread_cond_broadcast (&scheduler.wake_pool)); POCL_FAST_UNLOCK (scheduler.wq_lock_fast); } /* if subd is not a subdevice, returns 1 * if subd is subdevice, takes a look at the subdevice CUs * and if they match the current driver thread, returns 1 * otherwise returns 0 */ static int shall_we_run_this (thread_data *td, cl_device_id subd) { if (subd && subd->parent_device) { if (!((td->index >= subd->core_start) && (td->index < (subd->core_start + subd->core_count)))) { return 0; } } return 1; } /* Maximum and minimum chunk sizes for get_wg_index_range(). * Each pthread driver's thread fetches work from a kernel's WG pool in * chunks, this determines the limits (scaled up by # of threads). */ #define POCL_PTHREAD_MAX_WGS 256 #define POCL_PTHREAD_MIN_WGS 32 static int get_wg_index_range (kernel_run_command *k, unsigned *start_index, unsigned *end_index, int *last_wgs, unsigned num_threads) { const unsigned scaled_max_wgs = POCL_PTHREAD_MAX_WGS * num_threads; const unsigned scaled_min_wgs = POCL_PTHREAD_MIN_WGS * num_threads; unsigned limit; unsigned max_wgs; POCL_FAST_LOCK (k->lock); if (k->remaining_wgs == 0) { POCL_FAST_UNLOCK (k->lock); return 0; } /* If the work is comprised of huge number of WGs of small WIs, * then get_wg_index_range() becomes a problem on manycore CPUs * because lock contention on k->lock. * * If we have enough workgroups, scale up the requests linearly by * num_threads, otherwise fallback to smaller workgroups. */ if (k->remaining_wgs <= (scaled_max_wgs * num_threads)) limit = scaled_min_wgs; else limit = scaled_max_wgs; // divide two integers rounding up, i.e. ceil(k->remaining_wgs/num_threads) const unsigned wgs_per_thread = (1 + (k->remaining_wgs - 1) / num_threads); max_wgs = min (limit, wgs_per_thread); max_wgs = min (max_wgs, k->remaining_wgs); assert (max_wgs > 0); *start_index = k->wgs_dealt; *end_index = k->wgs_dealt + max_wgs-1; k->remaining_wgs -= max_wgs; k->wgs_dealt += max_wgs; if (k->remaining_wgs == 0) *last_wgs = 1; POCL_FAST_UNLOCK (k->lock); return 1; } inline static void translate_wg_index_to_3d_index (kernel_run_command *k, unsigned index, size_t *index_3d, unsigned xy_slice, unsigned row_size) { index_3d[2] = index / xy_slice; index_3d[1] = (index % xy_slice) / row_size; index_3d[0] = (index % xy_slice) % row_size; } static int work_group_scheduler (kernel_run_command *k, struct pool_thread_data *thread_data) { pocl_kernel_metadata_t *meta = k->kernel->meta; void *arguments[meta->num_args + meta->num_locals + 1]; void *arguments2[meta->num_args + meta->num_locals + 1]; struct pocl_context pc; unsigned i; unsigned start_index; unsigned end_index; int last_wgs = 0; if (!get_wg_index_range (k, &start_index, &end_index, &last_wgs, thread_data->num_threads)) return 0; assert (end_index >= start_index); setup_kernel_arg_array_with_locals ( (void **)&arguments, (void **)&arguments2, k, thread_data->local_mem, scheduler.local_mem_size); memcpy (&pc, &k->pc, sizeof (struct pocl_context)); // capacity and position already set up pc.printf_buffer = thread_data->printf_buffer; uint32_t position = 0; pc.printf_buffer_position = &position; assert (pc.printf_buffer != NULL); assert (pc.printf_buffer_capacity > 0); assert (pc.printf_buffer_position != NULL); /* Flush to zero is only set once at start of kernel (because FTZ is * a compilation option), but we need to reset rounding mode after every * iteration (since it can be changed during kernel execution). */ unsigned flush = k->kernel->program->flush_denorms; if (thread_data->current_ftz != flush) { pocl_set_ftz (flush); thread_data->current_ftz = flush; } unsigned slice_size = k->pc.num_groups[0] * k->pc.num_groups[1]; unsigned row_size = k->pc.num_groups[0]; do { if (last_wgs) { POCL_FAST_LOCK (scheduler.wq_lock_fast); DL_DELETE (scheduler.kernel_queue, k); POCL_FAST_UNLOCK (scheduler.wq_lock_fast); } for (i = start_index; i <= end_index; ++i) { size_t gids[3]; translate_wg_index_to_3d_index (k, i, gids, slice_size, row_size); #ifdef DEBUG_MT printf("### exec_wg: gid_x %zu, gid_y %zu, gid_z %zu\n", gids[0], gids[1], gids[2]); #endif pocl_set_default_rm (); k->workgroup ((uint8_t*)arguments, (uint8_t*)&pc, gids[0], gids[1], gids[2]); } } while (get_wg_index_range (k, &start_index, &end_index, &last_wgs, thread_data->num_threads)); if (position > 0) { write (STDOUT_FILENO, pc.printf_buffer, position); } free_kernel_arg_array_with_locals ((void **)&arguments, (void **)&arguments2, k); return 1; } static void finalize_kernel_command (struct pool_thread_data *thread_data, kernel_run_command *k) { #ifdef DEBUG_MT printf("### kernel %s finished\n", k->cmd->command.run.kernel->name); #endif free_kernel_arg_array (k); pocl_release_dlhandle_cache (k->cmd); POCL_UPDATE_EVENT_COMPLETE_MSG (k->cmd->sync.event.event, "NDRange Kernel "); POCL_FAST_DESTROY (k->lock); free_kernel_run_command (k); } static void pocl_pthread_prepare_kernel (void *data, _cl_command_node *cmd) { kernel_run_command *run_cmd; cl_kernel kernel = cmd->command.run.kernel; struct pocl_context *pc = &cmd->command.run.pc; cl_program program = kernel->program; cl_uint dev_i = cmd->program_device_i; /* initialize the program gvars if required */ pocl_driver_build_gvar_init_kernel (program, dev_i, cmd->device, pocl_cpu_gvar_init_callback); size_t num_groups = pc->num_groups[0] * pc->num_groups[1] * pc->num_groups[2]; if (num_groups == 0) { pocl_update_event_running (cmd->sync.event.event); POCL_UPDATE_EVENT_COMPLETE_MSG (cmd->sync.event.event, "NDRange Kernel "); return; } char *saved_name = NULL; pocl_sanitize_builtin_kernel_name (kernel, &saved_name); pocl_check_kernel_dlhandle_cache (cmd, CL_TRUE, CL_TRUE); pocl_restore_builtin_kernel_name (kernel, saved_name); run_cmd = new_kernel_run_command (); run_cmd->data = data; run_cmd->kernel = kernel; run_cmd->device = cmd->device; run_cmd->pc = *pc; run_cmd->cmd = cmd; run_cmd->pc.printf_buffer = NULL; run_cmd->pc.printf_buffer_capacity = scheduler.printf_buf_size; run_cmd->pc.printf_buffer_position = NULL; run_cmd->pc.global_var_buffer = program->gvar_storage[dev_i]; run_cmd->remaining_wgs = num_groups; run_cmd->wgs_dealt = 0; run_cmd->workgroup = cmd->command.run.wg; run_cmd->kernel_args = cmd->command.run.arguments; run_cmd->next = NULL; run_cmd->ref_count = 0; POCL_FAST_INIT (run_cmd->lock); setup_kernel_arg_array (run_cmd); pocl_update_event_running (cmd->sync.event.event); pthread_scheduler_push_kernel (run_cmd); } /* These two check the entire kernel/cmd queue. This is necessary because of commands for subdevices. The old code only checked the head of each queue; this can lead to a deadlock: two driver threads, each assigned two subdevices A, B, one driver queue C cmd A1 for A arrives in C, A starts processing cmd B1 for B arrives in C, B starts processing cmds A2, A3, B2 are pushed to C B finishes processing B1, checks queue head, A2 isn't for it, goes to sleep A finishes processing A1, processes A2 + A3 but ignores B2, it's not for it application calls clFinish to wait for queue ...now B is sleeping and not possible to wake up (since no new commands can arrive) and there's a B2 command which will never be processed. it's possible to workaround but it's cleaner to just check the whole queue. */ static _cl_command_node * check_cmd_queue_for_device (thread_data *td) { _cl_command_node *cmd; DL_FOREACH (scheduler.work_queue, cmd) { cl_device_id subd = cmd->device; if (shall_we_run_this (td, subd)) { DL_DELETE (scheduler.work_queue, cmd); return cmd; } } return NULL; } static kernel_run_command * check_kernel_queue_for_device (thread_data *td) { kernel_run_command *cmd; DL_FOREACH (scheduler.kernel_queue, cmd) { cl_device_id subd = cmd->device; if (shall_we_run_this (td, subd)) return cmd; } return NULL; } static int pthread_scheduler_get_work (thread_data *td) { _cl_command_node *cmd; kernel_run_command *run_cmd; /* execute kernel if available */ POCL_FAST_LOCK (scheduler.wq_lock_fast); int do_exit = 0; RETRY: do_exit = scheduler.thread_pool_shutdown_requested; run_cmd = check_kernel_queue_for_device (td); /* execute kernel if available */ if (run_cmd) { ++run_cmd->ref_count; POCL_FAST_UNLOCK (scheduler.wq_lock_fast); work_group_scheduler (run_cmd, td); POCL_FAST_LOCK (scheduler.wq_lock_fast); if ((--run_cmd->ref_count) == 0) { POCL_FAST_UNLOCK (scheduler.wq_lock_fast); finalize_kernel_command (td, run_cmd); POCL_FAST_LOCK (scheduler.wq_lock_fast); } } /* execute a command if available */ cmd = check_cmd_queue_for_device (td); if (cmd) { POCL_FAST_UNLOCK (scheduler.wq_lock_fast); assert (pocl_command_is_ready (cmd->sync.event.event)); if (cmd->type == CL_COMMAND_NDRANGE_KERNEL) { pocl_pthread_prepare_kernel (cmd->device->data, cmd); } else { pocl_exec_command (cmd); } POCL_FAST_LOCK (scheduler.wq_lock_fast); ++td->executed_commands; } /* if neither a command nor a kernel was available, sleep */ if ((cmd == NULL) && (run_cmd == NULL) && (do_exit == 0)) { PTHREAD_CHECK ( pthread_cond_wait (&scheduler.wake_pool, &scheduler.wq_lock_fast)); goto RETRY; } POCL_FAST_UNLOCK (scheduler.wq_lock_fast); return do_exit; } static void* pocl_pthread_driver_thread (void *p) { struct pool_thread_data *td = (struct pool_thread_data*)p; int do_exit = 0; assert (td); /* some random value, doesn't matter as long as it's not a valid bool - to * force a first FTZ setup */ td->current_ftz = 213; td->num_threads = scheduler.num_threads; td->printf_buffer = pocl_aligned_malloc (MAX_EXTENDED_ALIGNMENT, scheduler.printf_buf_size); assert (scheduler.local_mem_size > 0); td->local_mem = pocl_aligned_malloc (MAX_EXTENDED_ALIGNMENT, scheduler.local_mem_size); #ifdef __linux__ if (pocl_get_bool_option ("POCL_AFFINITY", 0)) { cpu_set_t set; CPU_ZERO (&set); CPU_SET (td->index, &set); PTHREAD_CHECK ( pthread_setaffinity_np (td->thread, sizeof (cpu_set_t), &set)); } #endif if (td->printf_buffer == NULL || td->local_mem == NULL) { POCL_ATOMIC_INC (scheduler.worker_out_of_memory); } PTHREAD_CHECK2 (PTHREAD_BARRIER_SERIAL_THREAD, pthread_barrier_wait (&scheduler.init_barrier)); while (1) { do_exit = pthread_scheduler_get_work (td); if (do_exit) { pocl_aligned_free (td->printf_buffer); pocl_aligned_free (td->local_mem); pthread_exit (NULL); } } }
c9a264e78e10999195dda80811a0cca5a80050e6
d51052b71c9e19eef8830de012e070cb2d17f369
/BeBoldDT/Pods/BuildHeaders/DTCoreText/DTHTMLElementStylesheet.h
acfd6981090fad4f2f15b685b397df56571fa174
[]
no_license
rnapier/richtext-coretext
b128b678d592885ca2aec8f17721c5198219e0e3
4d5539d0bdbd829ebe62b10440fbd24962815c4e
refs/heads/master
2020-06-05T08:46:12.976090
2020-05-24T19:27:14
2020-05-24T19:27:14
6,932,366
104
20
null
null
null
null
UTF-8
C
false
false
54
h
DTHTMLElementStylesheet.h
../../DTCoreText/Core/Source/DTHTMLElementStylesheet.h
61613bfd43071bb0b1f69f7d9cb5bba8ceb0d943
badb70a0b235c98ac034cfe5b4bfafda36647831
/Library/OcGuardLib/Math.c
826e87f6a663acb492841425a1b6ddd719874d6c
[ "BSD-3-Clause" ]
permissive
acidanthera/OpenCorePkg
f34a7d67b22c74fb5ab559e48519e5f5855b6751
1d5b1736fe5a5ef7662b5c076c6d11aac96fd5d6
refs/heads/master
2023-08-30T21:03:02.993659
2023-08-28T23:30:43
2023-08-28T23:30:43
179,354,282
13,212
2,999
BSD-3-Clause
2023-09-10T18:29:53
2019-04-03T19:14:29
C
UTF-8
C
false
false
1,960
c
Math.c
/** @file Copyright (C) 2019, vit9696. All rights reserved. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include <Library/BaseLib.h> #include <Library/OcMiscLib.h> /** MultThenDivU64x64x32 is from MdeModulePkg's PciRootBridgeIo.c Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ UINT64 MultThenDivU64x64x32 ( IN UINT64 Multiplicand, IN UINT64 Multiplier, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL ) { UINT64 Uint64; UINT32 LocalRemainder; UINT32 Uint32; if (Multiplicand > DivU64x64Remainder (MAX_UINT64, Multiplier, NULL)) { // // Make sure Multiplicand is the bigger one. // if (Multiplicand < Multiplier) { Uint64 = Multiplicand; Multiplicand = Multiplier; Multiplier = Uint64; } // // Because Multiplicand * Multiplier overflows, // Multiplicand * Multiplier / Divisor // = (2 * Multiplicand' + 1) * Multiplier / Divisor // = 2 * (Multiplicand' * Multiplier / Divisor) + Multiplier / Divisor // Uint64 = MultThenDivU64x64x32 (RShiftU64 (Multiplicand, 1), Multiplier, Divisor, &LocalRemainder); Uint64 = LShiftU64 (Uint64, 1); Uint32 = 0; if ((Multiplicand & 0x1) == 1) { Uint64 += DivU64x32Remainder (Multiplier, Divisor, &Uint32); } return Uint64 + DivU64x32Remainder (Uint32 + LShiftU64 (LocalRemainder, 1), Divisor, Remainder); } else { return DivU64x32Remainder (MultU64x64 (Multiplicand, Multiplier), Divisor, Remainder); } }
f4871807576c0dc403a0fc100c84f545eb03c27d
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/libaom/source/libaom/av1/common/x86/cfl_avx2.c
e1e187c4a653a8fa788ed1c0f32b9c9451a62cc5
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
C
false
false
21,371
c
cfl_avx2.c
/* * Copyright (c) 2017, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ #include <immintrin.h> #include "config/av1_rtcd.h" #include "av1/common/cfl.h" #include "av1/common/x86/cfl_simd.h" #define CFL_GET_SUBSAMPLE_FUNCTION_AVX2(sub, bd) \ CFL_SUBSAMPLE(avx2, sub, bd, 32, 32) \ CFL_SUBSAMPLE(avx2, sub, bd, 32, 16) \ CFL_SUBSAMPLE(avx2, sub, bd, 32, 8) \ cfl_subsample_##bd##_fn cfl_get_luma_subsampling_##sub##_##bd##_avx2( \ TX_SIZE tx_size) { \ static const cfl_subsample_##bd##_fn subfn_##sub[TX_SIZES_ALL] = { \ cfl_subsample_##bd##_##sub##_4x4_ssse3, /* 4x4 */ \ cfl_subsample_##bd##_##sub##_8x8_ssse3, /* 8x8 */ \ cfl_subsample_##bd##_##sub##_16x16_ssse3, /* 16x16 */ \ cfl_subsample_##bd##_##sub##_32x32_avx2, /* 32x32 */ \ NULL, /* 64x64 (invalid CFL size) */ \ cfl_subsample_##bd##_##sub##_4x8_ssse3, /* 4x8 */ \ cfl_subsample_##bd##_##sub##_8x4_ssse3, /* 8x4 */ \ cfl_subsample_##bd##_##sub##_8x16_ssse3, /* 8x16 */ \ cfl_subsample_##bd##_##sub##_16x8_ssse3, /* 16x8 */ \ cfl_subsample_##bd##_##sub##_16x32_ssse3, /* 16x32 */ \ cfl_subsample_##bd##_##sub##_32x16_avx2, /* 32x16 */ \ NULL, /* 32x64 (invalid CFL size) */ \ NULL, /* 64x32 (invalid CFL size) */ \ cfl_subsample_##bd##_##sub##_4x16_ssse3, /* 4x16 */ \ cfl_subsample_##bd##_##sub##_16x4_ssse3, /* 16x4 */ \ cfl_subsample_##bd##_##sub##_8x32_ssse3, /* 8x32 */ \ cfl_subsample_##bd##_##sub##_32x8_avx2, /* 32x8 */ \ NULL, /* 16x64 (invalid CFL size) */ \ NULL, /* 64x16 (invalid CFL size) */ \ }; \ return subfn_##sub[tx_size]; \ } /** * Adds 4 pixels (in a 2x2 grid) and multiplies them by 2. Resulting in a more * precise version of a box filter 4:2:0 pixel subsampling in Q3. * * The CfL prediction buffer is always of size CFL_BUF_SQUARE. However, the * active area is specified using width and height. * * Note: We don't need to worry about going over the active area, as long as we * stay inside the CfL prediction buffer. * * Note: For 4:2:0 luma subsampling, the width will never be greater than 16. */ static void cfl_luma_subsampling_420_lbd_avx2(const uint8_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 const __m256i twos = _mm256_set1_epi8(2); // Thirty two twos const int luma_stride = input_stride << 1; __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + (height >> 1) * CFL_BUF_LINE_I256; do { __m256i top = _mm256_loadu_si256((__m256i *)input); __m256i bot = _mm256_loadu_si256((__m256i *)(input + input_stride)); __m256i top_16x16 = _mm256_maddubs_epi16(top, twos); __m256i bot_16x16 = _mm256_maddubs_epi16(bot, twos); __m256i sum_16x16 = _mm256_add_epi16(top_16x16, bot_16x16); _mm256_storeu_si256(row, sum_16x16); input += luma_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(420, lbd) /** * Adds 2 pixels (in a 2x1 grid) and multiplies them by 4. Resulting in a more * precise version of a box filter 4:2:2 pixel subsampling in Q3. * * The CfL prediction buffer is always of size CFL_BUF_SQUARE. However, the * active area is specified using width and height. * * Note: We don't need to worry about going over the active area, as long as we * stay inside the CfL prediction buffer. */ static void cfl_luma_subsampling_422_lbd_avx2(const uint8_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 const __m256i fours = _mm256_set1_epi8(4); // Thirty two fours __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; do { __m256i top = _mm256_loadu_si256((__m256i *)input); __m256i top_16x16 = _mm256_maddubs_epi16(top, fours); _mm256_storeu_si256(row, top_16x16); input += input_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(422, lbd) /** * Multiplies the pixels by 8 (scaling in Q3). The AVX2 subsampling is only * performed on block of width 32. * * The CfL prediction buffer is always of size CFL_BUF_SQUARE. However, the * active area is specified using width and height. * * Note: We don't need to worry about going over the active area, as long as we * stay inside the CfL prediction buffer. */ static void cfl_luma_subsampling_444_lbd_avx2(const uint8_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; const __m256i zeros = _mm256_setzero_si256(); do { __m256i top = _mm256_loadu_si256((__m256i *)input); top = _mm256_permute4x64_epi64(top, _MM_SHUFFLE(3, 1, 2, 0)); __m256i row_lo = _mm256_unpacklo_epi8(top, zeros); row_lo = _mm256_slli_epi16(row_lo, 3); __m256i row_hi = _mm256_unpackhi_epi8(top, zeros); row_hi = _mm256_slli_epi16(row_hi, 3); _mm256_storeu_si256(row, row_lo); _mm256_storeu_si256(row + 1, row_hi); input += input_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(444, lbd) #if CONFIG_AV1_HIGHBITDEPTH /** * Adds 4 pixels (in a 2x2 grid) and multiplies them by 2. Resulting in a more * precise version of a box filter 4:2:0 pixel subsampling in Q3. * * The CfL prediction buffer is always of size CFL_BUF_SQUARE. However, the * active area is specified using width and height. * * Note: We don't need to worry about going over the active area, as long as we * stay inside the CfL prediction buffer. * * Note: For 4:2:0 luma subsampling, the width will never be greater than 16. */ static void cfl_luma_subsampling_420_hbd_avx2(const uint16_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 const int luma_stride = input_stride << 1; __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + (height >> 1) * CFL_BUF_LINE_I256; do { __m256i top = _mm256_loadu_si256((__m256i *)input); __m256i bot = _mm256_loadu_si256((__m256i *)(input + input_stride)); __m256i sum = _mm256_add_epi16(top, bot); __m256i top_1 = _mm256_loadu_si256((__m256i *)(input + 16)); __m256i bot_1 = _mm256_loadu_si256((__m256i *)(input + 16 + input_stride)); __m256i sum_1 = _mm256_add_epi16(top_1, bot_1); __m256i hsum = _mm256_hadd_epi16(sum, sum_1); hsum = _mm256_permute4x64_epi64(hsum, _MM_SHUFFLE(3, 1, 2, 0)); hsum = _mm256_add_epi16(hsum, hsum); _mm256_storeu_si256(row, hsum); input += luma_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(420, hbd) /** * Adds 2 pixels (in a 2x1 grid) and multiplies them by 4. Resulting in a more * precise version of a box filter 4:2:2 pixel subsampling in Q3. * * The CfL prediction buffer is always of size CFL_BUF_SQUARE. However, the * active area is specified using width and height. * * Note: We don't need to worry about going over the active area, as long as we * stay inside the CfL prediction buffer. * */ static void cfl_luma_subsampling_422_hbd_avx2(const uint16_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; do { __m256i top = _mm256_loadu_si256((__m256i *)input); __m256i top_1 = _mm256_loadu_si256((__m256i *)(input + 16)); __m256i hsum = _mm256_hadd_epi16(top, top_1); hsum = _mm256_permute4x64_epi64(hsum, _MM_SHUFFLE(3, 1, 2, 0)); hsum = _mm256_slli_epi16(hsum, 2); _mm256_storeu_si256(row, hsum); input += input_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(422, hbd) static void cfl_luma_subsampling_444_hbd_avx2(const uint16_t *input, int input_stride, uint16_t *pred_buf_q3, int width, int height) { (void)width; // Forever 32 __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; do { __m256i top = _mm256_loadu_si256((__m256i *)input); __m256i top_1 = _mm256_loadu_si256((__m256i *)(input + 16)); _mm256_storeu_si256(row, _mm256_slli_epi16(top, 3)); _mm256_storeu_si256(row + 1, _mm256_slli_epi16(top_1, 3)); input += input_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_GET_SUBSAMPLE_FUNCTION_AVX2(444, hbd) #endif // CONFIG_AV1_HIGHBITDEPTH static INLINE __m256i predict_unclipped(const __m256i *input, __m256i alpha_q12, __m256i alpha_sign, __m256i dc_q0) { __m256i ac_q3 = _mm256_loadu_si256(input); __m256i ac_sign = _mm256_sign_epi16(alpha_sign, ac_q3); __m256i scaled_luma_q0 = _mm256_mulhrs_epi16(_mm256_abs_epi16(ac_q3), alpha_q12); scaled_luma_q0 = _mm256_sign_epi16(scaled_luma_q0, ac_sign); return _mm256_add_epi16(scaled_luma_q0, dc_q0); } static INLINE void cfl_predict_lbd_avx2(const int16_t *pred_buf_q3, uint8_t *dst, int dst_stride, int alpha_q3, int width, int height) { (void)width; const __m256i alpha_sign = _mm256_set1_epi16(alpha_q3); const __m256i alpha_q12 = _mm256_slli_epi16(_mm256_abs_epi16(alpha_sign), 9); const __m256i dc_q0 = _mm256_set1_epi16(*dst); __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; do { __m256i res = predict_unclipped(row, alpha_q12, alpha_sign, dc_q0); __m256i next = predict_unclipped(row + 1, alpha_q12, alpha_sign, dc_q0); res = _mm256_packus_epi16(res, next); res = _mm256_permute4x64_epi64(res, _MM_SHUFFLE(3, 1, 2, 0)); _mm256_storeu_si256((__m256i *)dst, res); dst += dst_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_PREDICT_X(avx2, 32, 8, lbd) CFL_PREDICT_X(avx2, 32, 16, lbd) CFL_PREDICT_X(avx2, 32, 32, lbd) cfl_predict_lbd_fn cfl_get_predict_lbd_fn_avx2(TX_SIZE tx_size) { static const cfl_predict_lbd_fn pred[TX_SIZES_ALL] = { cfl_predict_lbd_4x4_ssse3, /* 4x4 */ cfl_predict_lbd_8x8_ssse3, /* 8x8 */ cfl_predict_lbd_16x16_ssse3, /* 16x16 */ cfl_predict_lbd_32x32_avx2, /* 32x32 */ NULL, /* 64x64 (invalid CFL size) */ cfl_predict_lbd_4x8_ssse3, /* 4x8 */ cfl_predict_lbd_8x4_ssse3, /* 8x4 */ cfl_predict_lbd_8x16_ssse3, /* 8x16 */ cfl_predict_lbd_16x8_ssse3, /* 16x8 */ cfl_predict_lbd_16x32_ssse3, /* 16x32 */ cfl_predict_lbd_32x16_avx2, /* 32x16 */ NULL, /* 32x64 (invalid CFL size) */ NULL, /* 64x32 (invalid CFL size) */ cfl_predict_lbd_4x16_ssse3, /* 4x16 */ cfl_predict_lbd_16x4_ssse3, /* 16x4 */ cfl_predict_lbd_8x32_ssse3, /* 8x32 */ cfl_predict_lbd_32x8_avx2, /* 32x8 */ NULL, /* 16x64 (invalid CFL size) */ NULL, /* 64x16 (invalid CFL size) */ }; // Modulo TX_SIZES_ALL to ensure that an attacker won't be able to index the // function pointer array out of bounds. return pred[tx_size % TX_SIZES_ALL]; } #if CONFIG_AV1_HIGHBITDEPTH static __m256i highbd_max_epi16(int bd) { const __m256i neg_one = _mm256_set1_epi16(-1); // (1 << bd) - 1 => -(-1 << bd) -1 => -1 - (-1 << bd) => -1 ^ (-1 << bd) return _mm256_xor_si256(_mm256_slli_epi16(neg_one, bd), neg_one); } static __m256i highbd_clamp_epi16(__m256i u, __m256i zero, __m256i max) { return _mm256_max_epi16(_mm256_min_epi16(u, max), zero); } static INLINE void cfl_predict_hbd_avx2(const int16_t *pred_buf_q3, uint16_t *dst, int dst_stride, int alpha_q3, int bd, int width, int height) { // Use SSSE3 version for smaller widths assert(width == 16 || width == 32); const __m256i alpha_sign = _mm256_set1_epi16(alpha_q3); const __m256i alpha_q12 = _mm256_slli_epi16(_mm256_abs_epi16(alpha_sign), 9); const __m256i dc_q0 = _mm256_loadu_si256((__m256i *)dst); const __m256i max = highbd_max_epi16(bd); __m256i *row = (__m256i *)pred_buf_q3; const __m256i *row_end = row + height * CFL_BUF_LINE_I256; do { const __m256i res = predict_unclipped(row, alpha_q12, alpha_sign, dc_q0); _mm256_storeu_si256((__m256i *)dst, highbd_clamp_epi16(res, _mm256_setzero_si256(), max)); if (width == 32) { const __m256i res_1 = predict_unclipped(row + 1, alpha_q12, alpha_sign, dc_q0); _mm256_storeu_si256( (__m256i *)(dst + 16), highbd_clamp_epi16(res_1, _mm256_setzero_si256(), max)); } dst += dst_stride; } while ((row += CFL_BUF_LINE_I256) < row_end); } CFL_PREDICT_X(avx2, 16, 4, hbd) CFL_PREDICT_X(avx2, 16, 8, hbd) CFL_PREDICT_X(avx2, 16, 16, hbd) CFL_PREDICT_X(avx2, 16, 32, hbd) CFL_PREDICT_X(avx2, 32, 8, hbd) CFL_PREDICT_X(avx2, 32, 16, hbd) CFL_PREDICT_X(avx2, 32, 32, hbd) cfl_predict_hbd_fn cfl_get_predict_hbd_fn_avx2(TX_SIZE tx_size) { static const cfl_predict_hbd_fn pred[TX_SIZES_ALL] = { cfl_predict_hbd_4x4_ssse3, /* 4x4 */ cfl_predict_hbd_8x8_ssse3, /* 8x8 */ cfl_predict_hbd_16x16_avx2, /* 16x16 */ cfl_predict_hbd_32x32_avx2, /* 32x32 */ NULL, /* 64x64 (invalid CFL size) */ cfl_predict_hbd_4x8_ssse3, /* 4x8 */ cfl_predict_hbd_8x4_ssse3, /* 8x4 */ cfl_predict_hbd_8x16_ssse3, /* 8x16 */ cfl_predict_hbd_16x8_avx2, /* 16x8 */ cfl_predict_hbd_16x32_avx2, /* 16x32 */ cfl_predict_hbd_32x16_avx2, /* 32x16 */ NULL, /* 32x64 (invalid CFL size) */ NULL, /* 64x32 (invalid CFL size) */ cfl_predict_hbd_4x16_ssse3, /* 4x16 */ cfl_predict_hbd_16x4_avx2, /* 16x4 */ cfl_predict_hbd_8x32_ssse3, /* 8x32 */ cfl_predict_hbd_32x8_avx2, /* 32x8 */ NULL, /* 16x64 (invalid CFL size) */ NULL, /* 64x16 (invalid CFL size) */ }; // Modulo TX_SIZES_ALL to ensure that an attacker won't be able to index the // function pointer array out of bounds. return pred[tx_size % TX_SIZES_ALL]; } #endif // CONFIG_AV1_HIGHBITDEPTH // Returns a vector where all the (32-bits) elements are the sum of all the // lanes in a. static INLINE __m256i fill_sum_epi32(__m256i a) { // Given that a == [A, B, C, D, E, F, G, H] a = _mm256_hadd_epi32(a, a); // Given that A' == A + B, C' == C + D, E' == E + F, G' == G + H // a == [A', C', A', C', E', G', E', G'] a = _mm256_permute4x64_epi64(a, _MM_SHUFFLE(3, 1, 2, 0)); // a == [A', C', E', G', A', C', E', G'] a = _mm256_hadd_epi32(a, a); // Given that A'' == A' + C' and E'' == E' + G' // a == [A'', E'', A'', E'', A'', E'', A'', E''] return _mm256_hadd_epi32(a, a); // Given that A''' == A'' + E'' // a == [A''', A''', A''', A''', A''', A''', A''', A'''] } static INLINE __m256i _mm256_addl_epi16(__m256i a) { return _mm256_add_epi32(_mm256_unpacklo_epi16(a, _mm256_setzero_si256()), _mm256_unpackhi_epi16(a, _mm256_setzero_si256())); } static INLINE void subtract_average_avx2(const uint16_t *src_ptr, int16_t *dst_ptr, int width, int height, int round_offset, int num_pel_log2) { // Use SSE2 version for smaller widths assert(width == 16 || width == 32); const __m256i *src = (__m256i *)src_ptr; const __m256i *const end = src + height * CFL_BUF_LINE_I256; // To maximize usage of the AVX2 registers, we sum two rows per loop // iteration const int step = 2 * CFL_BUF_LINE_I256; __m256i sum = _mm256_setzero_si256(); // For width 32, we use a second sum accumulator to reduce accumulator // dependencies in the loop. __m256i sum2; if (width == 32) sum2 = _mm256_setzero_si256(); do { // Add top row to the bottom row __m256i l0 = _mm256_add_epi16(_mm256_loadu_si256(src), _mm256_loadu_si256(src + CFL_BUF_LINE_I256)); sum = _mm256_add_epi32(sum, _mm256_addl_epi16(l0)); if (width == 32) { /* Don't worry, this if it gets optimized out. */ // Add the second part of the top row to the second part of the bottom row __m256i l1 = _mm256_add_epi16(_mm256_loadu_si256(src + 1), _mm256_loadu_si256(src + 1 + CFL_BUF_LINE_I256)); sum2 = _mm256_add_epi32(sum2, _mm256_addl_epi16(l1)); } src += step; } while (src < end); // Combine both sum accumulators if (width == 32) sum = _mm256_add_epi32(sum, sum2); __m256i fill = fill_sum_epi32(sum); __m256i avg_epi16 = _mm256_srli_epi32( _mm256_add_epi32(fill, _mm256_set1_epi32(round_offset)), num_pel_log2); avg_epi16 = _mm256_packs_epi32(avg_epi16, avg_epi16); // Store and subtract loop src = (__m256i *)src_ptr; __m256i *dst = (__m256i *)dst_ptr; do { _mm256_storeu_si256(dst, _mm256_sub_epi16(_mm256_loadu_si256(src), avg_epi16)); if (width == 32) { _mm256_storeu_si256( dst + 1, _mm256_sub_epi16(_mm256_loadu_si256(src + 1), avg_epi16)); } src += CFL_BUF_LINE_I256; dst += CFL_BUF_LINE_I256; } while (src < end); } // Declare wrappers for AVX2 sizes CFL_SUB_AVG_X(avx2, 16, 4, 32, 6) CFL_SUB_AVG_X(avx2, 16, 8, 64, 7) CFL_SUB_AVG_X(avx2, 16, 16, 128, 8) CFL_SUB_AVG_X(avx2, 16, 32, 256, 9) CFL_SUB_AVG_X(avx2, 32, 8, 128, 8) CFL_SUB_AVG_X(avx2, 32, 16, 256, 9) CFL_SUB_AVG_X(avx2, 32, 32, 512, 10) // Based on the observation that for small blocks AVX2 does not outperform // SSE2, we call the SSE2 code for block widths 4 and 8. cfl_subtract_average_fn cfl_get_subtract_average_fn_avx2(TX_SIZE tx_size) { static const cfl_subtract_average_fn sub_avg[TX_SIZES_ALL] = { cfl_subtract_average_4x4_sse2, /* 4x4 */ cfl_subtract_average_8x8_sse2, /* 8x8 */ cfl_subtract_average_16x16_avx2, /* 16x16 */ cfl_subtract_average_32x32_avx2, /* 32x32 */ NULL, /* 64x64 (invalid CFL size) */ cfl_subtract_average_4x8_sse2, /* 4x8 */ cfl_subtract_average_8x4_sse2, /* 8x4 */ cfl_subtract_average_8x16_sse2, /* 8x16 */ cfl_subtract_average_16x8_avx2, /* 16x8 */ cfl_subtract_average_16x32_avx2, /* 16x32 */ cfl_subtract_average_32x16_avx2, /* 32x16 */ NULL, /* 32x64 (invalid CFL size) */ NULL, /* 64x32 (invalid CFL size) */ cfl_subtract_average_4x16_sse2, /* 4x16 */ cfl_subtract_average_16x4_avx2, /* 16x4 */ cfl_subtract_average_8x32_sse2, /* 8x32 */ cfl_subtract_average_32x8_avx2, /* 32x8 */ NULL, /* 16x64 (invalid CFL size) */ NULL, /* 64x16 (invalid CFL size) */ }; // Modulo TX_SIZES_ALL to ensure that an attacker won't be able to // index the function pointer array out of bounds. return sub_avg[tx_size % TX_SIZES_ALL]; }
93d75e30b9e15b1ca25e0cc3f840d03314158f5c
03666e5f961946fc1a0ac67781ac1425562ef0d7
/src/gui/QvisText3DInterface.C
ee695ecdb50817c584b084af692af87b16f576a5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
visit-dav/visit
e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e
601ae46e0bef2e18425b482a755d03490ade0493
refs/heads/develop
2023-09-06T08:19:38.397058
2023-09-05T21:29:32
2023-09-05T21:29:32
165,565,988
335
120
BSD-3-Clause
2023-09-14T00:53:37
2019-01-13T23:27:26
C
UTF-8
C
false
false
21,030
c
QvisText3DInterface.C
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #include <QvisText3DInterface.h> #include <QButtonGroup> #include <QCheckBox> #include <QComboBox> #include <QLabel> #include <QLayout> #include <QLineEdit> #include <QRadioButton> #include <QSpinBox> #include <QvisColorButton.h> #include <QvisOpacitySlider.h> #include <QvisScreenPositionEdit.h> #include <AnnotationObject.h> #define GetFacesCamera GetOptions().GetEntry("preserveOrientation")->AsBool #define SetFacesCamera GetOptions().GetEntry("preserveOrientation")->SetValue #define GetRotations GetPosition2 #define SetRotations SetPosition2 // The flag that lets us switch between relative and fixed heights. #define GetRelativeHeightMode GetOptions().GetEntry("useRelativeHeight")->AsBool #define SetRelativeHeightMode GetOptions().GetEntry("useRelativeHeight")->SetValue // Relative scale will scale the text as a percentage of the bbox diagonal #define GetRelativeHeight GetOptions().GetEntry("relativeHeight")->AsInt #define SetRelativeHeight GetOptions().GetEntry("relatveHeight")->SetValue // Fixed height in world coordinates. #define GetFixedHeight GetOptions().GetEntry("fixedHeight")->AsDouble #define SetFixedHeight GetOptions().GetEntry("fixedHeight")->SetValue // **************************************************************************** // Method: QvisText3DInterface::QvisText3DInterface // // Purpose: // Constructor for the QvisText3DInterface class. // // Arguments: // parent : This widget's parent widget. // name : The name of this widget. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:46:42 PDT 2007 // // Modifications: // Brad Whitlock, Mon Jul 21 11:33:44 PDT 2008 // Qt 4. // // Kathleen Biagas, Mon Jul 13 13:11:00 PDT 2015 // Place 'useForeground' checkbox before text color button, added // textColorLabel so it can be disabled when the button is disabled. // // Kathleen Biagas, Tue Apr 18 16:34:41 PDT 2023 // Support Qt6: buttonClicked -> idClicked. // // **************************************************************************** QvisText3DInterface::QvisText3DInterface(QWidget *parent) : QvisAnnotationObjectInterface(parent) { // Set the title of the group box. this->setTitle(GetName()); QGridLayout *cLayout = new QGridLayout(0); topLayout->addLayout(cLayout); cLayout->setSpacing(10); int row = 0; // Add controls for entering the text textLineEdit = new QLineEdit(this); connect(textLineEdit, SIGNAL(returnPressed()), this, SLOT(textChanged())); cLayout->addWidget(textLineEdit, row, 1, 1, 2); cLayout->addWidget(new QLabel(tr("Text"), this), row, 0); ++row; // Add controls for the position positionEdit = new QLineEdit(this); connect(positionEdit, SIGNAL(returnPressed()), this, SLOT(positionChanged())); cLayout->addWidget(positionEdit, row, 1, 1, 2); cLayout->addWidget(new QLabel(tr("Position"), this), row, 0); ++row; // Add controls for the height. heightMode = new QButtonGroup(this); #if QT_VERSION < QT_VERSION_CHECK(6,0,0) connect(heightMode, SIGNAL(buttonClicked(int)), this, SLOT(heightModeChanged(int))); #else connect(heightMode, SIGNAL(idClicked(int)), this, SLOT(heightModeChanged(int))); #endif cLayout->addWidget(new QLabel(tr("Height"), this), row, 0); QRadioButton *rb = new QRadioButton(tr("Relative"), this); heightMode->addButton(rb, 0); cLayout->addWidget(rb, row, 1); // Add controls for relative height relativeHeightSpinBox = new QSpinBox(this); relativeHeightSpinBox->setKeyboardTracking(false); relativeHeightSpinBox->setMinimum(1); relativeHeightSpinBox->setMaximum(100); relativeHeightSpinBox->setSuffix("%"); relativeHeightSpinBox->setButtonSymbols(QSpinBox::PlusMinus); connect(relativeHeightSpinBox, SIGNAL(valueChanged(int)), this, SLOT(relativeHeightChanged(int))); cLayout->addWidget(relativeHeightSpinBox, row, 2); ++row; // Add controls for fixed height. rb = new QRadioButton(tr("Fixed"), this); heightMode->addButton(rb, 1); cLayout->addWidget(rb, row, 1); fixedHeightEdit = new QLineEdit(this); connect(fixedHeightEdit, SIGNAL(returnPressed()), this, SLOT(fixedHeightChanged())); cLayout->addWidget(fixedHeightEdit, row, 2); cLayout->setColumnStretch(2, 10); ++row; QFrame *splitter1 = new QFrame(this); splitter1->setFrameStyle(QFrame::HLine + QFrame::Raised); cLayout->addWidget(splitter1, row, 0, 1, 3); ++row; facesCameraCheckBox = new QCheckBox(tr("Preserve orientation when view changes"), this); connect(facesCameraCheckBox, SIGNAL(toggled(bool)), this, SLOT(facesCameraToggled(bool))); cLayout->addWidget(facesCameraCheckBox, row, 0, 1, 3); ++row; rotateZ = new QSpinBox(this); rotateZ->setKeyboardTracking(false); rotateZ->setMinimum(-360); rotateZ->setMaximum(360); rotateZ->setButtonSymbols(QSpinBox::PlusMinus); rotateZ->setSuffix(" deg"); connect(rotateZ, SIGNAL(valueChanged(int)), this, SLOT(rotateZChanged(int))); QLabel *rotateZLabel = new QLabel(tr("Rotate Z"), this); rotateX = new QSpinBox(this); rotateX->setKeyboardTracking(false); rotateX->setMinimum(-360); rotateX->setMaximum(360); rotateX->setButtonSymbols(QSpinBox::PlusMinus); rotateX->setSuffix(" deg"); connect(rotateX, SIGNAL(valueChanged(int)), this, SLOT(rotateXChanged(int))); QLabel *rotateXLabel = new QLabel(tr("Rotate X"), this); rotateY = new QSpinBox(this); rotateY->setKeyboardTracking(false); rotateY->setMinimum(-360); rotateY->setMaximum(360); rotateY->setButtonSymbols(QSpinBox::PlusMinus); rotateY->setSuffix(" deg"); connect(rotateY, SIGNAL(valueChanged(int)), this, SLOT(rotateYChanged(int))); QLabel *rotateYLabel = new QLabel(tr("Rotate Y"), this); QGridLayout *rLayout = new QGridLayout(0); rLayout->setContentsMargins(0,0,0,0); cLayout->addLayout(rLayout, row, 0, 1, 3); rLayout->addWidget(rotateYLabel, 0, 0); rLayout->addWidget(rotateXLabel, 0, 1); rLayout->addWidget(rotateZLabel, 0, 2); rLayout->addWidget(rotateY, 1, 0); rLayout->addWidget(rotateX, 1, 1); rLayout->addWidget(rotateZ, 1, 2); ++row; QFrame *splitter2 = new QFrame(this); splitter2->setFrameStyle(QFrame::HLine + QFrame::Raised); cLayout->addWidget(splitter2, row, 0, 1, 4); ++row; // Added a use foreground toggle useForegroundColorCheckBox = new QCheckBox(tr("Use foreground color"), this); connect(useForegroundColorCheckBox, SIGNAL(toggled(bool)), this, SLOT(useForegroundColorToggled(bool))); cLayout->addWidget(useForegroundColorCheckBox, row, 0, 1, 3); ++row; // Add controls for the text color. textColorLabel = new QLabel(tr("Text color"), this); cLayout->addWidget(textColorLabel, row, 0, Qt::AlignLeft); textColorButton = new QvisColorButton(this); connect(textColorButton, SIGNAL(selectedColor(const QColor &)), this, SLOT(textColorChanged(const QColor &))); cLayout->addWidget(textColorButton, row, 1); textColorOpacity = new QvisOpacitySlider(0, 255, 10, 0, this); connect(textColorOpacity, SIGNAL(valueChanged(int)), this, SLOT(textOpacityChanged(int))); cLayout->addWidget(textColorOpacity, row, 2, 1, 2); ++row; // Added a visibility toggle visibleCheckBox = new QCheckBox(tr("Visible"), this); connect(visibleCheckBox, SIGNAL(toggled(bool)), this, SLOT(visibilityToggled(bool))); cLayout->addWidget(visibleCheckBox, row, 0); } // **************************************************************************** // Method: QvisText3DInterface::~QvisText3DInterface // // Purpose: // Destructor for the QvisText3DInterface class. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:47:58 PDT 2007 // // Modifications: // // **************************************************************************** QvisText3DInterface::~QvisText3DInterface() { } // **************************************************************************** // Method: QvisText3DInterface::GetMenuText // // Purpose: // Returns the text to use in the annotation list box. // // Arguments: // annot : The annotation object to use for extra information. // // Returns: The text to use in the annotation list box. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 16:06:47 PST 2007 // // Modifications: // Brad Whitlock, Mon Jul 21 11:37:41 PDT 2008 // Qt 4. // // **************************************************************************** QString QvisText3DInterface::GetMenuText(const AnnotationObject &annot) const { QString retval; if(annot.GetText().size() > 0) retval = QString("%1 - %2").arg(GetName()).arg(annot.GetText()[0].c_str()); else retval = GetName(); return retval; } // **************************************************************************** // Method: QvisText3DInterface::UpdateControls // // Purpose: // Updates the controls in the interface using the data in the Annotation // object pointed to by the annot pointer. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:48:15 PDT 2007 // // Modifications: // Brad Whitlock, Mon Jul 21 11:38:06 PDT 2008 // Qt 4. // // Kathleen Biagas, Mon Jul 13 13:19:45 PDT 2015 // Enable/disable textColorLabel along with textColorButton. // // Kathleen Biagas, Thu Jan 21, 2021 // Replace QString.asprintf with QString.arg and QString.setNum. // // **************************************************************************** void QvisText3DInterface::UpdateControls() { // Set the text const stringVector &annotText = annot->GetText(); if(annotText.size() > 0) textLineEdit->setText(annotText[0].c_str()); else textLineEdit->setText(""); // Set the position. QString pos = QString("%1 %2 %3") .arg(annot->GetPosition()[0]) .arg(annot->GetPosition()[1]) .arg(annot->GetPosition()[2]); positionEdit->setText(pos); // Set the height mode heightMode->blockSignals(true); heightMode->button(annot->GetRelativeHeightMode()?0:1)->setChecked(true); heightMode->blockSignals(false); relativeHeightSpinBox->setEnabled(annot->GetRelativeHeightMode()); fixedHeightEdit->setEnabled(!annot->GetRelativeHeightMode()); // Set the spinbox value for relative height. relativeHeightSpinBox->blockSignals(true); relativeHeightSpinBox->setValue(annot->GetRelativeHeight()); relativeHeightSpinBox->blockSignals(false); // Set the value for the fixed height. QString tmp; tmp.setNum(annot->GetFixedHeight()); fixedHeightEdit->setText(tmp); // Set the faces camera check box. facesCameraCheckBox->blockSignals(true); facesCameraCheckBox->setChecked(annot->GetFacesCamera()); facesCameraCheckBox->blockSignals(false); // Set the rotation values. int rx = (int)annot->GetRotations()[0]; int ry = (int)annot->GetRotations()[1]; int rz = (int)annot->GetRotations()[2]; rotateX->blockSignals(true); rotateX->setValue(rx); rotateX->blockSignals(false); rotateY->blockSignals(true); rotateY->setValue(ry); rotateY->blockSignals(false); rotateZ->blockSignals(true); rotateZ->setValue(rz); rotateZ->blockSignals(false); // // Set the text color. If we're using the foreground color for the text // color then make the button be white and only let the user change the // opacity. // textColorOpacity->blockSignals(true); if(annot->GetUseForegroundForTextColor()) { QColor tmp(255,255,255); textColorButton->setButtonColor(tmp); textColorButton->setEnabled(false); textColorLabel->setEnabled(false); textColorOpacity->setGradientColor(tmp); } else { QColor tc(annot->GetTextColor().Red(), annot->GetTextColor().Green(), annot->GetTextColor().Blue()); textColorButton->setButtonColor(tc); textColorButton->setEnabled(true); textColorLabel->setEnabled(true); textColorOpacity->setGradientColor(tc); } textColorOpacity->setValue(annot->GetTextColor().Alpha()); textColorOpacity->blockSignals(false); // Set the use foreground color check box. useForegroundColorCheckBox->blockSignals(true); useForegroundColorCheckBox->setChecked(annot->GetUseForegroundForTextColor()); useForegroundColorCheckBox->blockSignals(false); // Set the visible check box. visibleCheckBox->blockSignals(true); visibleCheckBox->setChecked(annot->GetVisible()); visibleCheckBox->blockSignals(false); } // **************************************************************************** // Method: QvisText3DInterface::GetCurrentValues // // Purpose: // Gets the current values for the text fields. // // Arguments: // which_widget : The widget for which we're getting the values. -1 for all. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:08 PDT 2007 // // Modifications: // Brad Whitlock, Tue Apr 8 16:29:55 PDT 2008 // Support for internationalization. // // Brad Whitlock, Mon Jul 21 11:41:26 PDT 2008 // Qt 4. // // **************************************************************************** void QvisText3DInterface::GetCurrentValues(int which_widget) { bool doAll = (which_widget == -1); if(which_widget == 0 || doAll) { stringVector sv; sv.push_back(textLineEdit->text().toStdString()); annot->SetText(sv); } if(which_widget == 1 || doAll) { double v[3]; if(LineEditGetDoubles(positionEdit, v, 3)) annot->SetPosition(v); else { QString msg = tr("The position must be specified as a 3D coordinate. " "Resetting to the last good value of %1."). arg(DoublesToQString(annot->GetPosition(), 3)); Error(msg); annot->SetPosition(annot->GetPosition()); } } if(which_widget == 2 || doAll) { // Get its new current value and store it in the atts. annot->SetRelativeHeight(relativeHeightSpinBox->value()); } if(which_widget == 3 || doAll) { double v; bool okay = false; if(LineEditGetDouble(fixedHeightEdit, v)) { okay = v > 0.; if(okay) annot->SetFixedHeight(v); } if (!okay) { QString msg = tr("The fixed height is a floating point number greater than zero. " "Resetting to the last good value of %1."). arg(annot->GetFixedHeight()); Error(msg); annot->SetFixedHeight(annot->GetFixedHeight()); } } if(which_widget == 4 || doAll) { // Get its new current value and store it in the atts. int r = rotateZ->value(); double rotations[3]; rotations[0] = annot->GetRotations()[0]; rotations[1] = annot->GetRotations()[1]; rotations[2] = (double)r; annot->SetRotations(rotations); } if(which_widget == 5 || doAll) { // Get its new current value and store it in the atts. int r = rotateX->value(); double rotations[3]; rotations[0] = (double)r; rotations[1] = annot->GetRotations()[1]; rotations[2] = annot->GetRotations()[2]; annot->SetRotations(rotations); } if(which_widget == 6 || doAll) { // Get its new current value and store it in the atts. int r = rotateY->value(); double rotations[3]; rotations[0] = annot->GetRotations()[0]; rotations[1] = (double)r; rotations[2] = annot->GetRotations()[2]; annot->SetRotations(rotations); } } // // Qt Slot functions // // **************************************************************************** // Method: QvisText3DInterface::textChanged // // Purpose: // This is a Qt slot function that is called when return is pressed in the // text line edit. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:46 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::textChanged() { GetCurrentValues(0); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::positionChanged // // Purpose: // This is a Qt slot function that is called when return is pressed in the // position line edit. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:46 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::positionChanged() { GetCurrentValues(1); Apply(); } void QvisText3DInterface::heightModeChanged(int mode) { bool doRelative = mode == 0; annot->SetRelativeHeightMode(doRelative); Apply(); } void QvisText3DInterface::relativeHeightChanged(int h) { annot->SetRelativeHeight(h); SetUpdate(false); Apply(); } void QvisText3DInterface::fixedHeightChanged() { GetCurrentValues(3); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::facesCameraToggled // // Purpose: // This is a Qt slot function that is called when the faces camera checkbox // is toggled. // // Arguments: // val : The new bold flag. // // Programmer: Brad Whitlock // Creation: Thu Nov 8 16:01:03 PST 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::facesCameraToggled(bool val) { annot->SetFacesCamera(val); SetUpdate(false); Apply(); } void QvisText3DInterface::rotateZChanged(int) { GetCurrentValues(4); Apply(); } void QvisText3DInterface::rotateXChanged(int) { GetCurrentValues(5); Apply(); } void QvisText3DInterface::rotateYChanged(int) { GetCurrentValues(6); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::textColorChanged // // Purpose: // This is a Qt slot function that is called when a new start color is // selected. // // Arguments: // c : The new start color. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:46 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::textColorChanged(const QColor &c) { int a = annot->GetTextColor().Alpha(); ColorAttribute tc(c.red(), c.green(), c.blue(), a); annot->SetTextColor(tc); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::textOpacityChanged // // Purpose: // This is a Qt slot function that is called when a new start opacity is // selected. // // Arguments: // opacity : The new start opacity. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:46 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::textOpacityChanged(int opacity) { ColorAttribute tc(annot->GetTextColor()); tc.SetAlpha(opacity); annot->SetTextColor(tc); SetUpdate(false); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::useForegroundColorToggled // // Purpose: // This is a Qt slot function that is called when the useForegroundColor // check box is clicked. // // Arguments: // val : The new setting for useForegroundColor // // Programmer: Brad Whitlock // Creation: Wed Nov 7 12:34:48 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::useForegroundColorToggled(bool val) { annot->SetUseForegroundForTextColor(val); Apply(); } // **************************************************************************** // Method: QvisText3DInterface::visibilityToggled // // Purpose: // This is a Qt slot function that is called when the visibility toggle is // changed. // // Arguments: // val : The visibility flag. // // Programmer: Brad Whitlock // Creation: Wed Nov 7 11:49:46 PDT 2007 // // Modifications: // // **************************************************************************** void QvisText3DInterface::visibilityToggled(bool val) { annot->SetVisible(val); SetUpdate(false); Apply(); }
611898ec19dc944ddb2eb9d898f0cf7fd64feda0
83e7dc1281874779c46dfadcc15b2bb66d8e599c
/demos/music/assets/img_lv_demo_music_btn_prev.c
83c2edd4e428b16355c56de487bd20b9f111b0e1
[ "MIT" ]
permissive
lvgl/lvgl
7d51d6774d6ac71df7101fc7ded56fea4b70be01
5c984b4a5364b6455966eb3a860153806c51626f
refs/heads/master
2023-08-30T22:39:20.283922
2023-08-30T19:55:29
2023-08-30T19:55:29
60,667,730
9,296
2,218
MIT
2023-09-14T17:59:34
2016-06-08T04:14:34
C
UTF-8
C
false
false
209,114
c
img_lv_demo_music_btn_prev.c
#include "../lv_demo_music.h" #if LV_USE_DEMO_MUSIC && !LV_DEMO_MUSIC_LARGE #ifndef LV_ATTRIBUTE_MEM_ALIGN #define LV_ATTRIBUTE_MEM_ALIGN #endif const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_prev_map[] = { #if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8 /*Pixel format: Alpha 8 bit, Red: 3 bit, Green: 3 bit, Blue: 2 bit*/ 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xa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f, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xaf, 0x18, 0xff, 0x97, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd4, 0xd7, 0x27, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcb, 0xb3, 0x1c, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x47, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x90, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xb3, 0x18, 0xff, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xfb, 0x3b, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x5c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xab, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0xb8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xd7, 0x27, 0xaf, 0x17, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xd7, 0x20, 0xff, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92, 0xff, 0x6e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6c, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x17, 0xff, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x6a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xaf, 0x17, 0xaf, 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af, 0x17, 0xff, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x6e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd4, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x6e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd7, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f,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ff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdb, 0xff, 0x6e, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x6e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa7, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xd7, 0x27, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x74, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb7, 0xff, 0x4a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92, 0xff, 0x6e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfb, 0x30, 0xaf, 0x17, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x6f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x17, 0xb3, 0x1c, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xff, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xac, 0xaf, 0x18, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x13, 0xaf, 0x17, 0xaf, 0x18, 0xff, 0xa0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xd7, 0x27, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xb3, 0x1c, 0xff, 0xb7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xeb, 0xfb, 0x38, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xb3, 0x1c, 0xff, 0x9c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd4, 0xfb, 0x34, 0xaf, 0x17, 0xaf, 0x14, 0xaf, 0x13, 0xaf, 0x13, 0xaf, 0x10, 0xaf, 0x0f, 0xaf, 0x0c, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x08, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x00, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x03, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x04, 0xaf, 0x07, 0xaf, 0x07, 0xaf, 0x08, 0xaf, 0x0b, 0xaf, 0x0b, 0xaf, 0x0c, 0xaf, 0x0f, 0xaf, 0x10, 0xaf, 0x10, 0xaf, 0x13, 0xaf, 0x14, 0xaf, 0x17, 0xaf, 0x18, 0xff, 0x6f, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 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, 0x7e, 0x9b, 0x0c, 0x7e, 0x9b, 0x0f, 0x7e, 0x9b, 0x10, 0x7e, 0x9b, 0x13, 0x7e, 0x9b, 0x14, 0x7e, 0x9b, 0x17, 0x1f, 0xef, 0x5c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xff, 0xab, 0x7e, 0x9b, 0x17, 0x7e, 0x9b, 0x14, 0x7e, 0x9b, 0x13, 0x7e, 0x9b, 0x10, 0x7e, 0x9b, 0x0f, 0x7e, 0x9b, 0x0c, 0x7e, 0x9b, 0x0b, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x0b, 0x7e, 0x9b,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9b, 0x13, 0x7e, 0x9b, 0x17, 0x3e, 0xb4, 0x1c, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0x4f, 0x7e, 0x9b, 0x17, 0x7e, 0x9b, 0x14, 0x7e, 0x9b, 0x13, 0x7e, 0x9b, 0x10, 0x7e, 0x9b, 0x0f, 0x7e, 0x9b, 0x0c, 0x7e, 0x9b, 0x0b, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x00, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x03, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x04, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x07, 0x7e, 0x9b, 0x08, 0x7e, 0x9b, 0x0b, 0x7e, 0x9b, 0x0b, 0x7e, 0x9b, 0x0c, 0x7e, 0x9b, 0x0f, 0x7e, 0x9b, 0x10, 0x7e, 0x9b, 0x13, 0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0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x17, 0xfe, 0xef, 0xf4, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xfc, 0xcb, 0xf4, 0x85, 0xad, 0x1c, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 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0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf3, 0x72, 0xa0, 0x18, 0xff, 0xfb, 0xfc, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xfb, 0xfa, 0xcb, 0xdc, 0x3b, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x17, 0xfc, 0xe2, 0xec, 0x5c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xf8, 0xfa, 0xab, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0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x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf6, 0x96, 0xb8, 0x20, 0xff, 0xfe, 0xff, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xac, 0x9a, 0x9b, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xef, 0xeb, 0xec, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xed, 0xe9, 0xe9, 0xff, 0x96, 0x7f, 0x81, 0xff, 0x85, 0x6a, 0x6d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xe9, 0xf0, 0x6c, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x17, 0xfc, 0xde, 0xe8, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa9, 0x96, 0x98, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xee, 0xea, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xfd, 0xfd, 0xff, 0xb7, 0xa8, 0xa9, 0xff, 0x70, 0x50, 0x53, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xf6, 0xf9, 0x9f, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14,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 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x17, 0xfe, 0xf1, 0xf5, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa9, 0x96, 0x98, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xee, 0xea, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x78, 0x5b, 0x5e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfd, 0xd7, 0xf2, 0x6c, 0x9c, 0x17, 0xf2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0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x17, 0xfd, 0xe3, 0xec, 0x58, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa9, 0x96, 0x98, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xee, 0xea, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc3, 0xb6, 0xb8, 0xff, 0x7c, 0x5f, 0x62, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x78, 0x5b, 0x5e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xf6, 0xf9, 0xa7, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf8, 0xac, 0xc7, 0x27, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa9, 0x96, 0x98, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xee, 0xea, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xf8, 0xf8, 0xff, 0xb1, 0x9f, 0xa1, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0x6d, 0x4d, 0x50, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xec, 0xf2, 0x74, 0xf2, 0x6c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0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x17, 0xfd, 0xea, 0xf1, 0x6f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf2, 0xef, 0xef, 0xff, 0xd3, 0xc9, 0xca, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xfc, 0xbf, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6c, 0x9c, 0x14, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x03, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x04, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x07, 0xf2, 0x6c, 0x9c, 0x08, 0xf2, 0x6c, 0x9c, 0x0b, 0xf2, 0x6c, 0x9c, 0x0c, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x0f, 0xf2, 0x6c, 0x9c, 0x10, 0xf2, 0x6c, 0x9c, 0x13, 0xf2, 0x6c, 0x9c, 0x17, 0xf4, 0x85, 0xad, 0x1c, 0xff, 0xfd, 0xfe, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xdc, 0xe7, 0x4f, 0xf2, 0x6c, 0x9c, 0x17, 0xf2, 0x6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0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, 0xf2, 0x6c, 0x9c, 0x00, #endif }; lv_img_dsc_t img_lv_demo_music_btn_prev = { .header.always_zero = 0, .header.w = 62, .header.h = 62, // .data_size = 3844 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE, .header.cf = LV_COLOR_FORMAT_ARGB8888, .data = img_lv_demo_music_btn_prev_map, }; #endif /*LV_USE_DEMO_MUSIC*/
10ef27bbe90c4182a36ef99e87c8d12ba1f6240f
676acab8ff535019faff7da3afb8eecc3fa127f5
/target/pixhawk/fmt-io/project/source/debug.c
f598ecb142ba112d09aacebcaf70fcfa364b36fc
[ "Apache-2.0" ]
permissive
Firmament-Autopilot/FMT-Firmware
f8c324577245bd7e91af436954b4ce9421acbb41
0212fe89820376bfbedaded519552f6b011a7b8a
refs/heads/master
2023-09-01T11:37:46.194145
2023-08-29T06:33:10
2023-08-29T06:33:10
402,557,689
351
143
Apache-2.0
2023-09-12T05:28:39
2021-09-02T20:42:56
C
UTF-8
C
false
false
1,322
c
debug.c
/****************************************************************************** * Copyright 2020 The Firmament Authors. 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************/ #include "debug.h" #include "interface.h" #include <stdarg.h> #include <stdio.h> #define DEBUG_BUFFER_SIZE 100 static char _dbg_buf[DEBUG_BUFFER_SIZE]; int debug(const char* fmt, ...) { va_list args; int length; // TODO, current not support %f va_start(args, fmt); //length = vsprintf(_dbg_buf, fmt, args); length = vsnprintf(_dbg_buf, DEBUG_BUFFER_SIZE, fmt, args); va_end(args); if (length <= IO_BUFFER_SIZE && length) { send_io_cmd(IO_CODE_DBG_TEXT, _dbg_buf, length); } return length; }
0056dcc11e300ee20460c988c5b25505bcaaa6c1
8551168c7b71c31eebad0f9b0c71eebbcc743000
/src/setups/mp_setupmp11.c
4e87bad4ab57f25ba688db701c93dc977c1f02eb
[ "MIT" ]
permissive
n64decomp/perfect_dark
0db80e8ecba74741b959962e55c835a91c920f44
0235a971d6fb1a0d4421856d5a65aa8067bd4658
refs/heads/master
2023-08-31T04:27:53.864767
2023-08-29T11:36:58
2023-08-29T11:36:58
241,214,589
452
47
MIT
2023-08-21T08:53:40
2020-02-17T21:46:45
C
UTF-8
C
false
false
12,303
c
mp_setupmp11.c
// // Felicity (MP) // #include "stagesetup.h" extern s32 intro[]; extern u32 props[]; extern struct path paths[]; extern struct ailist ailists[]; struct stagesetup setup = { NULL, NULL, NULL, intro, props, paths, ailists, NULL, }; u32 props[] = { weapon(0x0100, 0x0000, PAD_MP11_0028, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION00) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0032, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0033, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_0029, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION01) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0034, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0035, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002A, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION02) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0036, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0037, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002B, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION03) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0038, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0039, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002C, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION04) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003A, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003B, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002D, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION05) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003C, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003D, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002E, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION06) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003E, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_003F, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_002F, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION07) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0040, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0041, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_0030, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION08) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0043, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0042, OBJFLAG_FALL, 0, 0, 1000) weapon(0x0100, 0x0000, PAD_MP11_0031, OBJFLAG_FALL, 0, 0, WEAPON_MPLOCATION09) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0044, OBJFLAG_FALL, 0, 0, 1000) ammocratemulti(0x0100, MODEL_MULTI_AMMO_CRATE, PAD_MP11_0045, OBJFLAG_FALL, 0, 0, 1000) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0046, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0047, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0048, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0049, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004A, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004B, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004C, OBJFLAG_IGNOREFLOORCOLOUR | OBJFLAG_DEACTIVATED, 0, 0, 1000, 0x0000f333, 0x00010000, 0x00002aaa, 0x00002aaa, 0x000002c5, DOORFLAG_0004, DOORTYPE_SLIDING, 0x00000000, 0x00000384, 0x00000000, 0x00000000, 0x00000800) #if VERSION >= VERSION_NTSC_1_0 tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0062, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) #else tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0062, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE, 0, 1000, 0x012c0258) #endif tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0063, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0064, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0065, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0066, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0067, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0068, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) tinted_glass(0x0100, MODEL_DD_WINDOW, PAD_MP11_0069, OBJFLAG_00000002 | OBJFLAG_XTOPADBOUNDS | OBJFLAG_YTOPADBOUNDS | OBJFLAG_00000100 | OBJFLAG_ORTHOGONAL | OBJFLAG_PATHBLOCKER | OBJFLAG_INVINCIBLE | OBJFLAG_AISEETHROUGH, OBJFLAG2_IMMUNETOGUNFIRE | OBJFLAG2_BULLETPROOF | OBJFLAG2_IMMUNETOEXPLOSIONS, 0, 1000, 0x012c0258) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004D, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004E, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_004F, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, OBJFLAG2_INTERACTCHECKLOS, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000001, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0050, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, OBJFLAG2_INTERACTCHECKLOS, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0xffffffff, 0x00000000) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0051, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000001, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0052, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0xffffffff, 0x00000000) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0053, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000001, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0054, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0xffffffff, 0x00000000) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0055, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY, OBJFLAG2_INTERACTCHECKLOS, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000001, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0056, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, OBJFLAG2_INTERACTCHECKLOS, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0xffffffff, 0x00000000) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0058, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000000, 0x00000800) door(0x0100, MODEL_DD_DR_NONREF, PAD_MP11_0057, OBJFLAG_DEACTIVATED | OBJFLAG_DOOR_TWOWAY | OBJFLAG_DOOR_OPENTOFRONT, 0, 0, 1000, 0x00640000, 0x03e80000, 0x01f40000, 0x01f40000, 0x00030000, 0, DOORTYPE_SWINGING, 0x00000000, 0x000005dc, 0x00000000, 0x00000000, 0x00000800) endprops }; s32 intro[] = { spawn(PAD_MP11_001C) spawn(PAD_MP11_001D) spawn(PAD_MP11_001E) spawn(PAD_MP11_001F) spawn(PAD_MP11_0020) spawn(PAD_MP11_0021) spawn(PAD_MP11_0022) spawn(PAD_MP11_0023) spawn(PAD_MP11_0024) spawn(PAD_MP11_0025) spawn(PAD_MP11_0026) spawn(PAD_MP11_0027) case(0, PAD_MP11_0006) case_respawn(0, PAD_MP11_0000) case_respawn(0, PAD_MP11_0001) case_respawn(0, PAD_MP11_0002) case_respawn(0, PAD_MP11_0003) case_respawn(0, PAD_MP11_0004) case_respawn(0, PAD_MP11_0005) case(1, PAD_MP11_000D) case_respawn(1, PAD_MP11_0007) case_respawn(1, PAD_MP11_0008) case_respawn(1, PAD_MP11_0009) case_respawn(1, PAD_MP11_000A) case_respawn(1, PAD_MP11_000B) case_respawn(1, PAD_MP11_000C) case(2, PAD_MP11_0014) case_respawn(2, PAD_MP11_000E) case_respawn(2, PAD_MP11_000F) case_respawn(2, PAD_MP11_0010) case_respawn(2, PAD_MP11_0011) case_respawn(2, PAD_MP11_0012) case_respawn(2, PAD_MP11_0013) case(3, PAD_MP11_001B) case_respawn(3, PAD_MP11_0015) case_respawn(3, PAD_MP11_0016) case_respawn(3, PAD_MP11_0017) case_respawn(3, PAD_MP11_0018) case_respawn(3, PAD_MP11_0019) case_respawn(3, PAD_MP11_001A) hill(PAD_MP11_0091) hill(PAD_MP11_008B) hill(PAD_MP11_0071) hill(PAD_MP11_009F) outfit(OUTFIT_DEFAULT) endintro }; struct path paths[] = { { NULL, 0, 0 }, }; u8 func1000_26fc[] = { mp_init_simulants rebuild_teams rebuild_squadrons set_ailist(CHR_SELF, GAILIST_IDLE) endlist }; struct ailist ailists[] = { { func1000_26fc, 0x1000 }, { NULL, 0 }, };
4c0850ec351c0299f39caf58a0687aa17eb2b764
392801bc4df0a7a34da162e48970b64314912e4f
/Scripting/Challenges/Script1/script1.c
7e1c8befe128534b319882ac36964bcbc3282327
[]
no_license
kablaa/CTF-Workshop
14401564cf21dfe4786c98a7eda4e321c0a10dee
461f434f7e81dd70c874b72ed3bc0f42e751d422
refs/heads/master
2022-10-21T08:59:57.033198
2022-10-02T21:25:19
2022-10-02T21:25:19
49,797,873
612
128
null
2022-10-02T21:25:20
2016-01-17T01:11:59
C
UTF-8
C
false
false
274
c
script1.c
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, const char *argv[]) { int x = 0; puts("give me an integer\n"); fflush(stdout); if(scanf("%d",&x)) puts("good job!"); else puts("try again"); return 0; }
6c9a26af42c49f29474c17d41a46830cf07407ce
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/inc/rtc.h
4022c635d74e9db1dc00f3ef2859517403c1098a
[ "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
C
false
false
11,737
h
rtc.h
/****************************************************************************** * Copyright (C) 2017, Huada Semiconductor Co.,Ltd All rights reserved. * * This software is owned and published by: * Huada Semiconductor Co.,Ltd ("HDSC"). * * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND * BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. * * This software contains source code for use with HDSC * components. This software is licensed by HDSC to be adapted only * for use in systems utilizing HDSC components. HDSC shall not be * responsible for misuse or illegal use of this software for devices not * supported herein. HDSC is providing this software "AS IS" and will * not be responsible for issues arising from incorrect user implementation * of the software. * * Disclaimer: * HDSC MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, * REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), * ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, * WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED * WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED * WARRANTY OF NONINFRINGEMENT. * HDSC SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, * NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, * LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR * INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, * SAVINGS OR PROFITS, * EVEN IF Disclaimer HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR * INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED * FROM, THE SOFTWARE. * * This software may be replicated in part or whole for the licensed use, * with the restriction that this Disclaimer and Copyright notice must be * included with each copy of this software, whether used in part or whole, * at all times. */ /*****************************************************************************/ /** \file rtc.h ** ** Headerfile for RTC functions ** ** ** History: ** - 2017-05-10 Cathy First Version ** *****************************************************************************/ #ifndef __RTC_H__ #define __RTC_H__ /***************************************************************************** * Include files *****************************************************************************/ #include "ddl.h" #include "interrupts_hc32l136.h" #ifdef __cplusplus extern "C" { #endif /** ****************************************************************************** ** \defgroup RtcGroup Real Time Clock (RTC) ** ******************************************************************************/ //@{ /******************************************************************************/ /* Global pre-processor symbols/macros ('#define') */ /******************************************************************************/ /****************************************************************************** * Global type definitions ******************************************************************************/ /** ****************************************************************************** ** \brief rtc时钟源选择 *****************************************************************************/ typedef enum en_rtc_clk { RtcClk32768 = 0u, ///<外部32.768k RtcClk32768_1 = 1u, ///<外部32.768k RtcClk32 = 2u, ///<内部RC32 RtcClk32_1 = 3u, ///<内部RC32 RtcClkHxt128 = 4u, ///<外部晶振4M RtcClkHxt256 = 5u, ///<外部晶振8M RtcClkHxt512 = 6u, ///<外部晶振16M RtcClkHxt1024 = 7u, ///<外部晶振32M }en_rtc_clk_t; /** ****************************************************************************** ** \brief rtc周期中断方式选择 *****************************************************************************/ typedef enum en_rtc_cyc { RtcPrads = 0u, ///<月、天、时分秒 RtcPradx = 1u, ///<step 0.5s }en_rtc_cyc_t; /** ****************************************************************************** ** \brief rtc 12h制或24h制方式选择 *****************************************************************************/ typedef enum en_rtc_ampm { Rtc12h = 0u, ///<12h Rtc24h = 1u, ///<24h }en_rtc_ampm_t; /** ****************************************************************************** ** \brief prds中断周期 *****************************************************************************/ typedef enum en_rtc_cycprds { Rtc_None = 0u, ///<无周期中断 Rtc_05S = 1u, ///<0.5S中断 Rtc_1S = 2u, ///<1s Rtc_1Min = 3u, ///<1min Rtc_1H = 4u, ///<1h Rtc_1Day = 5u, ///<1d Rtc_1Mon = 6u, ///<1月 Rtc_1Mon_1 = 7u, ///<1月 }en_rtc_cycprds_t; /** ****************************************************************************** ** \brief rtc周期中断总配置 *****************************************************************************/ typedef struct stc_rtc_cyc_sel { en_rtc_cyc_t enCyc_sel; ///<周期类型配置 en_rtc_cycprds_t enPrds_sel;///<周期配置 uint8_t u8Prdx; }stc_rtc_cyc_sel_t; /** ****************************************************************************** ** \brief 闹钟源配置 *****************************************************************************/ typedef struct stc_rtc_alarmset { uint8_t u8Minute; ///<闹钟分钟 uint8_t u8Hour; ///<闹钟小时 uint8_t u8Week; ///<闹钟周 }stc_rtc_alarmset_t; /** ****************************************************************************** ** \brief 闹钟中断使能设置 *****************************************************************************/ typedef enum en_rtc_alarmirq { Rtc_AlarmInt_Disable = 0u,///<闹钟中断禁止 Rtc_AlarmInt_Enable = 1u,///<闹钟中断使能 }en_rtc_alarmirq_t; /** ****************************************************************************** ** \brief rtc 1hz补偿功能开启设置 *****************************************************************************/ typedef enum en_rtc_compen_en { Rtc_Comp_Disable = 0u,///<时钟补偿禁止 Rtc_Comp_Enable = 1u,///<时钟补偿使能 }en_rtc_compen_en_t; /** ****************************************************************************** ** \brief rtc计数功能使能设置 *****************************************************************************/ typedef enum en_rtc_count_en { Rtc_Count_Disable = 0u,///<计数禁止 Rtc_Count_Enable = 1u,///<计数使能 }en_rtc_count_en_t; /** ****************************************************************************** ** \brief rtc计数模式还是读写模式状态 *****************************************************************************/ typedef enum en_rtc_status { RtcRunStatus = 0u, ///<计数状态 RtcRdWStatus = 1u, ///<读写状态 }en_rtc_status_t; /** ****************************************************************************** ** \brief rtc 中断请求标志 *****************************************************************************/ typedef enum en_rtc_status_irq { RtcAlmf = 0u, ///<闹钟中断请求 RtcPrdf = 1u, ///<周期中断请求 }en_rtc_status_irq_t; /** ****************************************************************************** ** \brief rtc时钟年、月、日、时、分、秒读写结构 *****************************************************************************/ typedef struct stc_rtc_time { uint8_t u8Second; ///<秒 uint8_t u8Minute; ///<分 uint8_t u8Hour; ///<时 uint8_t u8DayOfWeek; ///<周 uint8_t u8Day; ///<日 uint8_t u8Month; ///<月 uint8_t u8Year; ///<年 } stc_rtc_time_t; /** ****************************************************************************** ** \brief rtc功能描述 ******************************************************************************/ typedef enum en_rtc_func { RtcCount = 0u, ///< RTC计数使能 RtcAlarmEn = 1u, ///< RTC闹钟使能 Rtc_ComenEn = 2u, ///<RTC补偿使能 Rtc1HzOutEn = 3u, ///<使能1hz输出 }en_rtc_func_t; /** ****************************************************************************** ** \brief rtc 闹钟及周期中断处理函数 *****************************************************************************/ typedef struct stc_rtc_irq_cb { func_ptr_t pfnAlarmIrqCb; ///<闹钟中断服务函数 func_ptr_t pfnTimerIrqCb; ///<周期中断服务函数 }stc_rtc_irq_cb_t, stc_rtc_intern_cb_t; /** ****************************************************************************** ** \brief rtc 总体配置结构体 *****************************************************************************/ typedef struct stc_rtc_config { en_rtc_clk_t enClkSel; ///<时钟源配置 en_rtc_ampm_t enAmpmSel; ///<时制配置 stc_rtc_cyc_sel_t* pstcCycSel; ///<周期配置 stc_rtc_time_t* pstcTimeDate; ///<时间日期初值配置 stc_rtc_irq_cb_t* pstcIrqCb; ///<中断服务函数 boolean_t bTouchNvic; ///<NVIC中断配置 } stc_rtc_config_t; //rtc 计数时钟源选择 en_result_t Rtc_SelClk(en_rtc_clk_t enClk); //rtc 计数周期设置 en_result_t Rtc_SetCyc(stc_rtc_cyc_sel_t* pstcCyc); //rtc ampm模式设置 en_result_t Rtc_SetAmPm(en_rtc_ampm_t enMode); //rtc时制模式获取 boolean_t Rtc_GetHourMode(void); //rtc 闹钟相关配置 en_result_t Rtc_SetAlarmTime(stc_rtc_alarmset_t* pstcAlarmTime); en_result_t Rtc_GetAlarmTime(stc_rtc_alarmset_t* pstcAlarmTime); //1hz 输出模式及补偿值设置 en_result_t Rtc_Set1HzMode(boolean_t bMode); en_result_t Rtc_SetCompCr(uint16_t u16Cr); //周计算 uint8_t Rtc_CalWeek(uint8_t* pu8Date); //判断是否闰年 uint8_t Rtc_CheckLeapYear(uint8_t u8year); //12时制上午或下午读取 boolean_t Rtc_RDAmPm(void); //rtc 读写时间计数器 en_result_t Rtc_WriteDateTime(stc_rtc_time_t* pstcTimeDate,boolean_t bUpdateTime, boolean_t bUpdateDate); en_result_t Rtc_ReadDateTime(stc_rtc_time_t* pstcTimeDate); //格式转换函数 uint8_t Change_DateTimeFormat(uint8_t u8sr); //时间格式检查函数 en_result_t Rtc_CheckDateTimeFormat(uint8_t* pu8TimeDate,uint8_t u8Mode); //数据大小判断函数 en_result_t Check_BCD_Format(uint8_t u8data, uint8_t u8limit_min, uint8_t u8limit_max); //获取某年某月最大天数 uint8_t Get_Month_Max_Day(uint8_t u8month, uint8_t u8year); //rtc 读取当前状态(读写状态或计数状态),中断请求状态、中断清除状态 en_result_t Rtc_EnAlarmIrq(en_rtc_alarmirq_t enIrqEn); boolean_t Rtc_RDStatus(void); boolean_t Rtc_GetIrqStatus(en_rtc_status_irq_t enIrqSel); en_result_t Rtc_ClrIrqStatus(en_rtc_status_irq_t enIrqSel); //rtc功能使能禁止函数 en_result_t Rtc_EnableFunc(en_rtc_func_t enFunc); en_result_t Rtc_DisableFunc(en_rtc_func_t enFunc); //rtc初始化、禁止函数 en_result_t Rtc_Init(stc_rtc_config_t* pstcRtcConfig); en_result_t Rtc_DeInit(void); //@} // RtcGroup #ifdef __cplusplus #endif #endif /* __RTC_H__ */ /****************************************************************************** * EOF (not truncated) *****************************************************************************/
b8a7bd5aecc8f29b94195ca7a665b27611eb27b8
6601ed1b6c24e8b7e78312aeaadf816262c4bee3
/c/libelf/input.c
751970a7f0355c2a9cb97dec3b3e6b41eaabf598
[ "BSD-2-Clause" ]
permissive
t-crest/patmos
bb9764c5897ee8bbac2a336cb09d7bb77d54916a
c63dadffa3db2ad241c31ae6e952d6fe2298986a
refs/heads/master
2023-04-11T12:18:37.795018
2023-03-25T17:57:33
2023-03-25T17:57:33
1,500,522
108
90
BSD-2-Clause
2023-03-25T17:57:35
2011-03-19T17:01:39
VHDL
UTF-8
C
false
false
2,562
c
input.c
/* * input.c - low-level input for libelf. * Copyright (C) 1995 - 2001, 2005 Michael Riepe * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include <private.h> #ifndef lint static const char rcsid[] = "@(#) $Id: input.c,v 1.11 2008/05/23 08:15:35 michael Exp $"; #endif /* lint */ #include <errno.h> #if HAVE_MMAP #include <sys/mman.h> #endif /* HAVE_MMAP */ static int xread(int fd, char *buffer, size_t len) { size_t done = 0; size_t n; while (done < len) { n = read(fd, buffer + done, len - done); if (n == 0) { /* premature end of file */ return -1; } else if (n != (size_t)-1) { /* some bytes read, continue */ done += n; } else if (errno != EAGAIN && errno != EINTR) { /* real error */ return -1; } } return 0; } void* _elf_read(Elf *elf, void *buffer, size_t off, size_t len) { void *tmp; elf_assert(elf); elf_assert(elf->e_magic == ELF_MAGIC); elf_assert(off >= 0 && off + len <= elf->e_size); if (elf->e_disabled) { seterr(ERROR_FDDISABLED); } else if (len) { off += elf->e_base; if (lseek(elf->e_fd, (off_t)off, SEEK_SET) != (off_t)off) { seterr(ERROR_IO_SEEK); } else if (!(tmp = buffer) && !(tmp = malloc(len))) { seterr(ERROR_IO_2BIG); } else if (xread(elf->e_fd, tmp, len)) { seterr(ERROR_IO_READ); if (tmp != buffer) { free(tmp); } } else { return tmp; } } return NULL; } void* _elf_mmap(Elf *elf) { #if HAVE_MMAP void *tmp; elf_assert(elf); elf_assert(elf->e_magic == ELF_MAGIC); elf_assert(elf->e_base == 0); if (elf->e_disabled) { seterr(ERROR_FDDISABLED); } else if (elf->e_size) { tmp = (void*)mmap(0, elf->e_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, elf->e_fd, 0); if (tmp != (void*)-1) { return tmp; } } #endif /* HAVE_MMAP */ return NULL; }
d0d9f5d763486b664d112341ac1aede6e231ae2e
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Source/Runtime/Engine/Public/EditorSupportDelegates.h
182c065e62a3ec076d21b5fda389b6b8a326e9a4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
C
false
false
3,074
h
EditorSupportDelegates.h
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #if WITH_EDITOR /** * FEditorSupportDelegates * Delegates that are needed for proper editor functionality, but are accessed or triggered in engine code. **/ struct ENGINE_API FEditorSupportDelegates { /** delegate type for force property window rebuild events ( Params: UObject* Object ) */ DECLARE_MULTICAST_DELEGATE_OneParam(FOnForcePropertyWindowRebuild, UObject*); /** delegate type for material texture setting change events ( Params: UMaterialIterface* Material ) */ DECLARE_MULTICAST_DELEGATE_OneParam(FOnMaterialTextureSettingsChanged, class UMaterialInterface*); /** delegate type for windows messageing events ( Params: FViewport* Viewport, uint32 Message )*/ DECLARE_MULTICAST_DELEGATE_TwoParams(FOnWindowsMessage, class FViewport*, uint32); /** delegate type for material usage flags change events ( Params: UMaterial* material, int32 FlagThatChanged ) */ DECLARE_MULTICAST_DELEGATE_TwoParams(FOnMaterialUsageFlagsChanged, class UMaterial*, int32); /** delegate type for vector parameter default change event */ DECLARE_MULTICAST_DELEGATE_ThreeParams(FOnVectorParameterDefaultChanged, class UMaterialExpression*, FName, const FLinearColor&); /** delegate type for scalar parameter default change event */ DECLARE_MULTICAST_DELEGATE_ThreeParams(FOnScalarParameterDefaultChanged, class UMaterialExpression*, FName, float); /** Called when all viewports need to be redrawn */ static FSimpleMulticastDelegate RedrawAllViewports; /** Called when the editor is cleansing of transient references before a map change event */ static FSimpleMulticastDelegate CleanseEditor; /** Called when the world is modified */ static FSimpleMulticastDelegate WorldChange; /** Sent to force a property window rebuild */ static FOnForcePropertyWindowRebuild ForcePropertyWindowRebuild; /** Sent when events happen that affect how the editors UI looks (mode changes, grid size changes, etc) */ static FSimpleMulticastDelegate UpdateUI; /** Called for a material after the user has change a texture's compression settings. Needed to notify the material editors that the need to reattach their preview objects */ static FOnMaterialTextureSettingsChanged MaterialTextureSettingsChanged; /** Refresh property windows w/o creating/destroying controls */ static FSimpleMulticastDelegate RefreshPropertyWindows; /** Sent before the given windows message is handled in the given viewport */ static FOnWindowsMessage PreWindowsMessage; /** Sent after the given windows message is handled in the given viewport */ static FOnWindowsMessage PostWindowsMessage; /** Sent after the usages flags on a material have changed*/ static FOnMaterialUsageFlagsChanged MaterialUsageFlagsChanged; /** Sent after vector param default changed */ static FOnVectorParameterDefaultChanged VectorParameterDefaultChanged; /** Sent after scalar param default changed */ static FOnScalarParameterDefaultChanged ScalarParameterDefaultChanged; }; #endif // WITH_EDITOR
c167f8495b1769da254de035180b2b3ca3f9ba79
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
/lib/libc/include/any-windows-any/jobapi.h
683d1f3a27b22d1548633a26a0627526cf4a57a7
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
ziglang/zig
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
refs/heads/master
2023-08-31T13:16:45.980913
2023-08-31T05:50:29
2023-08-31T05:50:29
40,276,274
25,560
2,399
MIT
2023-09-14T21:09:50
2015-08-06T00:51:28
Zig
UTF-8
C
false
false
513
h
jobapi.h
/** * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER within this package. */ #ifndef _JOBAPISET_H_ #define _JOBAPISET_H_ #include <apiset.h> #include <apisetcconv.h> #include <minwindef.h> #include <minwinbase.h> #ifdef __cplusplus extern "C" { #endif #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) WINBASEAPI WINBOOL WINAPI IsProcessInJob (HANDLE ProcessHandle, HANDLE JobHandle, PBOOL Result); #endif #ifdef __cplusplus } #endif #endif
a8187a7bbeaf3e11506892ad7882d85ffd5c6c9b
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
/lib/libc/musl/src/dirent/seekdir.c
bf6cc6ec40453ed5a7bf4cffbfb5ef573e1ddc6e
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-musl-exception" ]
permissive
ziglang/zig
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
refs/heads/master
2023-08-31T13:16:45.980913
2023-08-31T05:50:29
2023-08-31T05:50:29
40,276,274
25,560
2,399
MIT
2023-09-14T21:09:50
2015-08-06T00:51:28
Zig
UTF-8
C
false
false
234
c
seekdir.c
#include <dirent.h> #include <unistd.h> #include "__dirent.h" #include "lock.h" void seekdir(DIR *dir, long off) { LOCK(dir->lock); dir->tell = lseek(dir->fd, off, SEEK_SET); dir->buf_pos = dir->buf_end = 0; UNLOCK(dir->lock); }
7ed4f23de336b26c91d710f80d48e133469a822d
1b90be9561c10508eea59cb36c1f1665d0ef947f
/lib/sundials_6.1.1/src/idas/idas_bbdpre_impl.h
d0b006b211d614547b5e2fb9e819fd5079c4ceb9
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0" ]
permissive
stan-dev/math
473e7c1eaf11f84eaf2032c2455e12ba65feef39
bdf281f4e7f8034f47974d14dea7f09e600ac02a
refs/heads/develop
2023-08-31T09:02:59.224115
2023-08-29T15:17:01
2023-08-29T15:17:01
38,388,440
732
240
BSD-3-Clause
2023-09-14T19:44:20
2015-07-01T18:40:54
C++
UTF-8
C
false
false
3,359
h
idas_bbdpre_impl.h
/*----------------------------------------------------------------- * Programmer(s): Daniel R. Reynolds @ SMU * Alan C. Hindmarsh and Radu Serban @ LLNL *----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2022, Lawrence Livermore National Security * and Southern Methodist University. * All rights reserved. * * See the top-level LICENSE and NOTICE files for details. * * SPDX-License-Identifier: BSD-3-Clause * SUNDIALS Copyright End *----------------------------------------------------------------- * This is the header file (private version) for the IDABBDPRE * module, for a band-block-diagonal preconditioner, i.e. a * block-diagonal matrix with banded blocks, for use with IDA * and an IDASPILS linear solver. *-----------------------------------------------------------------*/ #ifndef _IDASBBDPRE_IMPL_H #define _IDASBBDPRE_IMPL_H #include <idas/idas_bbdpre.h> #include <sunmatrix/sunmatrix_band.h> #include <sunlinsol/sunlinsol_band.h> #ifdef __cplusplus /* wrapper to enable C++ usage */ extern "C" { #endif /* * ----------------------------------------------------------------- * Definition of IBBDPrecData * ----------------------------------------------------------------- */ typedef struct IBBDPrecDataRec { /* passed by user to IDABBDPrecAlloc and used by IDABBDPrecSetup/IDABBDPrecSolve functions */ sunindextype mudq, mldq, mukeep, mlkeep; realtype rel_yy; IDABBDLocalFn glocal; IDABBDCommFn gcomm; /* set by IDABBDPrecSetup and used by IDABBDPrecSetup and IDABBDPrecSolve functions */ sunindextype n_local; SUNMatrix PP; SUNLinearSolver LS; N_Vector zlocal; N_Vector rlocal; N_Vector tempv1; N_Vector tempv2; N_Vector tempv3; N_Vector tempv4; /* available for optional output */ long int rpwsize; long int ipwsize; long int nge; /* pointer to ida_mem */ void *ida_mem; } *IBBDPrecData; /* * ----------------------------------------------------------------- * Type: IDABBDPrecDataB * ----------------------------------------------------------------- */ typedef struct IDABBDPrecDataRecB { /* BBD user functions (glocB and cfnB) for backward run */ IDABBDLocalFnB glocalB; IDABBDCommFnB gcommB; } *IDABBDPrecDataB; /* * ----------------------------------------------------------------- * IDABBDPRE error messages * ----------------------------------------------------------------- */ #define MSGBBD_MEM_NULL "Integrator memory is NULL." #define MSGBBD_LMEM_NULL "Linear solver memory is NULL. One of the SPILS linear solvers must be attached." #define MSGBBD_MEM_FAIL "A memory request failed." #define MSGBBD_BAD_NVECTOR "A required vector operation is not implemented." #define MSGBBD_SUNMAT_FAIL "An error arose from a SUNBandMatrix routine." #define MSGBBD_SUNLS_FAIL "An error arose from a SUNBandLinearSolver routine." #define MSGBBD_PMEM_NULL "BBD peconditioner memory is NULL. IDABBDPrecInit must be called." #define MSGBBD_FUNC_FAILED "The Glocal or Gcomm routine failed in an unrecoverable manner." #define MSGBBD_AMEM_NULL "idaadj_mem = NULL illegal." #define MSGBBD_PDATAB_NULL "IDABBDPRE memory is NULL for the backward integration." #define MSGBBD_BAD_T "Bad t for interpolation." #ifdef __cplusplus } #endif #endif
04ce3a6545a9c3a81cbea9e793ab81ab17044985
f342990997706a962df8a42867fa1b46da2d2a0d
/Pods/Headers/Private/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h
c7d1b67ab8b215cf33331b8657bb167d1a551f00
[ "MIT" ]
permissive
MarcoSero/HackerNews
11cd793a475fc6e875705035046f20dcce16b13a
92822de869c7eaaed751be98be9d0059391e5017
refs/heads/master
2021-01-21T01:59:36.492767
2016-03-05T10:51:02
2016-03-05T10:51:02
39,442,230
128
18
null
2016-03-05T10:51:05
2015-07-21T11:46:27
HTML
UTF-8
C
false
false
84
h
MKAnnotationView+RACSignalSupport.h
../../../ReactiveCocoa/ReactiveCocoa/Objective-C/MKAnnotationView+RACSignalSupport.h
d8f2a613dd34f7325441303762797cf5f82a11a9
08f08fd3d91c053c9f272a423b8f8940d178f35a
/lib/cabfile.h
b87a6387b3360f568c40739a9da65eb37b36a01a
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twogood/unshield
f1235d67353a2206e93eebc86777ec7ac58ad9e6
67bca739edfdb5468412a073b08541dc4c19747c
refs/heads/main
2023-05-25T09:04:13.674526
2023-03-23T20:22:48
2023-03-23T20:22:48
3,277,724
282
78
MIT
2023-09-13T16:59:21
2012-01-26T21:40:49
C
UTF-8
C
false
false
2,178
h
cabfile.h
#ifndef __cabfile_h__ #define __cabfile_h__ #define OFFSET_COUNT 0x47 #define CAB_SIGNATURE 0x28635349 #define MSCF_SIGNATURE 0x4643534d #define COMMON_HEADER_SIZE 20 #define VOLUME_HEADER_SIZE_V5 40 #define VOLUME_HEADER_SIZE_V6 64 #define MAX_FILE_GROUP_COUNT 71 #define MAX_COMPONENT_COUNT 71 typedef struct { uint32_t signature; /* 00 */ uint32_t version; uint32_t volume_info; uint32_t cab_descriptor_offset; uint32_t cab_descriptor_size; /* 10 */ } CommonHeader; typedef struct { uint32_t data_offset; uint32_t data_offset_high; uint32_t first_file_index; uint32_t last_file_index; uint32_t first_file_offset; uint32_t first_file_offset_high; uint32_t first_file_size_expanded; uint32_t first_file_size_expanded_high; uint32_t first_file_size_compressed; uint32_t first_file_size_compressed_high; uint32_t last_file_offset; uint32_t last_file_offset_high; uint32_t last_file_size_expanded; uint32_t last_file_size_expanded_high; uint32_t last_file_size_compressed; uint32_t last_file_size_compressed_high; } VolumeHeader; typedef struct { uint32_t file_table_offset; /* c */ uint32_t file_table_size; /* 14 */ uint32_t file_table_size2; /* 18 */ uint32_t directory_count; /* 1c */ uint32_t file_count; /* 28 */ uint32_t file_table_offset2; /* 2c */ uint32_t file_group_offsets[MAX_FILE_GROUP_COUNT]; /* 0x3e */ uint32_t component_offsets [MAX_COMPONENT_COUNT]; /* 0x15a */ } CabDescriptor; #define FILE_SPLIT 1U #define FILE_OBFUSCATED 2U #define FILE_COMPRESSED 4U #define FILE_INVALID 8U #define LINK_NONE 0 #define LINK_PREV 1 #define LINK_NEXT 2 #define LINK_BOTH 3 typedef struct { uint32_t name_offset; uint32_t directory_index; uint16_t flags; uint64_t expanded_size; uint64_t compressed_size; uint64_t data_offset; uint8_t md5[16]; uint16_t volume; uint32_t link_previous; uint32_t link_next; uint8_t link_flags; } FileDescriptor; typedef struct { uint32_t name_offset; uint32_t descriptor_offset; uint32_t next_offset; } OffsetList; #endif
178f0e2a2583beb59048aecef703a046dfb2c15a
476fde4234ce92fb50e5cfc4df9789d40c497698
/src/execline/multidefine.c
1a96f071e478bbb647917c000b1d2e58f1b9e308
[ "ISC" ]
permissive
skarnet/execline
47c0b12ce14f001684a245897aacff5e0bff4e07
7d790daa90f49e153251d0f41bcb208d8bea588c
refs/heads/master
2023-07-09T08:22:55.484648
2023-06-27T08:29:16
2023-06-27T08:29:16
31,461,279
138
22
null
2015-05-23T11:55:38
2015-02-28T11:57:30
C
UTF-8
C
false
false
327
c
multidefine.c
/* ISC license. */ #include <skalibs/strerr.h> #include "exlsn.h" #define USAGE "multidefine [ -0 ] [ -r ] [ -N | -n ] [ -C | -c ] [ -d delim ] value { vars... } prog..." int main (int argc, char const **argv, char const *const *envp) { PROG = "multidefine" ; exlsn_main(argc, argv, envp, &exlsn_multidefine, USAGE) ; }
19c1806183b8e44d9460df1a5807088fdcd9f5dd
f79dec3c4033ca3cbb55d8a51a748cc7b8b6fbab
/graphics/MesaLib7/patches/patch-src_mesa_drivers_dri_intel_intel__context.h
b01f1b9196003f1d4a8862dc3af8b8029dd8ec3b
[]
no_license
jsonn/pkgsrc
fb34c4a6a2d350e8e415f3c4955d4989fcd86881
c1514b5f4a3726d90e30aa16b0c209adbc276d17
refs/heads/trunk
2021-01-24T09:10:01.038867
2017-07-07T15:49:43
2017-07-07T15:49:43
2,095,004
106
47
null
2016-09-19T09:26:01
2011-07-23T23:49:04
Makefile
UTF-8
C
false
false
815
h
patch-src_mesa_drivers_dri_intel_intel__context.h
$NetBSD: patch-src_mesa_drivers_dri_intel_intel__context.h,v 1.1 2015/04/05 17:01:37 tnn Exp $ --- src/mesa/drivers/dri/intel/intel_context.h.orig 2011-10-15 00:43:58.000000000 +0000 +++ src/mesa/drivers/dri/intel/intel_context.h @@ -304,8 +304,12 @@ struct intel_context driOptionCache optionCache; }; +#if defined(__sun) +#include <stdlib.h> +#define __progname getexecname() +#else extern char *__progname; - +#endif #define SUBPIXEL_X 0.125 #define SUBPIXEL_Y 0.125 @@ -364,7 +368,7 @@ do { \ * than COPY_DWORDS would: * XXX Put this in src/mesa/main/imports.h ??? */ -#if defined(i386) || defined(__i386__) +#if (defined(i386) || defined(__i386__)) && !(defined(__SOLARIS__) || defined(sun)) static INLINE void * __memcpy(void * to, const void * from, size_t n) { int d0, d1, d2;
da658d8f7dbd24a2f1bd12ce5f9eb1102af824bd
6e1cde66aa5a649138babe297293962cdf97743e
/src/pl-alloc-inline.h
e84995f404bf1d22b57f17603fd04578e1246925
[ "BSD-2-Clause" ]
permissive
SWI-Prolog/swipl-devel
db56676481984addc09f4f228bc1c41f7f53759f
41ac4a569c8e6c3d3b93a21449403962e3de1ece
refs/heads/master
2023-09-01T03:49:40.696481
2023-08-30T18:12:56
2023-08-30T18:12:56
17,516,793
935
328
NOASSERTION
2023-08-26T14:32:33
2014-03-07T14:43:14
C
UTF-8
C
false
false
1,047
h
pl-alloc-inline.h
#ifndef _PL_ALLOC_INLINE_H #define _PL_ALLOC_INLINE_H ALLOC_INLINE size_t /* size in cells */ gsizeIndirectFromCode(Code pc) { return wsizeofInd(pc[0]) + 2; } /* The VM_ alternatives of these functions pass and return pc, to avoid needing to * store it in a memory address */ ALLOC_INLINE struct word_and_Code VM_globalIndirectFromCode(DECL_LD Code pc) { word m = *pc++; size_t n = wsizeofInd(m); Word p = allocGlobal(n+2); if ( p ) { word r = consPtr(p, tag(m)|STG_GLOBAL); *p++ = m; while(n-- > 0) *p++ = *pc++; *p++ = m; return WORD_AND_CODE(r, pc); } else return WORD_AND_CODE(0, pc); } ALLOC_INLINE struct word_and_Code /* used in pl-wam.c */ VM_equalIndirectFromCode(DECL_LD word a, Code pc) { Code orig_pc = pc; Word pa = addressIndirect(a); if ( *pc == *pa ) { size_t n = wsizeofInd(*pc); while(n-- > 0) { if ( *++pc != *++pa ) return WORD_AND_CODE(FALSE, orig_pc); } pc++; return WORD_AND_CODE(TRUE, pc); } return WORD_AND_CODE(FALSE, orig_pc); } #endif
45417fb7af40e09004331c01241be86082c248e4
407c96d904cf46a5f95217e44071f999783698a3
/trezor-crypto/crypto/monero/range_proof.c
e3fd9b6a278b7471908107fca83fbd37d1161c38
[ "BSD-3-Clause", "LicenseRef-scancode-protobuf", "LGPL-2.1-only", "Swift-exception", "MIT", "BSL-1.0", "Apache-2.0" ]
permissive
trustwallet/wallet-core
dfeb276ddf1e3faf46c82f0a0cda2551e9c873f6
0c8e2e58aa8eb1360e4a6b03df91fb2de97e3caa
refs/heads/master
2023-08-21T11:58:43.983035
2023-08-18T10:51:13
2023-08-18T10:51:13
170,738,310
2,311
1,283
Apache-2.0
2023-09-08T11:26:39
2019-02-14T18:25:54
C++
UTF-8
C
false
false
3,249
c
range_proof.c
// // Created by Dusan Klinec on 10/05/2018. // #include "range_proof.h" static void xmr_hash_ge25519_to_scalar(bignum256modm r, const ge25519 *p) { unsigned char buff[32] = {0}; ge25519_pack(buff, p); xmr_hash_to_scalar(r, buff, sizeof(buff)); } void xmr_gen_range_sig(xmr_range_sig_t *sig, ge25519 *C, bignum256modm mask, xmr_amount amount, bignum256modm *last_mask) { bignum256modm ai[64] = {0}; bignum256modm alpha[64] = {0}; xmr_gen_range_sig_ex(sig, C, mask, amount, last_mask, ai, alpha); } void xmr_gen_range_sig_ex(xmr_range_sig_t *sig, ge25519 *C, bignum256modm mask, xmr_amount amount, bignum256modm *last_mask, bignum256modm ai[64], bignum256modm alpha[64]) { const unsigned n = XMR_ATOMS; bignum256modm a = {0}; bignum256modm si = {0}; bignum256modm c = {0}; bignum256modm ee = {0}; unsigned char buff[32] = {0}; Hasher kck = {0}; xmr_hasher_init(&kck); ge25519 C_acc = {0}; ge25519 C_h = {0}; ge25519 C_tmp = {0}; ge25519 L = {0}; ge25519 Zero = {0}; ge25519_set_neutral(&Zero); ge25519_set_neutral(&C_acc); ge25519_set_xmr_h(&C_h); set256_modm(a, 0); #define BB(i) ((amount >> (i)) & 1) // First pass, generates: ai, alpha, Ci, ee, s1 for (unsigned ii = 0; ii < n; ++ii) { xmr_random_scalar(ai[ii]); if (last_mask != NULL && ii == n - 1) { sub256_modm(ai[ii], *last_mask, a); } add256_modm(a, a, ai[ii]); // creating the total mask since you have to // pass this to receiver... xmr_random_scalar(alpha[ii]); ge25519_scalarmult_base_niels(&L, ge25519_niels_base_multiples, alpha[ii]); ge25519_scalarmult_base_niels(&C_tmp, ge25519_niels_base_multiples, ai[ii]); // C_tmp += &Zero if BB(ii) == 0 else &C_h ge25519_add(&C_tmp, &C_tmp, BB(ii) == 0 ? &Zero : &C_h, 0); ge25519_add(&C_acc, &C_acc, &C_tmp, 0); // Set Ci[ii] to sigs ge25519_pack(sig->Ci[ii], &C_tmp); if (BB(ii) == 0) { xmr_random_scalar(si); xmr_hash_ge25519_to_scalar(c, &L); ge25519_add(&C_tmp, &C_tmp, &C_h, 1); // Ci[ii] -= c_h xmr_add_keys2_vartime(&L, si, c, &C_tmp); // Set s1[ii] to sigs contract256_modm(sig->asig.s1[ii], si); } ge25519_pack(buff, &L); xmr_hasher_update(&kck, buff, sizeof(buff)); ge25519_double(&C_h, &C_h); // c_H = crypto.scalarmult(c_H, 2) } // Compute ee xmr_hasher_final(&kck, buff); expand256_modm(ee, buff, sizeof(buff)); ge25519_set_xmr_h(&C_h); // Second pass, s0, s1 for (unsigned ii = 0; ii < n; ++ii) { if (BB(ii) == 0) { mulsub256_modm(si, ai[ii], ee, alpha[ii]); contract256_modm(sig->asig.s0[ii], si); } else { xmr_random_scalar(si); contract256_modm(sig->asig.s0[ii], si); ge25519_unpack_vartime(&C_tmp, sig->Ci[ii]); xmr_add_keys2_vartime(&L, si, ee, &C_tmp); xmr_hash_ge25519_to_scalar(c, &L); mulsub256_modm(si, ai[ii], c, alpha[ii]); contract256_modm(sig->asig.s1[ii], si); } ge25519_double(&C_h, &C_h); // c_H = crypto.scalarmult(c_H, 2) } ge25519_copy(C, &C_acc); copy256_modm(mask, a); contract256_modm(sig->asig.ee, ee); #undef BB }
975ca23bc6315814e284015172ef94f81360e2a4
f3eed0234b4d0ad2bbb2abd700cf1e2c7a0e8a1d
/AKWF-c/AKWF_0020/AKWF_2004.h
7677ef56b113ea44bd32c9e890d56351ee077bf6
[ "CC0-1.0" ]
permissive
KristofferKarlAxelEkstrand/AKWF-FREE
b2defa1a2d389d309be6dd2e9f968923daf80d1b
cf8171df36e9fec25416b5f568b72a6e2cb69194
refs/heads/master
2023-07-23T18:22:36.939705
2023-07-10T17:14:40
2023-07-10T17:14:40
145,817,187
359
59
CC0-1.0
2023-07-10T17:14:41
2018-08-23T07:26:56
null
UTF-8
C
false
false
4,672
h
AKWF_2004.h
/* Adventure Kid Waveforms (AKWF) converted for use with Teensy Audio Library * * Adventure Kid Waveforms(AKWF) Open waveforms library * https://www.adventurekid.se/akrt/waveforms/adventure-kid-waveforms/ * * This code is in the public domain, CC0 1.0 Universal (CC0 1.0) * https://creativecommons.org/publicdomain/zero/1.0/ * * Converted by Brad Roy, https://github.com/prosper00 */ /* AKWF_2004 256 samples +-----------------------------------------------------------------------------------------------------------------+ | **** *** | | *** ** | | *** ** | | *** * ** | | ** ** **** **** | | ** ** *** *** | |** ** *** ** | |* *** *** ** | | *** *** ** **| | ******************************** *** ** | | ** *** | | ** ** | | ** ** | | *** *** | | *** *** | +-----------------------------------------------------------------------------------------------------------------+ */ const uint16_t AKWF_2004 [] = { 32953, 34013, 35149, 36242, 37335, 38397, 39459, 40489, 41519, 42522, 43523, 44499, 45476, 46429, 47381, 48314, 49244, 50156, 51065, 51959, 52846, 53722, 54604, 55484, 56358, 57225, 58079, 58913, 59722, 60505, 61249, 61957, 62614, 63220, 63768, 64253, 64667, 65006, 65266, 65441, 65526, 65521, 65415, 65212, 64904, 64493, 63975, 63342, 62586, 61717, 60739, 59660, 58488, 57230, 55900, 54502, 53050, 51552, 50020, 48465, 46899, 45329, 43771, 42233, 40724, 39255, 37837, 36480, 35187, 33974, 32840, 31797, 30845, 29968, 29166, 28436, 27777, 27185, 26660, 26200, 25798, 25455, 25163, 24918, 24721, 24563, 24441, 24351, 24286, 24245, 24220, 24209, 24206, 24210, 24215, 24216, 24214, 24202, 24193, 24199, 24221, 24258, 24307, 24369, 24441, 24523, 24612, 24707, 24809, 24914, 25021, 25129, 25238, 25345, 25448, 25550, 25647, 25737, 25822, 25901, 25971, 26033, 26089, 26133, 26154, 26147, 26115, 26062, 25992, 25908, 25813, 25713, 25615, 25517, 25431, 25359, 25304, 25275, 25274, 25306, 25378, 25491, 25650, 25861, 26124, 26446, 26823, 27264, 27769, 28339, 28987, 29710, 30499, 31350, 32254, 33204, 34191, 35207, 36242, 37286, 38331, 39364, 40378, 41360, 42304, 43195, 44028, 44792, 45479, 46080, 46587, 46995, 47294, 47482, 47554, 47518, 47391, 47165, 46850, 46444, 45953, 45379, 44726, 43998, 43199, 42334, 41410, 40430, 39400, 38325, 37212, 36065, 34890, 33694, 32482, 31258, 30026, 28796, 27567, 26349, 25135, 23894, 22625, 21333, 20023, 18704, 17379, 16059, 14747, 13455, 12187, 10951, 9757, 8609, 7517, 6489, 5531, 4650, 3852, 3143, 2530, 2017, 1613, 1316, 1136, 1070, 1127, 1304, 1601, 2011, 2534, 3161, 3888, 4707, 5614, 6600, 7659, 8784, 9964, 11195, 12464, 13771, 15098, 16449, 17801, 19166, 20513, 21864, 23179, 24491, 25751, 27003, 28206, 29429, 30590, 31808, };
22a583df313029f2a40d7d967e8a7e62c8ce0cc6
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/include/video/neomagic.h
bc5013e8059d562cbffd46c214c7c7e485abf76d
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
5,036
h
neomagic.h
/* * linux/include/video/neo_reg.h -- NeoMagic Framebuffer Driver * * Copyright (c) 2001 Denis Oliver Kropp <dok@convergence.de> * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main directory of this * archive for more details. */ #define NEO_BS0_BLT_BUSY 0x00000001 #define NEO_BS0_FIFO_AVAIL 0x00000002 #define NEO_BS0_FIFO_PEND 0x00000004 #define NEO_BC0_DST_Y_DEC 0x00000001 #define NEO_BC0_X_DEC 0x00000002 #define NEO_BC0_SRC_TRANS 0x00000004 #define NEO_BC0_SRC_IS_FG 0x00000008 #define NEO_BC0_SRC_Y_DEC 0x00000010 #define NEO_BC0_FILL_PAT 0x00000020 #define NEO_BC0_SRC_MONO 0x00000040 #define NEO_BC0_SYS_TO_VID 0x00000080 #define NEO_BC1_DEPTH8 0x00000100 #define NEO_BC1_DEPTH16 0x00000200 #define NEO_BC1_X_320 0x00000400 #define NEO_BC1_X_640 0x00000800 #define NEO_BC1_X_800 0x00000c00 #define NEO_BC1_X_1024 0x00001000 #define NEO_BC1_X_1152 0x00001400 #define NEO_BC1_X_1280 0x00001800 #define NEO_BC1_X_1600 0x00001c00 #define NEO_BC1_DST_TRANS 0x00002000 #define NEO_BC1_MSTR_BLT 0x00004000 #define NEO_BC1_FILTER_Z 0x00008000 #define NEO_BC2_WR_TR_DST 0x00800000 #define NEO_BC3_SRC_XY_ADDR 0x01000000 #define NEO_BC3_DST_XY_ADDR 0x02000000 #define NEO_BC3_CLIP_ON 0x04000000 #define NEO_BC3_FIFO_EN 0x08000000 #define NEO_BC3_BLT_ON_ADDR 0x10000000 #define NEO_BC3_SKIP_MAPPING 0x80000000 #define NEO_MODE1_DEPTH8 0x0100 #define NEO_MODE1_DEPTH16 0x0200 #define NEO_MODE1_DEPTH24 0x0300 #define NEO_MODE1_X_320 0x0400 #define NEO_MODE1_X_640 0x0800 #define NEO_MODE1_X_800 0x0c00 #define NEO_MODE1_X_1024 0x1000 #define NEO_MODE1_X_1152 0x1400 #define NEO_MODE1_X_1280 0x1800 #define NEO_MODE1_X_1600 0x1c00 #define NEO_MODE1_BLT_ON_ADDR 0x2000 /* These are offseted in MMIO space by par->CursorOff */ #define NEOREG_CURSCNTL 0x00 #define NEOREG_CURSX 0x04 #define NEOREG_CURSY 0x08 #define NEOREG_CURSBGCOLOR 0x0C #define NEOREG_CURSFGCOLOR 0x10 #define NEOREG_CURSMEMPOS 0x14 #define NEO_CURS_DISABLE 0x00000000 #define NEO_CURS_ENABLE 0x00000001 #define NEO_ICON64_ENABLE 0x00000008 #define NEO_ICON128_ENABLE 0x0000000C #define NEO_ICON_BLANK 0x00000010 #define NEO_GR01_SUPPRESS_VSYNC 0x10 #define NEO_GR01_SUPPRESS_HSYNC 0x20 #ifdef __KERNEL__ #ifdef NEOFB_DEBUG # define DBG(x) printk (KERN_DEBUG "neofb: %s\n", (x)); #else # define DBG(x) #endif #define PCI_CHIP_NM2070 0x0001 #define PCI_CHIP_NM2090 0x0002 #define PCI_CHIP_NM2093 0x0003 #define PCI_CHIP_NM2097 0x0083 #define PCI_CHIP_NM2160 0x0004 #define PCI_CHIP_NM2200 0x0005 #define PCI_CHIP_NM2230 0x0025 #define PCI_CHIP_NM2360 0x0006 #define PCI_CHIP_NM2380 0x0016 /* --------------------------------------------------------------------- */ typedef volatile struct { __u32 bltStat; __u32 bltCntl; __u32 xpColor; __u32 fgColor; __u32 bgColor; __u32 pitch; __u32 clipLT; __u32 clipRB; __u32 srcBitOffset; __u32 srcStart; __u32 reserved0; __u32 dstStart; __u32 xyExt; __u32 reserved1[19]; __u32 pageCntl; __u32 pageBase; __u32 postBase; __u32 postPtr; __u32 dataPtr; } Neo2200; #define MMIO_SIZE 0x200000 #define NEO_EXT_CR_MAX 0x85 #define NEO_EXT_GR_MAX 0xC7 struct neofb_par { struct vgastate state; unsigned int ref_count; unsigned char MiscOutReg; /* Misc */ unsigned char CRTC[25]; /* Crtc Controller */ unsigned char Sequencer[5]; /* Video Sequencer */ unsigned char Graphics[9]; /* Video Graphics */ unsigned char Attribute[21]; /* Video Attribute */ unsigned char GeneralLockReg; unsigned char ExtCRTDispAddr; unsigned char ExtCRTOffset; unsigned char SysIfaceCntl1; unsigned char SysIfaceCntl2; unsigned char ExtColorModeSelect; unsigned char biosMode; unsigned char PanelDispCntlReg1; unsigned char PanelDispCntlReg2; unsigned char PanelDispCntlReg3; unsigned char PanelDispCntlRegRead; unsigned char PanelVertCenterReg1; unsigned char PanelVertCenterReg2; unsigned char PanelVertCenterReg3; unsigned char PanelVertCenterReg4; unsigned char PanelVertCenterReg5; unsigned char PanelHorizCenterReg1; unsigned char PanelHorizCenterReg2; unsigned char PanelHorizCenterReg3; unsigned char PanelHorizCenterReg4; unsigned char PanelHorizCenterReg5; int ProgramVCLK; unsigned char VCLK3NumeratorLow; unsigned char VCLK3NumeratorHigh; unsigned char VCLK3Denominator; unsigned char VerticalExt; #ifdef CONFIG_MTRR int mtrr; #endif u8 __iomem *mmio_vbase; u8 cursorOff; u8 *cursorPad; /* Must die !! */ Neo2200 __iomem *neo2200; /* Panels size */ int NeoPanelWidth; int NeoPanelHeight; int maxClock; int pci_burst; int lcd_stretch; int internal_display; int external_display; int libretto; u32 palette[16]; }; typedef struct { int x_res; int y_res; int mode; } biosMode; #endif
77157e34a839197fab0186a7bb525c7dacd14170
9907672fcd81ab73ac63b2a83422a82bf31eadde
/aizu/tyama_aizu1062.c
e6857a7a411621e39c686b9915cbe29ba8b96bb8
[ "0BSD" ]
permissive
cielavenir/procon
bbe1974b9bddb51b76d58722a0686a5b477c4456
746e1a91f574f20647e8aaaac0d9e6173f741176
refs/heads/master
2023-06-21T23:11:24.562546
2023-06-11T13:15:15
2023-06-11T13:15:15
7,557,464
137
136
null
2020-10-20T09:35:52
2013-01-11T09:40:26
C++
UTF-8
C
false
false
543
c
tyama_aizu1062.c
#define zone(h) ( (11<=(h)&&(h)<15)?0:(18<=(h)&&(h)<21)?1:(21<=(h)&&(h)<26)?2:3 ) int a[3],b[3]; char s[9];char *r(int i){strcpy(s,"no guest");if(a[i])sprintf(s,"%d",b[i]*100/a[i]);return s;} main(n,h,m,H,M){ for(;scanf("%d",&n),n;){ a[0]=a[1]=a[2]=b[0]=b[1]=b[2]=0; for(;n;n--){ scanf("%d:%d %d",&h,&m,&M); if(h<2)h+=24; H=M<m?h+1:h; if(zone(h)>2)continue; a[zone(h)]++; if((H*60+M)-(h*60+m)<=8)b[zone(h)]++; } printf("lunch %s\n",r(0)); printf("dinner %s\n",r(1)); printf("midnight %s\n",r(2)); } return 0; }
f5fde33bf65f061707f748d89e85fc99a8932a4b
0744dcc5394cebf57ebcba343747af6871b67017
/lib/libc/misc/lib_stream.c
d33911be31aa2d27660c1663756a7dde35978c59
[ "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
C
false
false
7,189
c
lib_stream.c
/**************************************************************************** * * Copyright 2016 Samsung Electronics 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 agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. * ****************************************************************************/ /**************************************************************************** * libc/misc/lib_stream.c * * Copyright (C) 2007, 2011, 2013-2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * 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 disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ #include <tinyara/config.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <tinyara/kmalloc.h> #include <tinyara/sched.h> #include <tinyara/fs/fs.h> #include <tinyara/lib.h> #include "lib_internal.h" #if (!defined(CONFIG_BUILD_PROTECTED) && !defined(CONFIG_BUILD_KERNEL)) || \ defined(__KERNEL__) /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** * Private Variables ****************************************************************************/ /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: lib_stream_initialize * * Description: * This function is called when a new task is allocated. It initializes * the streamlist instance that is stored in the task group. * ****************************************************************************/ #if CONFIG_NFILE_STREAMS > 0 void lib_stream_initialize(FAR struct task_group_s *group) { FAR struct streamlist *list; int i; #if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ defined(CONFIG_MM_KERNEL_HEAP) DEBUGASSERT(group && group->tg_streamlist); list = group->tg_streamlist; #else DEBUGASSERT(group); list = &group->tg_streamlist; #endif /* Initialize the list access mutex */ (void)sem_init(&list->sl_sem, 0, 1); /* Initialize each FILE structure */ for (i = 0; i < CONFIG_NFILE_STREAMS; i++) { FAR struct file_struct *stream = &list->sl_streams[i]; /* Clear the IOB */ memset(stream, 0, sizeof(FILE)); /* Indicate not opened */ stream->fs_fd = -1; /* Initialize the stream semaphore to one to support one-at- * a-time access to private data sets. */ lib_sem_initialize(&list->sl_streams[i]); } } #endif /* CONFIG_NFILE_STREAMS > 0 */ /**************************************************************************** * Name: lib_stream_init * * Description: * This function is called when a TCB is destroyed. Note that it does not * close the files by releasing the inode. That happens separately when * the file descriptor list is freed. * ****************************************************************************/ #if CONFIG_NFILE_STREAMS > 0 void lib_stream_release(FAR struct task_group_s *group) { FAR struct streamlist *list; #if CONFIG_STDIO_BUFFER_SIZE > 0 int i; #endif #if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ defined(CONFIG_MM_KERNEL_HEAP) DEBUGASSERT(group && group->tg_streamlist); list = group->tg_streamlist; #else DEBUGASSERT(group); list = &group->tg_streamlist; #endif /* Destroy the semaphore and release the filelist */ (void)sem_destroy(&list->sl_sem); /* Release each stream in the list */ #if CONFIG_STDIO_BUFFER_SIZE > 0 for (i = 0; i < CONFIG_NFILE_STREAMS; i++) { FAR struct file_struct *stream = &list->sl_streams[i]; /* Destroy the semaphore that protects the IO buffer */ (void)sem_destroy(&stream->fs_sem); /* Release the IO buffer */ if (stream->fs_bufstart != NULL && (stream->fs_flags & __FS_FLAG_UBF) == 0) { #ifndef CONFIG_BUILD_KERNEL /* Release memory appropriate previously allocated via group_malloc() * using the appropriate memory manager. */ group_free(group, stream->fs_bufstart); #else /* If the exiting group is unprivileged, then it has an address * environment. Don't bother to release the memory in this case... * There is no point since the memory lies in the user heap which * will be destroyed anyway. But if this is a privileged group, * when we still have to release the memory using the kernel * allocator. */ if ((group->tg_flags & GROUP_FLAG_PRIVILEGED) != 0) { sched_kfree(stream->fs_bufstart); } #endif } } #endif } #endif /* CONFIG_NFILE_STREAMS > 0 */ #endif /* (!CONFIG_BUILD_PROTECTED &&7 !CONFIG_BUILD_KERNEL) || __KERNEL__ */
968959e5fe5fa0cdc4dea961a05ae519878d6048
2b96f03d9ce687babe1b0930a35b9a3ef6acc5bd
/ksw2.h
1f94c6f63e08cc06de102a604cdc486fb13ea6ba
[ "MIT" ]
permissive
lh3/minimap2
5b9bd6ac7b79fe8f0b59c772e96cbf464bf6a156
ace990c381c647d6cf8fae7a4941a7b56fb67ae7
refs/heads/master
2023-08-21T15:28:37.981116
2023-06-04T15:06:15
2023-06-04T15:06:15
97,612,481
1,599
454
NOASSERTION
2023-08-08T18:20:58
2017-07-18T15:04:53
C
UTF-8
C
false
false
8,620
h
ksw2.h
#ifndef KSW2_H_ #define KSW2_H_ #include <stdint.h> #define KSW_NEG_INF -0x40000000 #define KSW_EZ_SCORE_ONLY 0x01 // don't record alignment path/cigar #define KSW_EZ_RIGHT 0x02 // right-align gaps #define KSW_EZ_GENERIC_SC 0x04 // without this flag: match/mismatch only; last symbol is a wildcard #define KSW_EZ_APPROX_MAX 0x08 // approximate max; this is faster with sse #define KSW_EZ_APPROX_DROP 0x10 // approximate Z-drop; faster with sse #define KSW_EZ_EXTZ_ONLY 0x40 // only perform extension #define KSW_EZ_REV_CIGAR 0x80 // reverse CIGAR in the output #define KSW_EZ_SPLICE_FOR 0x100 #define KSW_EZ_SPLICE_REV 0x200 #define KSW_EZ_SPLICE_FLANK 0x400 #define KSW_EZ_SPLICE_CMPLX 0x800 // The subset of CIGAR operators used by ksw code. // Use MM_CIGAR_* from minimap.h if you need the full list. #define KSW_CIGAR_MATCH 0 #define KSW_CIGAR_INS 1 #define KSW_CIGAR_DEL 2 #define KSW_CIGAR_N_SKIP 3 #ifdef __cplusplus extern "C" { #endif typedef struct { uint32_t max:31, zdropped:1; int max_q, max_t; // max extension coordinate int mqe, mqe_t; // max score when reaching the end of query int mte, mte_q; // max score when reaching the end of target int score; // max score reaching both ends; may be KSW_NEG_INF int m_cigar, n_cigar; int reach_end; uint32_t *cigar; } ksw_extz_t; /** * NW-like extension * * @param km memory pool, when used with kalloc * @param qlen query length * @param query query sequence with 0 <= query[i] < m * @param tlen target length * @param target target sequence with 0 <= target[i] < m * @param m number of residue types * @param mat m*m scoring mattrix in one-dimension array * @param gapo gap open penalty; a gap of length l cost "-(gapo+l*gape)" * @param gape gap extension penalty * @param w band width (<0 to disable) * @param zdrop off-diagonal drop-off to stop extension (positive; <0 to disable) * @param flag flag (see KSW_EZ_* macros) * @param ez (out) scores and cigar */ void ksw_extz(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t q, int8_t e, int w, int zdrop, int flag, ksw_extz_t *ez); void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t q, int8_t e, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez); void ksw_extd(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int8_t gapo2, int8_t gape2, int w, int zdrop, int flag, ksw_extz_t *ez); void ksw_extd2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int8_t gapo2, int8_t gape2, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez); void ksw_exts2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int8_t gapo2, int8_t noncan, int zdrop, int8_t junc_bonus, int flag, const uint8_t *junc, ksw_extz_t *ez); void ksw_extf2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t mch, int8_t mis, int8_t e, int w, int xdrop, ksw_extz_t *ez); /** * Global alignment * * (first 10 parameters identical to ksw_extz_sse()) * @param m_cigar (modified) max CIGAR length; feed 0 if cigar==0 * @param n_cigar (out) number of CIGAR elements * @param cigar (out) BAM-encoded CIGAR; caller need to deallocate with kfree(km, ) * * @return score of the alignment */ int ksw_gg(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int w, int *m_cigar_, int *n_cigar_, uint32_t **cigar_); int ksw_gg2(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int w, int *m_cigar_, int *n_cigar_, uint32_t **cigar_); int ksw_gg2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t gapo, int8_t gape, int w, int *m_cigar_, int *n_cigar_, uint32_t **cigar_); void *ksw_ll_qinit(void *km, int size, int qlen, const uint8_t *query, int m, const int8_t *mat); int ksw_ll_i16(void *q, int tlen, const uint8_t *target, int gapo, int gape, int *qe, int *te); #ifdef __cplusplus } #endif /************************************ *** Private macros and functions *** ************************************/ #ifdef HAVE_KALLOC #include "kalloc.h" #else #include <stdlib.h> #define kmalloc(km, size) malloc((size)) #define kcalloc(km, count, size) calloc((count), (size)) #define krealloc(km, ptr, size) realloc((ptr), (size)) #define kfree(km, ptr) free((ptr)) #endif static inline uint32_t *ksw_push_cigar(void *km, int *n_cigar, int *m_cigar, uint32_t *cigar, uint32_t op, int len) { if (*n_cigar == 0 || op != (cigar[(*n_cigar) - 1]&0xf)) { if (*n_cigar == *m_cigar) { *m_cigar = *m_cigar? (*m_cigar)<<1 : 4; cigar = (uint32_t*)krealloc(km, cigar, (*m_cigar) << 2); } cigar[(*n_cigar)++] = len<<4 | op; } else cigar[(*n_cigar)-1] += len<<4; return cigar; } // In the backtrack matrix, value p[] has the following structure: // bit 0-2: which type gets the max - 0 for H, 1 for E, 2 for F, 3 for \tilde{E} and 4 for \tilde{F} // bit 3/0x08: 1 if a continuation on the E state (bit 5/0x20 for a continuation on \tilde{E}) // bit 4/0x10: 1 if a continuation on the F state (bit 6/0x40 for a continuation on \tilde{F}) static inline void ksw_backtrack(void *km, int is_rot, int is_rev, int min_intron_len, const uint8_t *p, const int *off, const int *off_end, int n_col, int i0, int j0, int *m_cigar_, int *n_cigar_, uint32_t **cigar_) { // p[] - lower 3 bits: which type gets the max; bit int n_cigar = 0, m_cigar = *m_cigar_, i = i0, j = j0, r, state = 0; uint32_t *cigar = *cigar_, tmp; while (i >= 0 && j >= 0) { // at the beginning of the loop, _state_ tells us which state to check int force_state = -1; if (is_rot) { r = i + j; if (i < off[r]) force_state = 2; if (off_end && i > off_end[r]) force_state = 1; tmp = force_state < 0? p[(size_t)r * n_col + i - off[r]] : 0; } else { if (j < off[i]) force_state = 2; if (off_end && j > off_end[i]) force_state = 1; tmp = force_state < 0? p[(size_t)i * n_col + j - off[i]] : 0; } if (state == 0) state = tmp & 7; // if requesting the H state, find state one maximizes it. else if (!(tmp >> (state + 2) & 1)) state = 0; // if requesting other states, _state_ stays the same if it is a continuation; otherwise, set to H if (state == 0) state = tmp & 7; // TODO: probably this line can be merged into the "else if" line right above; not 100% sure if (force_state >= 0) state = force_state; if (state == 0) cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, KSW_CIGAR_MATCH, 1), --i, --j; else if (state == 1 || (state == 3 && min_intron_len <= 0)) cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, KSW_CIGAR_DEL, 1), --i; else if (state == 3 && min_intron_len > 0) cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, KSW_CIGAR_N_SKIP, 1), --i; else cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, KSW_CIGAR_INS, 1), --j; } if (i >= 0) cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, min_intron_len > 0 && i >= min_intron_len? KSW_CIGAR_N_SKIP : KSW_CIGAR_DEL, i + 1); // first deletion if (j >= 0) cigar = ksw_push_cigar(km, &n_cigar, &m_cigar, cigar, KSW_CIGAR_INS, j + 1); // first insertion if (!is_rev) for (i = 0; i < n_cigar>>1; ++i) // reverse CIGAR tmp = cigar[i], cigar[i] = cigar[n_cigar-1-i], cigar[n_cigar-1-i] = tmp; *m_cigar_ = m_cigar, *n_cigar_ = n_cigar, *cigar_ = cigar; } static inline void ksw_reset_extz(ksw_extz_t *ez) { ez->max_q = ez->max_t = ez->mqe_t = ez->mte_q = -1; ez->max = 0, ez->score = ez->mqe = ez->mte = KSW_NEG_INF; ez->n_cigar = 0, ez->zdropped = 0, ez->reach_end = 0; } static inline int ksw_apply_zdrop(ksw_extz_t *ez, int is_rot, int32_t H, int a, int b, int zdrop, int8_t e) { int r, t; if (is_rot) r = a, t = b; else r = a + b, t = a; if (H > (int32_t)ez->max) { ez->max = H, ez->max_t = t, ez->max_q = r - t; } else if (t >= ez->max_t && r - t >= ez->max_q) { int tl = t - ez->max_t, ql = (r - t) - ez->max_q, l; l = tl > ql? tl - ql : ql - tl; if (zdrop >= 0 && ez->max - H > zdrop + l * e) { ez->zdropped = 1; return 1; } } return 0; } #endif
288bf130dc23d3a2528618cba27de0d72787c108
d78d8e2eba9180c174caec9594c8d9e9b78b7b9f
/src/base58.c
b94354583735ec184b2a2d07fb1262b5a8c661e6
[ "MIT" ]
permissive
ElementsProject/libwally-core
21adf16982aecc5de7c19044cec078794bde883b
0131dd7d746ed4c1ecfc0ebd9ea5b168cf15c7f9
refs/heads/master
2023-08-10T21:07:00.174677
2023-08-02T01:47:54
2023-08-02T01:47:54
95,169,962
269
146
NOASSERTION
2023-09-14T09:49:22
2017-06-23T01:09:27
C
UTF-8
C
false
false
10,621
c
base58.c
#include "internal.h" #include "base58.h" #include "ccan/ccan/crypto/sha256/sha256.h" #include "ccan/ccan/endian/endian.h" #include <include/wally_crypto.h> /* Temporary stack buffer sizes */ #define BIGNUM_WORDS 128u #define BIGNUM_BYTES (BIGNUM_WORDS * sizeof(uint32_t)) #define BASE58_ALL_DEFINED_FLAGS (BASE58_FLAG_CHECKSUM) static const unsigned char base58_to_byte[256] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* .1234567 */ 0x08, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 89...... */ 0x00, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, /* .ABCDEFG */ 0x11, 0x00, 0x12, 0x13, 0x14, 0x15, 0x16, 0x00, /* H.JKLMN. */ 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, /* PQRSTUVW */ 0x1F, 0x20, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, /* XYZ..... */ 0x00, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, /* .abcdefg */ 0x29, 0x2A, 0x2B, 0x2C, 0x00, 0x2D, 0x2E, 0x2F, /* hijk.mno */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* pqrstuvx */ 0x38, 0x39, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, /* xyz..... */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ }; static const char byte_to_base58[58] = { '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y','z' }; /* Returns non-zero on error. If 0 is returned then: * *len <= input value - OK, bytes_out contains data. * *len > input value - Failed and bytes_out untouched. */ static int base58_decode(const char *base58, size_t base58_len, unsigned char *bytes_out, size_t *len) { uint32_t bn_buf[BIGNUM_WORDS]; uint32_t *bn = bn_buf, *top_word, *bn_p; size_t bn_words = 0, ones, cp_len, i; unsigned char *cp; int ret = WALLY_EINVAL; if (!base58 || !base58_len) return WALLY_EINVAL; /* Empty string can't be decoded or represented */ /* Process leading '1's */ for (ones = 0; ones < base58_len && base58[ones] == '1'; ++ones) ; /* no-op*/ if (!(base58_len -= ones)) { if (bytes_out && ones <= *len) memset(bytes_out, 0, ones); *len = ones; return WALLY_OK; /* String of all '1's */ } base58 += ones; /* Skip over leading '1's */ /* Take 6 bits to store each 58 bit number, rounded up to the next byte, * then round that up to a uint32_t word boundary. */ bn_words = ((base58_len * 6 + 7) / 8 + 3) / 4; /* Allocate our bignum buffer if it won't fit on the stack */ if (bn_words > BIGNUM_WORDS) if (!(bn = wally_malloc(bn_words * sizeof(*bn)))) { ret = WALLY_ENOMEM; goto cleanup; } /* Iterate through the characters adding them to our bignum. We keep * track of the current top word to avoid iterating over words that * we know are zero. */ top_word = bn + bn_words - 1; *top_word = 0; for (i = 0; i < base58_len; ++i) { unsigned char byte = base58_to_byte[((unsigned char *)base58)[i]]; if (!byte--) goto cleanup; /* Invalid char */ for (bn_p = bn + bn_words - 1; bn_p >= top_word; --bn_p) { uint64_t mult = *bn_p * 58ull + byte; *bn_p = mult & 0xffffffff; byte = (mult >> 32) & 0xff; if (byte && bn_p == top_word) { *--top_word = byte; /* Increase bignum size */ break; } } } /* We have our bignum stored from top_word to bn + bn_words - 1. Convert * its words to big-endian so we can simply memcpy it to bytes_out. */ for (bn_p = top_word; bn_p < bn + bn_words; ++bn_p) *bn_p = cpu_to_be32(*bn_p); /* No-op on big-endian machines */ for (cp = (unsigned char *)top_word; !*cp; ++cp) ; /* Skip leading zero bytes in our bignum */ /* Copy the result if it fits, cleanup and return */ cp_len = (unsigned char *)(bn + bn_words) - cp; if (bytes_out && ones + cp_len <= *len) { memset(bytes_out, 0, ones); memcpy(bytes_out + ones, cp, cp_len); } *len = ones + cp_len; ret = WALLY_OK; cleanup: if (bn) { wally_clear(bn, bn_words * sizeof(*bn)); if (bn != bn_buf) wally_free(bn); } return ret; } uint32_t base58_get_checksum(const unsigned char *bytes, size_t bytes_len) { struct sha256 sha; uint32_t checksum; wally_sha256d(bytes, bytes_len, (unsigned char *)&sha, sizeof(sha)); checksum = sha.u.u32[0]; wally_clear(&sha, sizeof(sha)); return checksum; } int wally_base58_from_bytes(const unsigned char *bytes, size_t bytes_len, uint32_t flags, char **output) { uint32_t checksum, *cs_p = NULL; unsigned char bn_buf[BIGNUM_BYTES]; unsigned char *bn = bn_buf, *top_byte, *bn_p; size_t bn_bytes = 0, zeros, i, orig_len = bytes_len; int ret = WALLY_EINVAL; if (output) *output = NULL; if (!bytes || !bytes_len || (flags & ~BASE58_ALL_DEFINED_FLAGS) || !output) goto cleanup; /* Invalid argument */ if (flags & BASE58_FLAG_CHECKSUM) { checksum = base58_get_checksum(bytes, bytes_len); cs_p = &checksum; bytes_len += 4; } #define b(n) (n < orig_len ? bytes[n] : ((unsigned char *)cs_p)[n - orig_len]) /* Process leading zeros */ for (zeros = 0; zeros < bytes_len && !b(zeros); ++zeros) ; /* no-op*/ if (zeros == bytes_len) { if (!(*output = wally_malloc(zeros + 1))) { ret = WALLY_ENOMEM; goto cleanup; } memset(*output, '1', zeros); (*output)[zeros] = '\0'; return WALLY_OK; /* All 0's */ } bn_bytes = (bytes_len - zeros) * 138 / 100 + 1; /* log(256)/log(58) rounded up */ /* Allocate our bignum buffer if it won't fit on the stack */ if (bn_bytes > BIGNUM_BYTES) if (!(bn = wally_malloc(bn_bytes))) { ret = WALLY_ENOMEM; goto cleanup; } top_byte = bn + bn_bytes - 1; *top_byte = 0; for (i = zeros; i < bytes_len; ++i) { uint32_t carry = b(i); for (bn_p = bn + bn_bytes - 1; bn_p >= top_byte; --bn_p) { carry = *bn_p * 256 + carry; *bn_p = carry % 58; carry = carry / 58; if (carry && bn_p == top_byte) *--top_byte = 0; /* Increase bignum size */ } } while (!*top_byte && top_byte < bn + bn_bytes - 1) ++top_byte; /* Skip leading zero bytes in our bignum */ /* Copy the result */ bn_bytes = bn + bn_bytes - top_byte; if (!(*output = wally_malloc(zeros + bn_bytes + 1))) { ret = WALLY_ENOMEM; goto cleanup; } memset(*output, '1', zeros); for (i = 0; i < bn_bytes; ++i) (*output)[zeros + i] = byte_to_base58[top_byte[i]]; (*output)[zeros + bn_bytes] = '\0'; ret = WALLY_OK; cleanup: if (bn) { wally_clear(bn, bn_bytes); if (bn != bn_buf) wally_free(bn); } return ret; #undef b } int wally_base58_n_get_length(const char *str_in, size_t str_len, size_t *written) { return base58_decode(str_in, str_len, NULL, written); } int wally_base58_get_length(const char *str_in, size_t *written) { return base58_decode(str_in, str_in ? strlen(str_in) : 0, NULL, written); } int wally_base58_n_to_bytes(const char *str_in, size_t str_len, uint32_t flags, unsigned char *bytes_out, size_t len, size_t *written) { size_t offset; uint32_t checksum; int ret; if (written) *written = 0; if (!str_in || flags & ~BASE58_ALL_DEFINED_FLAGS || !bytes_out || !len || !written) return WALLY_EINVAL; if (flags & BASE58_FLAG_CHECKSUM && len <= BASE58_CHECKSUM_LEN) return WALLY_EINVAL; /* No room for checksum */ *written = len; ret = base58_decode(str_in, str_len, bytes_out, written); if (!ret && *written > len) return WALLY_OK; /* not enough space, return required amount */ if (!ret && (flags & BASE58_FLAG_CHECKSUM)) { if (*written <= BASE58_CHECKSUM_LEN) { wally_clear(bytes_out, len); return WALLY_EINVAL; /* Input not long enough to contain a checksum */ } offset = *written - BASE58_CHECKSUM_LEN; checksum = base58_get_checksum(bytes_out, offset); if (memcmp(bytes_out + offset, &checksum, sizeof(checksum))) { wally_clear(bytes_out, len); return WALLY_EINVAL; /* Checksum mismatch */ } wally_clear(bytes_out + offset, BASE58_CHECKSUM_LEN); *written -= BASE58_CHECKSUM_LEN; } return ret; } int wally_base58_to_bytes(const char *str_in, uint32_t flags, unsigned char *bytes_out, size_t len, size_t *written) { return wally_base58_n_to_bytes(str_in, str_in ? strlen(str_in) : 0, flags, bytes_out, len, written); }
3dc036b922b770ec0180c75b4cb91eeae25e9a61
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/drivers/net/wireless/rtl8723bs/include/rtl8723b_spec.h
d5d030a3f071dc04246da9580394d9405a7758d0
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
11,965
h
rtl8723b_spec.h
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * *******************************************************************************/ #ifndef __RTL8723B_SPEC_H__ #define __RTL8723B_SPEC_H__ #include <drv_conf.h> #define HAL_NAV_UPPER_UNIT_8723B 128 // micro-second //----------------------------------------------------- // // 0x0000h ~ 0x00FFh System Configuration // //----------------------------------------------------- #define REG_RSV_CTRL_8723B 0x001C // 3 Byte #define REG_BT_WIFI_ANTENNA_SWITCH_8723B 0x0038 #define REG_HSISR_8723B 0x005c #define REG_PAD_CTRL1_8723B 0x0064 #define REG_AFE_CTRL_4_8723B 0x0078 #define REG_HMEBOX_DBG_0_8723B 0x0088 #define REG_HMEBOX_DBG_1_8723B 0x008A #define REG_HMEBOX_DBG_2_8723B 0x008C #define REG_HMEBOX_DBG_3_8723B 0x008E #define REG_HIMR0_8723B 0x00B0 #define REG_HISR0_8723B 0x00B4 #define REG_HIMR1_8723B 0x00B8 #define REG_HISR1_8723B 0x00BC #define REG_PMC_DBG_CTRL2_8723B 0x00CC //----------------------------------------------------- // // 0x0100h ~ 0x01FFh MACTOP General Configuration // //----------------------------------------------------- #define REG_C2HEVT_CMD_ID_8723B 0x01A0 #define REG_C2HEVT_CMD_LEN_8723B 0x01AE #define REG_WOWLAN_WAKE_REASON 0x01C7 #define REG_WOWLAN_GTK_DBG1 0x630 #define REG_WOWLAN_GTK_DBG2 0x634 #define REG_HMEBOX_EXT0_8723B 0x01F0 #define REG_HMEBOX_EXT1_8723B 0x01F4 #define REG_HMEBOX_EXT2_8723B 0x01F8 #define REG_HMEBOX_EXT3_8723B 0x01FC //----------------------------------------------------- // // 0x0200h ~ 0x027Fh TXDMA Configuration // //----------------------------------------------------- //----------------------------------------------------- // // 0x0280h ~ 0x02FFh RXDMA Configuration // //----------------------------------------------------- #define REG_RXDMA_CONTROL_8723B 0x0286 // Control the RX DMA. #define REG_RXDMA_MODE_CTRL_8723B 0x0290 //----------------------------------------------------- // // 0x0300h ~ 0x03FFh PCIe // //----------------------------------------------------- #define REG_PCIE_CTRL_REG_8723B 0x0300 #define REG_INT_MIG_8723B 0x0304 // Interrupt Migration #define REG_BCNQ_DESA_8723B 0x0308 // TX Beacon Descriptor Address #define REG_HQ_DESA_8723B 0x0310 // TX High Queue Descriptor Address #define REG_MGQ_DESA_8723B 0x0318 // TX Manage Queue Descriptor Address #define REG_VOQ_DESA_8723B 0x0320 // TX VO Queue Descriptor Address #define REG_VIQ_DESA_8723B 0x0328 // TX VI Queue Descriptor Address #define REG_BEQ_DESA_8723B 0x0330 // TX BE Queue Descriptor Address #define REG_BKQ_DESA_8723B 0x0338 // TX BK Queue Descriptor Address #define REG_RX_DESA_8723B 0x0340 // RX Queue Descriptor Address #define REG_DBI_WDATA_8723B 0x0348 // DBI Write Data #define REG_DBI_RDATA_8723B 0x034C // DBI Read Data #define REG_DBI_ADDR_8723B 0x0350 // DBI Address #define REG_DBI_FLAG_8723B 0x0352 // DBI Read/Write Flag #define REG_MDIO_WDATA_8723B 0x0354 // MDIO for Write PCIE PHY #define REG_MDIO_RDATA_8723B 0x0356 // MDIO for Reads PCIE PHY #define REG_MDIO_CTL_8723B 0x0358 // MDIO for Control #define REG_DBG_SEL_8723B 0x0360 // Debug Selection Register #define REG_PCIE_HRPWM_8723B 0x0361 //PCIe RPWM #define REG_PCIE_HCPWM_8723B 0x0363 //PCIe CPWM #define REG_PCIE_MULTIFET_CTRL_8723B 0x036A //PCIE Multi-Fethc Control //----------------------------------------------------- // // 0x0400h ~ 0x047Fh Protocol Configuration // //----------------------------------------------------- #define REG_TXPKTBUF_BCNQ_BDNY_8723B 0x0424 #define REG_TXPKTBUF_MGQ_BDNY_8723B 0x0425 #define REG_TXPKTBUF_WMAC_LBK_BF_HD_8723B 0x045D #ifdef CONFIG_WOWLAN #define REG_TXPKTBUF_IV_LOW 0x0484 #define REG_TXPKTBUF_IV_HIGH 0x0488 #endif #define REG_AMPDU_BURST_MODE_8723B 0x04BC //----------------------------------------------------- // // 0x0500h ~ 0x05FFh EDCA Configuration // //----------------------------------------------------- #define REG_SECONDARY_CCA_CTRL_8723B 0x0577 //----------------------------------------------------- // // 0x0600h ~ 0x07FFh WMAC Configuration // //----------------------------------------------------- //============================================================ // SDIO Bus Specification //============================================================ //----------------------------------------------------- // SDIO CMD Address Mapping //----------------------------------------------------- //----------------------------------------------------- // I/O bus domain (Host) //----------------------------------------------------- //----------------------------------------------------- // SDIO register //----------------------------------------------------- #define SDIO_REG_HCPWM1_8723B 0x025 // HCI Current Power Mode 1 //============================================================================ // 8723 Regsiter Bit and Content definition //============================================================================ //2 HSISR // interrupt mask which needs to clear #define MASK_HSISR_CLEAR (HSISR_GPIO12_0_INT |\ HSISR_SPS_OCP_INT |\ HSISR_RON_INT |\ HSISR_PDNINT |\ HSISR_GPIO9_INT) //----------------------------------------------------- // // 0x0100h ~ 0x01FFh MACTOP General Configuration // //----------------------------------------------------- #undef IS_E_CUT #define IS_E_CUT(version) FALSE #undef IS_F_CUT #define IS_F_CUT(version) ((GET_CVID_CUT_VERSION(version) == E_CUT_VERSION) ? TRUE : FALSE) //----------------------------------------------------- // // 0x0200h ~ 0x027Fh TXDMA Configuration // //----------------------------------------------------- //----------------------------------------------------- // // 0x0280h ~ 0x02FFh RXDMA Configuration // //----------------------------------------------------- #define BIT_USB_RXDMA_AGG_EN BIT(31) #define RXDMA_AGG_MODE_EN BIT(1) #ifdef CONFIG_WOWLAN #define RXPKT_RELEASE_POLL BIT(16) #define RXDMA_IDLE BIT(17) #define RW_RELEASE_EN BIT(18) #endif //----------------------------------------------------- // // 0x0400h ~ 0x047Fh Protocol Configuration // //----------------------------------------------------- //---------------------------------------------------------------------------- // 8723B REG_CCK_CHECK (offset 0x454) //---------------------------------------------------------------------------- #define BIT_BCN_PORT_SEL BIT5 //----------------------------------------------------- // // 0x0500h ~ 0x05FFh EDCA Configuration // //----------------------------------------------------- //----------------------------------------------------- // // 0x0600h ~ 0x07FFh WMAC Configuration // //----------------------------------------------------- #ifdef CONFIG_RF_GAIN_OFFSET #ifdef CONFIG_RTL8723B #define EEPROM_RF_GAIN_OFFSET 0xC1 #endif #define EEPROM_RF_GAIN_VAL 0x1F6 #endif //CONFIG_RF_GAIN_OFFSET //---------------------------------------------------------------------------- // 8195 IMR/ISR bits (offset 0xB0, 8bits) //---------------------------------------------------------------------------- #define IMR_DISABLED_8723B 0 // IMR DW0(0x00B0-00B3) Bit 0-31 #define IMR_TIMER2_8723B BIT31 // Timeout interrupt 2 #define IMR_TIMER1_8723B BIT30 // Timeout interrupt 1 #define IMR_PSTIMEOUT_8723B BIT29 // Power Save Time Out Interrupt #define IMR_GTINT4_8723B BIT28 // When GTIMER4 expires, this bit is set to 1 #define IMR_GTINT3_8723B BIT27 // When GTIMER3 expires, this bit is set to 1 #define IMR_TXBCN0ERR_8723B BIT26 // Transmit Beacon0 Error #define IMR_TXBCN0OK_8723B BIT25 // Transmit Beacon0 OK #define IMR_TSF_BIT32_TOGGLE_8723B BIT24 // TSF Timer BIT32 toggle indication interrupt #define IMR_BCNDMAINT0_8723B BIT20 // Beacon DMA Interrupt 0 #define IMR_BCNDERR0_8723B BIT16 // Beacon Queue DMA OK0 #define IMR_HSISR_IND_ON_INT_8723B BIT15 // HSISR Indicator (HSIMR & HSISR is true, this bit is set to 1) #define IMR_BCNDMAINT_E_8723B BIT14 // Beacon DMA Interrupt Extension for Win7 #define IMR_ATIMEND_8723B BIT12 // CTWidnow End or ATIM Window End #define IMR_C2HCMD_8723B BIT10 // CPU to Host Command INT Status, Write 1 clear #define IMR_CPWM2_8723B BIT9 // CPU power Mode exchange INT Status, Write 1 clear #define IMR_CPWM_8723B BIT8 // CPU power Mode exchange INT Status, Write 1 clear #define IMR_HIGHDOK_8723B BIT7 // High Queue DMA OK #define IMR_MGNTDOK_8723B BIT6 // Management Queue DMA OK #define IMR_BKDOK_8723B BIT5 // AC_BK DMA OK #define IMR_BEDOK_8723B BIT4 // AC_BE DMA OK #define IMR_VIDOK_8723B BIT3 // AC_VI DMA OK #define IMR_VODOK_8723B BIT2 // AC_VO DMA OK #define IMR_RDU_8723B BIT1 // Rx Descriptor Unavailable #define IMR_ROK_8723B BIT0 // Receive DMA OK // IMR DW1(0x00B4-00B7) Bit 0-31 #define IMR_BCNDMAINT7_8723B BIT27 // Beacon DMA Interrupt 7 #define IMR_BCNDMAINT6_8723B BIT26 // Beacon DMA Interrupt 6 #define IMR_BCNDMAINT5_8723B BIT25 // Beacon DMA Interrupt 5 #define IMR_BCNDMAINT4_8723B BIT24 // Beacon DMA Interrupt 4 #define IMR_BCNDMAINT3_8723B BIT23 // Beacon DMA Interrupt 3 #define IMR_BCNDMAINT2_8723B BIT22 // Beacon DMA Interrupt 2 #define IMR_BCNDMAINT1_8723B BIT21 // Beacon DMA Interrupt 1 #define IMR_BCNDOK7_8723B BIT20 // Beacon Queue DMA OK Interrup 7 #define IMR_BCNDOK6_8723B BIT19 // Beacon Queue DMA OK Interrup 6 #define IMR_BCNDOK5_8723B BIT18 // Beacon Queue DMA OK Interrup 5 #define IMR_BCNDOK4_8723B BIT17 // Beacon Queue DMA OK Interrup 4 #define IMR_BCNDOK3_8723B BIT16 // Beacon Queue DMA OK Interrup 3 #define IMR_BCNDOK2_8723B BIT15 // Beacon Queue DMA OK Interrup 2 #define IMR_BCNDOK1_8723B BIT14 // Beacon Queue DMA OK Interrup 1 #define IMR_ATIMEND_E_8723B BIT13 // ATIM Window End Extension for Win7 #define IMR_TXERR_8723B BIT11 // Tx Error Flag Interrupt Status, write 1 clear. #define IMR_RXERR_8723B BIT10 // Rx Error Flag INT Status, Write 1 clear #define IMR_TXFOVW_8723B BIT9 // Transmit FIFO Overflow #define IMR_RXFOVW_8723B BIT8 // Receive FIFO Overflow #ifdef CONFIG_PCI_HCI //#define IMR_RX_MASK (IMR_ROK_8723B|IMR_RDU_8723B|IMR_RXFOVW_8723B) #define IMR_TX_MASK (IMR_VODOK_8723B|IMR_VIDOK_8723B|IMR_BEDOK_8723B|IMR_BKDOK_8723B|IMR_MGNTDOK_8723B|IMR_HIGHDOK_8723B) #define RT_BCN_INT_MASKS (IMR_BCNDMAINT0_8723B | IMR_TXBCN0OK_8723B | IMR_TXBCN0ERR_8723B | IMR_BCNDERR0_8723B) #define RT_AC_INT_MASKS (IMR_VIDOK_8723B | IMR_VODOK_8723B | IMR_BEDOK_8723B|IMR_BKDOK_8723B) #endif //======================================================== // General definitions //======================================================== #define MACID_NUM_8723B 128 #define CAM_ENTRY_NUM_8723B 64 #endif /* __RTL8723B_SPEC_H__ */
578a68b4876f63ddc8276e270abba922e4ef6b63
7c2ad8ba10c5f01b28ed8de35132c0813b736599
/lib/sampgdk/sampgdk.c
843790e53879936b7ed1e89fc8858bbe50689337
[ "Apache-2.0" ]
permissive
Zeex/sampgdk
d0a4df972337d28c49b99fe8db42730ca17076c8
80803309da326f6affbf09dffb262282fc784865
refs/heads/master
2023-02-18T16:10:12.537725
2023-02-13T07:07:44
2023-02-13T07:07:44
3,026,213
133
65
Apache-2.0
2022-07-03T07:12:10
2011-12-21T10:42:32
C
UTF-8
C
false
false
1,010
c
sampgdk.c
/* Copyright (C) 2011-2018 Zeex * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #define IN_SAMPGDK #ifndef SAMPGDK_AMALGAMATION #define SAMPGDK_AMALGAMATION #endif #include "sampgdk.h" #if SAMPGDK_WINDOWS #ifdef _MSC_VER #pragma warning(disable: 4996) #endif #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h> #endif
e97012a7918eb84d7a9558cd987e8a465cfd7520
e5e0d729f082999a9bec142611365b00f7bfc684
/tensorflow/lite/experimental/micro/examples/micro_vision/himax_driver/HM01B0_optimized.h
ee0d9d8bc936132eb6febdf042dbc826eb87b11a
[ "Apache-2.0" ]
permissive
NVIDIA/tensorflow
ed6294098c7354dfc9f09631fc5ae22dbc278138
7cbba04a2ee16d21309eefad5be6585183a2d5a9
refs/heads/r1.15.5+nv23.03
2023-08-16T22:25:18.037979
2023-08-03T22:09:23
2023-08-03T22:09:23
263,748,045
763
117
Apache-2.0
2023-07-03T15:45:19
2020-05-13T21:34:32
C++
UTF-8
C
false
false
1,905
h
HM01B0_optimized.h
/* Copyright 2019 The TensorFlow Authors. 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_VISION_HIMAX_DRIVER_HM01B0_OPTIMIZED_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_VISION_HIMAX_DRIVER_HM01B0_OPTIMIZED_H_ #ifdef __cplusplus extern "C" { #endif #include "HM01B0.h" //***************************************************************************** // //! @brief Read one frame of data from HM01B0 scaled to 96x96 RGB. //! //! @param buffer - Pointer to the frame buffer. //! @param w - Image width. //! @param h - Image height. //! @param channels - Number of channels per pixel. //! //! This function reads data of one frame from HM01B0. It trims the image to an //! even power of two multiple of the requested width and height. It down //! samples the original image and duplicates the greyscale value for each color //! channel. //! //! @return Error code. // //***************************************************************************** uint32_t hm01b0_blocking_read_oneframe_scaled(uint8_t* buffer, int w, int h, int channels); #ifdef __cplusplus } #endif #endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_VISION_HIMAX_DRIVER_HM01B0_OPTIMIZED_H_
21742b2c5ad66c3fc752e33bfdd1dcca88af15be
2d11442aa09b51e10c245ee2b64231aeb051744f
/platforms/win32/plugins/UUIDPlugin/sqWin32UUID.c
786efcb7b9deb8ba167aefff90fd021ecc8c42d8
[ "MIT" ]
permissive
OpenSmalltalk/opensmalltalk-vm
622b01c10017a93fdff4f1ef2188c45342384c78
330d6779ad2ecbce1f07131f53d75cd168165f0b
refs/heads/Cog
2023-09-04T05:36:54.320281
2023-08-17T11:32:52
2023-08-31T12:26:44
59,481,716
556
153
NOASSERTION
2023-06-19T19:58:13
2016-05-23T12:40:27
C
UTF-8
C
false
false
761
c
sqWin32UUID.c
/**************************************************************************** * PROJECT: Squeak port for Win32 (NT / Win95) * FILE: sqWin32UUID.c * CONTENT: UUID support * * AUTHOR: Andreas Raab (ar) * ADDRESS: * EMAIL: Andreas.Raab@gmx.de * *****************************************************************************/ #include <Windows.h> #include <ole2.h> #include "sq.h" int sqUUIDInit(void) { return 1; } int sqUUIDShutdown(void) { return 1; } #if defined(SQUEAK_BUILTIN_PLUGIN) # define FAIL() primitiveFail() #else extern struct VirtualMachine *interpreterProxy; # define FAIL() interpreterProxy->primitiveFail() #endif int MakeUUID(char *location) { if (CoCreateGuid((GUID*)location) == S_OK) return 1; FAIL(); return 0; }
e20f4fe15509e43ac6b3ad0138a5504eef5d401a
00fbe208cec31dc61ca326ea0c7c8711e4a8db2a
/legacy/src/protocol/data/ping/response.h
5670cdeaa283b0abbfe138d318ed4b8795484478
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
twitter/pelikan
9725f1a5d1e30ebbdbcf3b0177c4dae130806b1d
e7a76c92d8a6b401475ce53d3cefe964f1e7fbb6
refs/heads/master
2023-08-14T05:07:36.020898
2022-10-27T17:13:29
2022-10-27T17:13:29
42,829,191
1,880
180
Apache-2.0
2023-05-12T12:23:40
2015-09-20T20:51:55
C
UTF-8
C
false
false
81
h
response.h
#pragma once #define RESPONSE "PONG\r\n" #define RSP_LEN (sizeof(RESPONSE) - 1)
80002c87f5a068988e89fb9f7afaae046b32d375
a1b303bf34b1938e743738fad9968fb844662c5a
/tests/unt_hashmultimap.h
4708008290ccd690a43e9d69250041d172dfaed9
[ "MIT" ]
permissive
LeoVen/C-Macro-Collections
dd4a2a41b9c01301372e94d565fa18d83244a71d
a8735889c76f4c1b65fc306ffd5de92029048197
refs/heads/master
2023-06-24T23:30:48.323022
2023-03-09T15:51:48
2023-03-09T15:51:48
177,058,533
461
51
MIT
2023-06-21T09:17:56
2019-03-22T02:33:19
C
UTF-8
C
false
false
27,523
h
unt_hashmultimap.h
#ifndef CMC_TESTS_UNT_HASHMULTIMAP_H #define CMC_TESTS_UNT_HASHMULTIMAP_H #include "utl.h" #define V size_t #define K size_t #define PFX hmm #define SNAME hashmultimap #include "cmc/hashmultimap.h" struct hashmultimap_fkey *hmm_fkey = &(struct hashmultimap_fkey){ .cmp = cmc_size_cmp, .cpy = NULL, .str = cmc_size_str, .free = NULL, .hash = cmc_size_hash, .pri = cmc_size_cmp }; struct hashmultimap_fval *hmm_fval = &(struct hashmultimap_fval){ .cmp = cmc_size_cmp, .cpy = NULL, .str = cmc_size_str, .free = NULL, .hash = cmc_size_hash, .pri = cmc_size_cmp }; struct hashmultimap_fkey *hmm_fkey_counter = &(struct hashmultimap_fkey){ .cmp = k_c_cmp, .cpy = k_c_cpy, .str = k_c_str, .free = k_c_free, .hash = k_c_hash, .pri = k_c_pri }; struct hashmultimap_fval *hmm_fval_counter = &(struct hashmultimap_fval){ .cmp = v_c_cmp, .cpy = v_c_cpy, .str = v_c_str, .free = v_c_free, .hash = v_c_hash, .pri = v_c_pri }; struct cmc_alloc_node *hmm_alloc_node = &(struct cmc_alloc_node){ .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free }; CMC_CREATE_UNIT(CMCHashMultiMap, true, { CMC_CREATE_TEST(PFX##_new(), { struct hashmultimap *map = hmm_new(943722, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); cmc_assert_not_equals(ptr, NULL, map->buffer); cmc_assert_equals(size_t, 0, map->count); cmc_assert_equals(double, 0.6, map->load); cmc_assert_equals(int32_t, CMC_FLAG_OK, map->flag); cmc_assert_equals(ptr, hmm_fkey, map->f_key); cmc_assert_equals(ptr, hmm_fval, map->f_val); cmc_assert_equals(ptr, cmc_alloc_node_default.malloc, map->alloc->malloc); cmc_assert_equals(ptr, cmc_alloc_node_default.calloc, map->alloc->calloc); cmc_assert_equals(ptr, cmc_alloc_node_default.realloc, map->alloc->realloc); cmc_assert_equals(ptr, cmc_alloc_node_default.free, map->alloc->free); cmc_assert_equals(ptr, NULL, map->callbacks); cmc_assert_greater_equals(size_t, (943722 / 0.6), hmm_capacity(map)); hmm_free(map); map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 0; i < map->capacity; i++) { cmc_assert_equals(ptr, NULL, map->buffer[i][0]); cmc_assert_equals(ptr, NULL, map->buffer[i][1]); } hmm_free(map); map = hmm_new(0, 0.6, hmm_fkey, hmm_fval); cmc_assert_equals(ptr, NULL, map); map = hmm_new(UINT64_MAX, 0.99, hmm_fkey, hmm_fval); cmc_assert_equals(ptr, NULL, map); map = hmm_new(1000, 0.6, hmm_fkey, NULL); cmc_assert_equals(ptr, NULL, map); map = hmm_new(1000, 0.6, NULL, hmm_fval); cmc_assert_equals(ptr, NULL, map); map = hmm_new(1000, 0.6, NULL, NULL); cmc_assert_equals(ptr, NULL, map); }); CMC_CREATE_TEST(PFX##_new_custom(), { struct hashmultimap *map = hmm_new_custom(943722, 0.6, hmm_fkey, hmm_fval, hmm_alloc_node, callbacks); cmc_assert_not_equals(ptr, NULL, map); cmc_assert_not_equals(ptr, NULL, map->buffer); cmc_assert_equals(size_t, 0, map->count); cmc_assert_equals(double, 0.6, map->load); cmc_assert_equals(int32_t, CMC_FLAG_OK, map->flag); cmc_assert_equals(ptr, hmm_fkey, map->f_key); cmc_assert_equals(ptr, hmm_fval, map->f_val); cmc_assert_equals(ptr, hmm_alloc_node, map->alloc); cmc_assert_equals(ptr, callbacks, map->callbacks); cmc_assert_greater_equals(size_t, (943722 / 0.6), hmm_capacity(map)); hmm_free(map); map = hmm_new_custom(0, 0.6, hmm_fkey, hmm_fval, NULL, NULL); cmc_assert_equals(ptr, NULL, map); map = hmm_new_custom(UINT64_MAX, 0.99, hmm_fkey, hmm_fval, NULL, NULL); cmc_assert_equals(ptr, NULL, map); map = hmm_new_custom(1000, 0.6, hmm_fkey, NULL, NULL, NULL); cmc_assert_equals(ptr, NULL, map); map = hmm_new_custom(1000, 0.6, NULL, hmm_fval, NULL, NULL); cmc_assert_equals(ptr, NULL, map); map = hmm_new_custom(1000, 0.6, NULL, NULL, NULL, NULL); cmc_assert_equals(ptr, NULL, map); }); CMC_CREATE_TEST(PFX##_clear(), { k_total_free = 0; v_total_free = 0; struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_counter, hmm_fval_counter); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 1; i <= 1000; i++) hmm_insert(map, i, i); cmc_assert_equals(size_t, 1000, map->count); map->flag = CMC_FLAG_ERROR; hmm_clear(map); cmc_assert_equals(size_t, 0, map->count); cmc_assert_equals(int32_t, CMC_FLAG_OK, map->flag); cmc_assert_equals(int32_t, 1000, k_total_free); cmc_assert_equals(int32_t, 1000, v_total_free); hmm_free(map); k_total_free = 0; v_total_free = 0; }); CMC_CREATE_TEST(PFX##_free(), { k_total_free = 0; v_total_free = 0; struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_counter, hmm_fval_counter); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 1; i <= 1000; i++) hmm_insert(map, i, i); cmc_assert_equals(size_t, 1000, map->count); hmm_free(map); cmc_assert_equals(int32_t, 1000, k_total_free); cmc_assert_equals(int32_t, 1000, v_total_free); map = hmm_new(1000, 0.6, hmm_fkey_counter, hmm_fval_counter); cmc_assert_not_equals(ptr, NULL, map); cmc_assert_not_equals(ptr, NULL, map->buffer); hmm_free(map); cmc_assert_equals(int32_t, 1000, k_total_free); cmc_assert_equals(int32_t, 1000, v_total_free); k_total_free = 0; v_total_free = 0; }); CMC_CREATE_TEST(insert[count], { struct hashmultimap *map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 0; i < 100; i++) cmc_assert(hmm_insert(map, i % 20, i % 20)); cmc_assert_equals(size_t, 100, hmm_count(map)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_remove(), { struct hashmultimap *map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 0; i < 200; i++) cmc_assert(hmm_insert(map, i % 20, i % 20)); size_t r; for (size_t i = 0; i < 60; i++) cmc_assert(hmm_remove(map, i % 20, &r)); cmc_assert_equals(size_t, 140, hmm_count(map)); hmm_free(map); // count = 0 map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); cmc_assert(!hmm_remove(map, 10, &r)); hmm_free(map); // count = 1 map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); cmc_assert(hmm_insert(map, 10, 11)); cmc_assert(hmm_remove(map, 10, &r)); hmm_free(map); }); CMC_CREATE_TEST(get[key ordering], { struct hashmultimap *map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); /* Assert that the value 100 is accessed before the value 101 for */ /* the same key */ cmc_assert(hmm_insert(map, 10, 100)); cmc_assert(hmm_insert(map, 20, 102)); cmc_assert(hmm_insert(map, 10, 101)); cmc_assert_equals(size_t, 100, hmm_get(map, 10)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_max(), { struct hashmultimap *map = hmm_new(50, 0.8, hmm_fkey, hmm_fval); size_t max_key; size_t max_val; cmc_assert(!hmm_max(map, &max_key, &max_val)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, map->flag); cmc_assert(hmm_insert(map, 1, 2)); cmc_assert(hmm_max(map, &max_key, &max_val)); cmc_assert_equals(size_t, 1, max_key); cmc_assert_equals(size_t, 2, max_val); cmc_assert(hmm_insert(map, 2, 3)); cmc_assert(hmm_insert(map, 0, 1)); cmc_assert(hmm_max(map, &max_key, &max_val)); cmc_assert_equals(size_t, 2, max_key); cmc_assert_equals(size_t, 3, max_val); for (size_t i = 3; i <= 100; i++) { cmc_assert(hmm_insert(map, i, i)); } cmc_assert(hmm_max(map, &max_key, &max_val)); cmc_assert_equals(size_t, 100, max_key); cmc_assert_equals(size_t, 100, max_val); hmm_free(map); }); CMC_CREATE_TEST(PFX##_min(), { struct hashmultimap *map = hmm_new(50, 0.8, hmm_fkey, hmm_fval); size_t min_key; size_t min_val; cmc_assert(!hmm_min(map, &min_key, &min_val)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, map->flag); cmc_assert(hmm_insert(map, 1, 2)); cmc_assert(hmm_min(map, &min_key, &min_val)); cmc_assert_equals(size_t, 1, min_key); cmc_assert_equals(size_t, 2, min_val); cmc_assert(hmm_insert(map, 2, 3)); cmc_assert(hmm_insert(map, 0, 1)); cmc_assert(hmm_min(map, &min_key, &min_val)); cmc_assert_equals(size_t, 0, min_key); cmc_assert_equals(size_t, 1, min_val); for (size_t i = 3; i <= 100; i++) { cmc_assert(hmm_insert(map, i, i)); } cmc_assert(hmm_min(map, &min_key, &min_val)); cmc_assert_equals(size_t, 0, min_key); cmc_assert_equals(size_t, 1, min_val); hmm_free(map); }); CMC_CREATE_TEST(PFX##_copy_of(), { struct hashmultimap *map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); for (size_t i = 0; i < 1000; i++) hmm_insert(map, i, i); struct hashmultimap *map2 = hmm_copy_of(map); cmc_assert_equals(size_t, map->count, map2->count); cmc_assert(hmm_equals(map, map2)); hmm_free(map); hmm_free(map2); }); CMC_CREATE_TEST(PFX##_equals(), { struct hashmultimap *map1 = hmm_new(100, 0.8, hmm_fkey, hmm_fval); struct hashmultimap *map2 = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert(hmm_equals(map1, map2)); cmc_assert(hmm_insert(map1, 1, 1)); cmc_assert(hmm_insert(map2, 1, 1)); cmc_assert(hmm_equals(map1, map2)); for (size_t i = 2; i < 200; i++) { cmc_assert(hmm_insert(map1, i, i) && hmm_insert(map2, i, i)); } cmc_assert(hmm_equals(map1, map2)); hmm_free(map1); hmm_free(map2); }); CMC_CREATE_TEST(key_count, { struct hashmultimap *map = hmm_new(50, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 0; i < 1000; i++) cmc_assert(hmm_insert(map, i % 20, i % 20)); cmc_assert_equals(size_t, 1000, hmm_count(map)); for (size_t i = 0; i < 20; i++) cmc_assert_equals(size_t, 50, hmm_key_count(map, i)); hmm_free(map); }); CMC_CREATE_TEST(flags, { struct hashmultimap *map = hmm_new(100, 0.8, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // clear map->flag = CMC_FLAG_ERROR; hmm_clear(map); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // customize map->flag = CMC_FLAG_ERROR; hmm_customize(map, NULL, NULL); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // insert map->flag = CMC_FLAG_ERROR; cmc_assert(hmm_insert(map, 1, 1)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // update cmc_assert(!hmm_update(map, 9, 10, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); cmc_assert(hmm_update(map, 1, 20, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // update_all map->flag = CMC_FLAG_ERROR; cmc_assert_equals(size_t, 1, hmm_update_all(map, 1, 2, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; cmc_assert_equals(size_t, 0, hmm_update_all(map, 2, 4, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); hmm_clear(map); cmc_assert_equals(size_t, 0, hmm_update_all(map, 1, 2, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); // remove map->flag = CMC_FLAG_ERROR; cmc_assert(!hmm_remove(map, 1, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(!hmm_remove(map, 2, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); cmc_assert(hmm_remove(map, 1, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // remove_all cmc_assert(!hmm_remove_all(map, 1, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); cmc_assert(hmm_insert(map, 1, 1) && hmm_insert(map, 1, 1)); cmc_assert_equals(size_t, 0, hmm_remove_all(map, 2, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); cmc_assert_equals(size_t, 2, hmm_remove_all(map, 1, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // max min cmc_assert(!hmm_max(map, NULL, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; cmc_assert(!hmm_min(map, NULL, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(hmm_max(map, NULL, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; cmc_assert(hmm_min(map, NULL, NULL)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // get get_ref hmm_get(map, 2); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; hmm_get_ref(map, 2); cmc_assert_equals(int32_t, CMC_FLAG_NOT_FOUND, hmm_flag(map)); hmm_get(map, 1); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; hmm_get_ref(map, 1); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); hmm_clear(map); hmm_get(map, 1); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); map->flag = CMC_FLAG_ERROR; hmm_get_ref(map, 1); cmc_assert_equals(int32_t, CMC_FLAG_EMPTY, hmm_flag(map)); // contains map->flag = CMC_FLAG_ERROR; cmc_assert(!hmm_contains(map, 1000)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); // copy_of map->flag = CMC_FLAG_ERROR; struct hashmultimap *map2 = hmm_copy_of(map); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map2)); // equals map->flag = CMC_FLAG_ERROR; map2->flag = CMC_FLAG_ERROR; cmc_assert(hmm_equals(map, map2)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map)); cmc_assert_equals(int32_t, CMC_FLAG_OK, hmm_flag(map2)); hmm_free(map); hmm_free(map2); }); }); struct hashmultimap_fkey *hmm_fkey_numhash = &(struct hashmultimap_fkey){ .cmp = cmc_size_cmp, .cpy = NULL, .str = cmc_size_str, .free = NULL, .hash = numhash, .pri = cmc_size_cmp }; CMC_CREATE_UNIT(CMCHashMultiMapIter, true, { CMC_CREATE_TEST(PFX##_iter_start(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); cmc_assert_equals(ptr, map, it.target); cmc_assert_equals(size_t, 0, it.cursor); cmc_assert_equals(size_t, 0, it.index); cmc_assert_equals(size_t, 0, it.first); cmc_assert_equals(size_t, 0, it.last); cmc_assert_equals(bool, true, it.start); cmc_assert_equals(bool, true, it.end); cmc_assert(hmm_iter_at_start(&it)); cmc_assert(hmm_iter_at_end(&it)); cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(hmm_insert(map, 2, 2)); cmc_assert(hmm_insert(map, 3, 3)); it = hmm_iter_start(map); cmc_assert_equals(size_t, 0, it.index); cmc_assert_equals(size_t, 1, it.cursor); cmc_assert_equals(size_t, 1, it.first); cmc_assert_equals(size_t, 3, it.last); cmc_assert_equals(bool, false, it.end); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_end(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert_equals(ptr, map, it.target); cmc_assert_equals(size_t, 0, it.cursor); cmc_assert_equals(size_t, 0, it.index); cmc_assert_equals(size_t, 0, it.first); cmc_assert_equals(size_t, 0, it.last); cmc_assert_equals(bool, true, it.start); cmc_assert_equals(bool, true, it.end); cmc_assert(hmm_iter_at_start(&it)); cmc_assert(hmm_iter_at_end(&it)); cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(hmm_insert(map, 2, 2)); cmc_assert(hmm_insert(map, 3, 3)); it = hmm_iter_end(map); cmc_assert_equals(size_t, map->count - 1, it.index); cmc_assert_equals(size_t, 3, it.cursor); cmc_assert_equals(size_t, 1, it.first); cmc_assert_equals(size_t, 3, it.last); cmc_assert_equals(bool, false, it.start); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_at_start(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); // Empty checks cmc_assert(hmm_iter_at_start(&it)); it = hmm_iter_end(map); cmc_assert(hmm_iter_at_start(&it)); // Non-empty checks cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(hmm_insert(map, 2, 2)); it = hmm_iter_end(map); cmc_assert(!hmm_iter_at_start(&it)); it = hmm_iter_start(map); cmc_assert(hmm_iter_at_start(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_at_end(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); // Empty check cmc_assert(hmm_iter_at_end(&it)); it = hmm_iter_end(map); cmc_assert(hmm_iter_at_end(&it)); // Non-empty checks cmc_assert(hmm_insert(map, 1, 1)); cmc_assert(hmm_insert(map, 2, 2)); it = hmm_iter_end(map); cmc_assert(hmm_iter_at_end(&it)); it = hmm_iter_start(map); cmc_assert(!hmm_iter_at_end(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_to_start(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); cmc_assert(!hmm_iter_to_start(&it)); for (size_t i = 1; i <= 100; i++) hmm_insert(map, i, i); cmc_assert_equals(size_t, 100, map->count); it = hmm_iter_end(map); cmc_assert(!hmm_iter_at_start(&it)); cmc_assert(hmm_iter_at_end(&it)); cmc_assert_equals(size_t, 100, hmm_iter_value(&it)); cmc_assert(hmm_iter_to_start(&it)); cmc_assert(hmm_iter_at_start(&it)); cmc_assert(!hmm_iter_at_end(&it)); cmc_assert_equals(size_t, 1, hmm_iter_value(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_to_end(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert(!hmm_iter_to_end(&it)); for (size_t i = 1; i <= 100; i++) hmm_insert(map, i, i); it = hmm_iter_start(map); cmc_assert(hmm_iter_at_start(&it)); cmc_assert(!hmm_iter_at_end(&it)); cmc_assert_equals(size_t, 1, hmm_iter_value(&it)); cmc_assert(hmm_iter_to_end(&it)); cmc_assert(!hmm_iter_at_start(&it)); cmc_assert(hmm_iter_at_end(&it)); cmc_assert_equals(size_t, 100, hmm_iter_value(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_next(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); cmc_assert(!hmm_iter_next(&it)); for (size_t i = 1; i <= 1000; i++) hmm_insert(map, i, i); size_t sum = 0; for (it = hmm_iter_start(map); !hmm_iter_at_end(&it); hmm_iter_next(&it)) { sum += hmm_iter_value(&it); } cmc_assert_equals(size_t, 500500, sum); sum = 0; hmm_iter_to_start(&it); do { sum += hmm_iter_value(&it); } while (hmm_iter_next(&it)); cmc_assert_equals(size_t, 500500, sum); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_prev(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert(!hmm_iter_prev(&it)); for (size_t i = 1; i <= 1000; i++) hmm_insert(map, i, i); size_t sum = 0; for (it = hmm_iter_end(map); !hmm_iter_at_start(&it); hmm_iter_prev(&it)) { sum += hmm_iter_value(&it); } cmc_assert_equals(size_t, 500500, sum); sum = 0; hmm_iter_to_end(&it); do { sum += hmm_iter_value(&it); } while (hmm_iter_prev(&it)); cmc_assert_equals(size_t, 500500, sum); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_advance(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_start(map); cmc_assert(!hmm_iter_advance(&it, 1)); for (size_t i = 0; i <= 1000; i++) hmm_insert(map, i, i); it = hmm_iter_start(map); cmc_assert(!hmm_iter_advance(&it, 0)); cmc_assert(!hmm_iter_advance(&it, map->count)); size_t sum = 0; for (it = hmm_iter_start(map);;) { sum += hmm_iter_value(&it); if (!hmm_iter_advance(&it, 2)) break; } cmc_assert_equals(size_t, 250500, sum); hmm_iter_to_start(&it); cmc_assert(hmm_iter_advance(&it, map->count - 1)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_rewind(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert(!hmm_iter_rewind(&it, 1)); for (size_t i = 0; i <= 1000; i++) hmm_insert(map, i, i); it = hmm_iter_end(map); cmc_assert(!hmm_iter_rewind(&it, 0)); cmc_assert(!hmm_iter_rewind(&it, map->count)); size_t sum = 0; for (it = hmm_iter_end(map);;) { sum += hmm_iter_value(&it); if (!hmm_iter_rewind(&it, 2)) break; } cmc_assert_equals(size_t, 250500, sum); hmm_iter_to_end(&it); cmc_assert(hmm_iter_rewind(&it, map->count - 1)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_go_to(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey_numhash, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert(!hmm_iter_go_to(&it, 0)); it = hmm_iter_start(map); cmc_assert(!hmm_iter_go_to(&it, 0)); for (size_t i = 0; i <= 1000; i++) hmm_insert(map, i, i); it = hmm_iter_start(map); size_t sum = 0; for (size_t i = 0; i < 1001; i++) { hmm_iter_go_to(&it, i); sum += hmm_iter_value(&it); } cmc_assert_equals(size_t, 500500, sum); sum = 0; for (size_t i = 1001; i > 0; i--) { cmc_assert(hmm_iter_go_to(&it, i - 1)); sum += hmm_iter_value(&it); } cmc_assert_equals(size_t, 500500, sum); sum = 0; for (size_t i = 0; i < 1001; i += 100) { cmc_assert(hmm_iter_go_to(&it, i)); cmc_assert_equals(size_t, i, hmm_iter_index(&it)); sum += hmm_iter_value(&it); } cmc_assert_equals(size_t, 5500, sum); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_key(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert_equals(size_t, (size_t){ 0 }, hmm_iter_key(&it)); cmc_assert(hmm_insert(map, 10, 10)); it = hmm_iter_start(map); cmc_assert_equals(size_t, 10, hmm_iter_key(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_value(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert_equals(size_t, (size_t){ 0 }, hmm_iter_value(&it)); cmc_assert(hmm_insert(map, 10, 10)); it = hmm_iter_start(map); cmc_assert_equals(size_t, 10, hmm_iter_value(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_rvalue(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); struct hashmultimap_iter it = hmm_iter_end(map); cmc_assert_equals(ptr, NULL, hmm_iter_rvalue(&it)); cmc_assert(hmm_insert(map, 10, 10)); it = hmm_iter_start(map); cmc_assert_not_equals(ptr, NULL, hmm_iter_rvalue(&it)); cmc_assert_equals(size_t, 10, *hmm_iter_rvalue(&it)); hmm_free(map); }); CMC_CREATE_TEST(PFX##_iter_index(), { struct hashmultimap *map = hmm_new(100, 0.6, hmm_fkey, hmm_fval); cmc_assert_not_equals(ptr, NULL, map); for (size_t i = 0; i <= 1000; i++) hmm_insert(map, i, i); struct hashmultimap_iter it = hmm_iter_start(map); for (size_t i = 0; i < 1001; i++) { cmc_assert_equals(size_t, i, hmm_iter_index(&it)); hmm_iter_next(&it); } it = hmm_iter_end(map); for (size_t i = 1001; i > 0; i--) { cmc_assert_equals(size_t, i - 1, hmm_iter_index(&it)); hmm_iter_prev(&it); } hmm_free(map); }); }); #endif /* CMC_TESTS_UNT_HASHMULTIMAP_H */
9ae644dca7a356fea3ea106ad2715aaeafc6cba5
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/rx/RPDL/r_pdl_rtc.h
2cdc21786824b51b72672d52e5d47003529ec75a
[ "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
C
false
false
4,434
h
r_pdl_rtc.h
/*""FILE COMMENT""******************************************************* * System Name : Real-time clock API for RX62Nxx * File Name : r_pdl_rtc.h * Version : 1.02 * Contents : RTC function prototypes * Customer : * Model : * Order : * CPU : RX * Compiler : RXC * OS : * Programmer : * Note : ************************************************************************ * Copyright, 2011. Renesas Electronics Corporation * and Renesas Solutions Corporation ************************************************************************ * History : 2011.04.08 * : Ver 1.02 * : CS-5 release. *""FILE COMMENT END""**************************************************/ #ifndef R_PDL_RTC_H #define R_PDL_RTC_H #include "r_pdl_common_defs_RX62Nxx.h" /* Function prototypes */ bool R_RTC_Create( uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, void *, uint8_t, void *, uint8_t ); bool R_RTC_Control( uint32_t, uint16_t, uint32_t, uint32_t, uint32_t, uint32_t ); bool R_RTC_Read( uint8_t *, uint32_t *, uint32_t * ); /* Alarm control */ #define PDL_RTC_ALARM_HOUR_DISABLE 0x00000001ul #define PDL_RTC_ALARM_HOUR_ENABLE 0x00000002ul #define PDL_RTC_ALARM_MINUTE_DISABLE 0x00000004ul #define PDL_RTC_ALARM_MINUTE_ENABLE 0x00000008ul #define PDL_RTC_ALARM_SECOND_DISABLE 0x00000010ul #define PDL_RTC_ALARM_SECOND_ENABLE 0x00000020ul #define PDL_RTC_ALARM_YEAR_DISABLE 0x00000040ul #define PDL_RTC_ALARM_YEAR_ENABLE 0x00000080ul #define PDL_RTC_ALARM_MONTH_DISABLE 0x00000100ul #define PDL_RTC_ALARM_MONTH_ENABLE 0x00000200ul #define PDL_RTC_ALARM_DAY_DISABLE 0x00000400ul #define PDL_RTC_ALARM_DAY_ENABLE 0x00000800ul #define PDL_RTC_ALARM_DOW_DISABLE 0x00001000ul #define PDL_RTC_ALARM_DOW_ENABLE 0x00002000ul #define PDL_RTC_ALARM_TIME_DISABLE \ (PDL_RTC_ALARM_HOUR_DISABLE | PDL_RTC_ALARM_MINUTE_DISABLE | PDL_RTC_ALARM_SECOND_DISABLE) #define PDL_RTC_ALARM_TIME_ENABLE \ (PDL_RTC_ALARM_HOUR_ENABLE | PDL_RTC_ALARM_MINUTE_ENABLE | PDL_RTC_ALARM_SECOND_ENABLE) #define PDL_RTC_ALARM_DATE_DISABLE \ (PDL_RTC_ALARM_YEAR_DISABLE | PDL_RTC_ALARM_MONTH_DISABLE | \ PDL_RTC_ALARM_DAY_DISABLE | PDL_RTC_ALARM_DOW_DISABLE) #define PDL_RTC_ALARM_DATE_ENABLE \ (PDL_RTC_ALARM_YEAR_ENABLE | PDL_RTC_ALARM_MONTH_ENABLE | \ PDL_RTC_ALARM_DAY_ENABLE | PDL_RTC_ALARM_DOW_ENABLE) /* Periodic interrupt selection */ #define PDL_RTC_PERIODIC_DISABLE 0x00004000ul #define PDL_RTC_PERIODIC_256_HZ 0x00008000ul #define PDL_RTC_PERIODIC_64_HZ 0x00010000ul #define PDL_RTC_PERIODIC_16_HZ 0x00020000ul #define PDL_RTC_PERIODIC_4_HZ 0x00040000ul #define PDL_RTC_PERIODIC_2_HZ 0x00080000ul #define PDL_RTC_PERIODIC_1_HZ 0x00100000ul #define PDL_RTC_PERIODIC_2S 0x00200000ul /* Clock output control */ #define PDL_RTC_OUTPUT_DISABLE 0x00400000ul #define PDL_RTC_OUTPUT_ENABLE 0x00800000ul /* Clock control */ #define PDL_RTC_CLOCK_STOP 0x01000000ul #define PDL_RTC_CLOCK_START 0x02000000ul /* 30-second adjustment control */ #define PDL_RTC_ADJUST_START 0x04000000ul /* Reset control */ #define PDL_RTC_RESET_START 0x08000000ul /* Current time counter selection */ #define PDL_RTC_UPDATE_CURRENT_HOUR 0x0001u #define PDL_RTC_UPDATE_CURRENT_MINUTE 0x0002u #define PDL_RTC_UPDATE_CURRENT_SECOND 0x0004u #define PDL_RTC_UPDATE_CURRENT_TIME \ (PDL_RTC_UPDATE_CURRENT_HOUR | PDL_RTC_UPDATE_CURRENT_MINUTE | PDL_RTC_UPDATE_CURRENT_SECOND) /* Current date counter selection */ #define PDL_RTC_UPDATE_CURRENT_YEAR 0x0008u #define PDL_RTC_UPDATE_CURRENT_MONTH 0x0010u #define PDL_RTC_UPDATE_CURRENT_DAY 0x0020u #define PDL_RTC_UPDATE_CURRENT_DOW 0x0040u #define PDL_RTC_UPDATE_CURRENT_DATE \ (PDL_RTC_UPDATE_CURRENT_YEAR | PDL_RTC_UPDATE_CURRENT_MONTH | PDL_RTC_UPDATE_CURRENT_DAY | PDL_RTC_UPDATE_CURRENT_DOW) /* Alarm time counter selection */ #define PDL_RTC_UPDATE_ALARM_HOUR 0x0080u #define PDL_RTC_UPDATE_ALARM_MINUTE 0x0100u #define PDL_RTC_UPDATE_ALARM_SECOND 0x0200u #define PDL_RTC_UPDATE_ALARM_TIME \ (PDL_RTC_UPDATE_ALARM_HOUR | PDL_RTC_UPDATE_ALARM_MINUTE | PDL_RTC_UPDATE_ALARM_SECOND) /* Alarm date counter selection */ #define PDL_RTC_UPDATE_ALARM_YEAR 0x0400u #define PDL_RTC_UPDATE_ALARM_MONTH 0x0800u #define PDL_RTC_UPDATE_ALARM_DAY 0x1000u #define PDL_RTC_UPDATE_ALARM_DOW 0x2000u #define PDL_RTC_UPDATE_ALARM_DATE \ (PDL_RTC_UPDATE_ALARM_YEAR | PDL_RTC_UPDATE_ALARM_MONTH | PDL_RTC_UPDATE_ALARM_DAY | PDL_RTC_UPDATE_ALARM_DOW) #endif /* End of file */
b98710e8b84e810ee53bc29b6dfb6008c5958107
fb0f9abad373cd635c2635bbdf491ea0f32da5ff
/src/native/external/libunwind/src/elf32.c
a70bb58f24dee1be72c153d5652922ac80b0bb0b
[ "MIT" ]
permissive
dotnet/runtime
f6fd23936752e202f8e4d6d94f3a4f3b0e77f58f
47bb554d298e1e34c4e3895d7731e18ad1c47d02
refs/heads/main
2023-09-03T15:35:46.493337
2023-09-03T08:13:23
2023-09-03T08:13:23
210,716,005
13,765
5,179
MIT
2023-09-14T21:58:52
2019-09-24T23:36:39
C#
UTF-8
C
false
false
71
c
elf32.c
#ifndef UNW_REMOTE_ONLY # include "elf32.h" # include "elfxx.c" #endif
b78f643b77cb81bb76be9f55f2c7e16ca9480a5f
e6a45bc8b39953308603a967272fe45e8063e450
/unliftio/cbits/time-osx.c
3141d1195c1035a7393cbcfbb7dec8d3fffe69a7
[ "MIT" ]
permissive
fpco/unliftio
b05466e5def52f761e621b2a269fce2d849e5168
95999d58064dbaec7704f5037e640af4788f9957
refs/heads/master
2023-06-21T21:28:49.294457
2023-06-16T04:22:24
2023-06-16T04:22:24
97,022,010
152
58
NOASSERTION
2023-06-16T04:22:29
2017-07-12T15:12:15
Haskell
UTF-8
C
false
false
207
c
time-osx.c
/* From https://github.com/bos/criterion */ #include <mach/mach.h> #include <time.h> void unliftio_inittime(void) { } double unliftio_gettime(void) { return clock_gettime_nsec_np(CLOCK_UPTIME_RAW); }
a42ddfcd7171d3837a48c37dc1c77b66f8971b3d
d38ed5f31d74a79a054ed55dd9123a8d615283b9
/third_party/libgit2/examples/checkout.c
9119d65036bac168b560d5662a5303888b760ea6
[ "LicenseRef-scancode-public-domain", "CC0-1.0", "Apache-2.0", "GPL-2.0-only", "GCC-exception-2.0", "LGPL-2.0-or-later", "Zlib", "LGPL-2.1-or-later", "LGPL-2.1-only", "ISC", "MIT" ]
permissive
chigraph/chigraph
8ff76a14337da29fa2b2a84d5c35f2eac4156c6e
6981bdd6763db54edfe284c1f7d223193584c69a
refs/heads/master
2022-12-21T13:46:57.273039
2022-12-17T18:41:19
2022-12-17T18:41:19
60,776,831
364
65
Apache-2.0
2019-12-13T14:46:43
2016-06-09T13:27:37
C++
UTF-8
C
false
false
6,565
c
checkout.c
/* * libgit2 "checkout" example - shows how to perform checkouts * * Written by the libgit2 contributors * * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain * worldwide. This software is distributed without any warranty. * * You should have received a copy of the CC0 Public Domain Dedication along * with this software. If not, see * <http://creativecommons.org/publicdomain/zero/1.0/>. */ #include "common.h" #include <assert.h> /* Define the printf format specifer to use for size_t output */ #if defined(_MSC_VER) || defined(__MINGW32__) # define PRIuZ "Iu" # define PRIxZ "Ix" # define PRIdZ "Id" #else # define PRIuZ "zu" # define PRIxZ "zx" # define PRIdZ "zd" #endif /** * The following example demonstrates how to do checkouts with libgit2. * * Recognized options are : * --force: force the checkout to happen. * --[no-]progress: show checkout progress, on by default. * --perf: show performance data. */ typedef struct { int force : 1; int progress : 1; int perf : 1; } checkout_options; static void print_usage(void) { fprintf(stderr, "usage: checkout [options] <branch>\n" "Options are :\n" " --git-dir: use the following git repository.\n" " --force: force the checkout.\n" " --[no-]progress: show checkout progress.\n" " --perf: show performance data.\n"); exit(1); } static void parse_options(const char **repo_path, checkout_options *opts, struct args_info *args) { if (args->argc <= 1) print_usage(); memset(opts, 0, sizeof(*opts)); /* Default values */ opts->progress = 1; for (args->pos = 1; args->pos < args->argc; ++args->pos) { const char *curr = args->argv[args->pos]; int bool_arg; if (strcmp(curr, "--") == 0) { break; } else if (!strcmp(curr, "--force")) { opts->force = 1; } else if (match_bool_arg(&bool_arg, args, "--progress")) { opts->progress = bool_arg; } else if (match_bool_arg(&bool_arg, args, "--perf")) { opts->perf = bool_arg; } else if (match_str_arg(repo_path, args, "--git-dir")) { continue; } else { break; } } } /** * This function is called to report progression, ie. it's called once with * a NULL path and the number of total steps, then for each subsequent path, * the current completed_step value. */ static void print_checkout_progress(const char *path, size_t completed_steps, size_t total_steps, void *payload) { (void)payload; if (path == NULL) { printf("checkout started: %" PRIuZ " steps\n", total_steps); } else { printf("checkout: %s %" PRIuZ "/%" PRIuZ "\n", path, completed_steps, total_steps); } } /** * This function is called when the checkout completes, and is used to report the * number of syscalls performed. */ static void print_perf_data(const git_checkout_perfdata *perfdata, void *payload) { (void)payload; printf("perf: stat: %" PRIuZ " mkdir: %" PRIuZ " chmod: %" PRIuZ "\n", perfdata->stat_calls, perfdata->mkdir_calls, perfdata->chmod_calls); } /** * This is the main "checkout <branch>" function, responsible for performing * a branch-based checkout. */ static int perform_checkout_ref(git_repository *repo, git_annotated_commit *target, checkout_options *opts) { git_checkout_options checkout_opts = GIT_CHECKOUT_OPTIONS_INIT; git_commit *target_commit = NULL; int err; /** Setup our checkout options from the parsed options */ checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE; if (opts->force) checkout_opts.checkout_strategy = GIT_CHECKOUT_FORCE; if (opts->progress) checkout_opts.progress_cb = print_checkout_progress; if (opts->perf) checkout_opts.perfdata_cb = print_perf_data; /** Grab the commit we're interested to move to */ err = git_commit_lookup(&target_commit, repo, git_annotated_commit_id(target)); if (err != 0) { fprintf(stderr, "failed to lookup commit: %s\n", git_error_last()->message); goto cleanup; } /** * Perform the checkout so the workdir corresponds to what target_commit * contains. * * Note that it's okay to pass a git_commit here, because it will be * peeled to a tree. */ err = git_checkout_tree(repo, (const git_object *)target_commit, &checkout_opts); if (err != 0) { fprintf(stderr, "failed to checkout tree: %s\n", git_error_last()->message); goto cleanup; } /** * Now that the checkout has completed, we have to update HEAD. * * Depending on the "origin" of target (ie. it's an OID or a branch name), * we might need to detach HEAD. */ if (git_annotated_commit_ref(target)) { err = git_repository_set_head(repo, git_annotated_commit_ref(target)); } else { err = git_repository_set_head_detached_from_annotated(repo, target); } if (err != 0) { fprintf(stderr, "failed to update HEAD reference: %s\n", git_error_last()->message); goto cleanup; } cleanup: git_commit_free(target_commit); return err; } /** That example's entry point */ int main(int argc, char **argv) { git_repository *repo = NULL; struct args_info args = ARGS_INFO_INIT; checkout_options opts; git_repository_state_t state; git_annotated_commit *checkout_target = NULL; int err = 0; const char *path = "."; /** Parse our command line options */ parse_options(&path, &opts, &args); /** Initialize the library */ err = git_libgit2_init(); if (!err) check_lg2(err, "Failed to initialize libgit2", NULL); /** Open the repository corresponding to the options */ check_lg2(git_repository_open_ext(&repo, path, 0, NULL), "Could not open repository", NULL); /** Make sure we're not about to checkout while something else is going on */ state = git_repository_state(repo); if (state != GIT_REPOSITORY_STATE_NONE) { fprintf(stderr, "repository is in unexpected state %d\n", state); goto cleanup; } if (args.pos >= args.argc) { fprintf(stderr, "unhandled\n"); err = -1; goto cleanup; } else if (strcmp("--", args.argv[args.pos])) { /** * Try to checkout the given path */ fprintf(stderr, "unhandled path-based checkout\n"); err = 1; goto cleanup; } else { /** * Try to resolve a "refish" argument to a target libgit2 can use */ err = resolve_refish(&checkout_target, repo, args.argv[args.pos]); if (err != 0) { fprintf(stderr, "failed to resolve %s: %s\n", args.argv[args.pos], git_error_last()->message); goto cleanup; } err = perform_checkout_ref(repo, checkout_target, &opts); } cleanup: git_annotated_commit_free(checkout_target); git_repository_free(repo); git_libgit2_shutdown(); return err; }
34069b408b065df26a611630c4eded48725ff6cb
336d3942e52ba91604d479e590a1e35d6d7c14a4
/deps/jemalloc/include/jemalloc/internal/log.h
6420858635448850298c5269883ba16cd5a2ef46
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
redis/redis
8fb932a09677ed8854c94d81c941655eceda2138
e792653753dc62b5a00822121e585511542a024b
refs/heads/unstable
2023-08-29T14:53:21.757052
2023-08-27T08:42:55
2023-08-27T08:42:55
156,018
19,822
6,754
BSD-3-Clause
2023-09-14T18:06:48
2009-03-21T22:32:25
C
UTF-8
C
false
false
3,754
h
log.h
#ifndef JEMALLOC_INTERNAL_LOG_H #define JEMALLOC_INTERNAL_LOG_H #include "jemalloc/internal/atomic.h" #include "jemalloc/internal/malloc_io.h" #include "jemalloc/internal/mutex.h" #ifdef JEMALLOC_LOG # define JEMALLOC_LOG_VAR_BUFSIZE 1000 #else # define JEMALLOC_LOG_VAR_BUFSIZE 1 #endif #define JEMALLOC_LOG_BUFSIZE 4096 /* * The log malloc_conf option is a '|'-delimited list of log_var name segments * which should be logged. The names are themselves hierarchical, with '.' as * the delimiter (a "segment" is just a prefix in the log namespace). So, if * you have: * * log("arena", "log msg for arena"); // 1 * log("arena.a", "log msg for arena.a"); // 2 * log("arena.b", "log msg for arena.b"); // 3 * log("arena.a.a", "log msg for arena.a.a"); // 4 * log("extent.a", "log msg for extent.a"); // 5 * log("extent.b", "log msg for extent.b"); // 6 * * And your malloc_conf option is "log=arena.a|extent", then lines 2, 4, 5, and * 6 will print at runtime. You can enable logging from all log vars by * writing "log=.". * * None of this should be regarded as a stable API for right now. It's intended * as a debugging interface, to let us keep around some of our printf-debugging * statements. */ extern char log_var_names[JEMALLOC_LOG_VAR_BUFSIZE]; extern atomic_b_t log_init_done; typedef struct log_var_s log_var_t; struct log_var_s { /* * Lowest bit is "inited", second lowest is "enabled". Putting them in * a single word lets us avoid any fences on weak architectures. */ atomic_u_t state; const char *name; }; #define LOG_NOT_INITIALIZED 0U #define LOG_INITIALIZED_NOT_ENABLED 1U #define LOG_ENABLED 2U #define LOG_VAR_INIT(name_str) {ATOMIC_INIT(LOG_NOT_INITIALIZED), name_str} /* * Returns the value we should assume for state (which is not necessarily * accurate; if logging is done before logging has finished initializing, then * we default to doing the safe thing by logging everything). */ unsigned log_var_update_state(log_var_t *log_var); /* We factor out the metadata management to allow us to test more easily. */ #define log_do_begin(log_var) \ if (config_log) { \ unsigned log_state = atomic_load_u(&(log_var).state, \ ATOMIC_RELAXED); \ if (unlikely(log_state == LOG_NOT_INITIALIZED)) { \ log_state = log_var_update_state(&(log_var)); \ assert(log_state != LOG_NOT_INITIALIZED); \ } \ if (log_state == LOG_ENABLED) { \ { /* User code executes here. */ #define log_do_end(log_var) \ } \ } \ } /* * MSVC has some preprocessor bugs in its expansion of __VA_ARGS__ during * preprocessing. To work around this, we take all potential extra arguments in * a var-args functions. Since a varargs macro needs at least one argument in * the "...", we accept the format string there, and require that the first * argument in this "..." is a const char *. */ static inline void log_impl_varargs(const char *name, ...) { char buf[JEMALLOC_LOG_BUFSIZE]; va_list ap; va_start(ap, name); const char *format = va_arg(ap, const char *); size_t dst_offset = 0; dst_offset += malloc_snprintf(buf, JEMALLOC_LOG_BUFSIZE, "%s: ", name); dst_offset += malloc_vsnprintf(buf + dst_offset, JEMALLOC_LOG_BUFSIZE - dst_offset, format, ap); dst_offset += malloc_snprintf(buf + dst_offset, JEMALLOC_LOG_BUFSIZE - dst_offset, "\n"); va_end(ap); malloc_write(buf); } /* Call as log("log.var.str", "format_string %d", arg_for_format_string); */ #define LOG(log_var_str, ...) \ do { \ static log_var_t log_var = LOG_VAR_INIT(log_var_str); \ log_do_begin(log_var) \ log_impl_varargs((log_var).name, __VA_ARGS__); \ log_do_end(log_var) \ } while (0) #endif /* JEMALLOC_INTERNAL_LOG_H */
72ca2b10fb8c4dfd3cb8e5ed2e62dc6c25998ac6
7be8e3636bf08ebdc6662879dc5afec548705537
/ios/Pods/Headers/Public/OpenSSL-Universal/openssl/dso.h
3cd9024f884eae17a653adc4def6b76834df4c6b
[ "MIT" ]
permissive
rdhox/react-native-smooth-picker
3c7384f1fed0e37f076361cce96071d01b70e209
ae9316c49512f7ed9824c5a3ad50cdf5e80fffa9
refs/heads/master
2023-01-08T16:59:40.709147
2021-07-03T14:13:21
2021-07-03T14:13:21
160,224,312
230
31
MIT
2023-01-06T01:46:04
2018-12-03T16:54:10
TypeScript
UTF-8
C
false
false
55
h
dso.h
../../../../OpenSSL-Universal/ios/include/openssl/dso.h
4c8e7fa42e98ae593d122f1cdb73525bb2e9e496
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
/PWGLF/totEt/macros/emEt/kaonCorr/SecondaryK0SJacSys.C
7de43e5241b75a73622e685c825640473916743b
[]
permissive
alisw/AliPhysics
91bf1bd01ab2af656a25ff10b25e618a63667d3e
5df28b2b415e78e81273b0d9bf5c1b99feda3348
refs/heads/master
2023-08-31T20:41:44.927176
2023-08-31T14:51:12
2023-08-31T14:51:12
61,661,378
129
1,150
BSD-3-Clause
2023-09-14T18:48:45
2016-06-21T19:31:29
C++
UTF-8
C
false
false
28,619
c
SecondaryK0SJacSys.C
#include <iostream> #include <fstream> #include "TMath.h" using namespace std; char myjunk[200]; void SetStyles(TH1 *histo, char *ytitle, char *xtitle, int color, int marker); void SetCanvasStyle(TCanvas *c); TLegend *GetLegend(float x1, float y1, float x2, float y2); Bool_t doLevy = kFALSE;//for debugging Bool_t doBlast = kTRUE;//for debugging void Draw(TH1 *data, TF1 *fLevy, TF1 *fBlast,int centbin,char *pid,char *name); void PrintLatex(int etCutNum, char *det,Bool_t effCorr); void PrintArrays(); // Centrality dependent factors int nbins = 10; // number of centrality bins Double_t etk0[2][10] = {{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}; Double_t etBlastk0[2][10] = {{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}; Double_t etBlastk02D[2][10] = {{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}; //et cuts for kaon energies //0.00, 0.050, 0.100, 0.150, 0.200 //0.250,0.300, 0.350, 0.400, 0.450 //0.500 //counting is integer and starts are 1 // 1 2 3 4 5 6PHOS 7EMCal 8 9 10 11Alt Double_t etCutOffs[11] = {0.00, 0.050, 0.100, 0.150, 0.200, 0.250,0.300, 0.350, 0.400, 0.450, 0.500}; Double_t kaonDeposits[2][10] = {{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}; //note: Not at all sensitive to which Jacobian is used, which also means the pT used doesn't really matter void SecondaryK0SJacSys(char *inputfilename = "../workingdir/rootFiles/LHC11a10a_bis/Et.ESD.simPbPb.EMCal.LHC11a10a_bis.Run139465.root", char *det = "EMCal", int whichjacobian = 1, int etCutNum = 7, Bool_t longRun = kFALSE, Bool_t effCorr = kFALSE){//Kaon collection: 0=K0S, -1=K-, +1=K+ Int_t kaonSelection = 1; gStyle->SetOptTitle(0); gStyle->SetOptStat(0); gStyle->SetOptFit(0); gStyle->SetLineWidth(3); gSystem->AddIncludePath("-I$ALICE_ROOT/include"); gROOT->ProcessLine(".L AliBWFunc.cxx+g"); gROOT->ProcessLine(".L AliBWTools.cxx+g"); gSystem->Load("libTree"); gSystem->Load("libVMC"); gSystem->Load("libMinuit"); gSystem->Load("libSTEERBase"); gSystem->Load("libESD"); gSystem->Load("libAOD"); gSystem->Load("libANALYSIS"); gSystem->Load("libANALYSISalice"); gSystem->Load("libCORRFW"); gSystem->Load("libPWGLFspectra"); gSystem->Load("libPWGTools"); gROOT->LoadMacro("macros/FitParticle.C+"); gROOT->LoadMacro("macros/GetLevidEtdptTimesPt.C"); //inputting kaon errors from http://arxiv.org/abs/1303.0737 //using average of K+ and K- Float_t kaonYield[10] = {109,90.5,68,46,30,18.2,10.2,5.1,2.3,0.855}; Float_t kaonStatErr[10] = {0.3,0.2,0.1,0.1,0.1, 0.06,0.04,0.03,0.02,0.01}; Float_t kaonSysErr[10] = {9,7,5,4,2, 1.5,0.8,0.4,0.2,0.09}; Float_t kaonTotErr[10] = {0,0,0,0,0, 0,0,0,0,0}; Float_t kaonFracErr[10] = {0,0,0,0,0, 0,0,0,0,0}; for(int i=0;i<10;i++){ kaonTotErr[i] = TMath::Sqrt(kaonSysErr[i]*kaonSysErr[i]+kaonStatErr[i]*kaonStatErr[i]); kaonFracErr[i] = kaonTotErr[i]/kaonYield[i]; //cout<<"bin "<<i<<" err "<<kaonFracErr[i]<<endl; } //centrality bin # (want to loop over 5 bins) int centbin = 0; // can change later TString detector = det; float etarange = 0.7; if(detector.Contains("EMC")){ etarange = 0.7; } else{etarange = 0.1;} //==================READ IN DATA========================== TFile *chargedkaonfile = new TFile("rootFiles/SPECTRA_COMB_20120709.root"); gROOT->LoadMacro("macros/k0sFinal.C"); // load data spectra TClonesArray histosk0 = GetK0S(); // get K0S histogram TCanvas *cChK = new TCanvas("cChK","ChargedKaons",700,500); //cChK->Divide(4,3); TH1D *histoskch[] = {NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL, NULL,NULL}; if(kaonSelection==1){ for(int i=0;i<=9;i++){ TH1D *histoTemp = (TH1D*) chargedkaonfile->Get(Form("cent%i_kaon_plus",i)); histoskch[i] = (TH1D*)histoTemp->Clone("cent%i_kaon_plus_clone"); if(i==0){ ((TH1D*)histoskch[i])->Draw(); } else{ ((TH1D*)histoskch[i])->Draw("same"); } //} } } else{ for(int i=0;i<=9;i++){ TH1D *histoTemp = (TH1D*) chargedkaonfile->Get(Form("cent%i_kaon_minus",i)); histoskch[i] = (TH1D*)histoTemp->Clone("cent%i_kaon_minus_clone"); if(i==0){ ((TH1D*)histoskch[i])->Draw(); } else{ ((TH1D*)histoskch[i])->Draw("same"); } //} } } TCanvas *cEmpty = new TCanvas("cEmpty","Empty",700,500); TString particleName = "K0"; TString particleLatex = "K^{0}_S"; if(kaonSelection==1){ particleName = "K+"; particleLatex = "K^{+}"; } if(kaonSelection==-1){ particleName = "K-"; particleLatex = "K^{-}"; } //==================FIT DATA========================== TF1 *funck0[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TF1 *funcBlastk0[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; // Blastwave fit to K0 pT? TF1 *funcetk0[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TF1 *funcetBlastk0[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; // Blastwave fit to K0 et TF1 *funcetBlastk02D[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TF1 *funcBlastk0Jac[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TH1 *histoSysUp[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; //K0S Clone histogram TF1 *funcBlastk0Up[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TH1 *histoSysLow[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; //K0S Clone histogram TF1 *funcBlastk0Low[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TH1 *histoSys[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; //K0S Clone histogram Float_t TInit = 0.1326; // initialize T parameter of Blastwave fit Float_t nInit = 6.6857; // initialize n parameter of Blastwave fit Float_t normInit = 20; // set normalization parameter of Blastwave fit AliBWTools *tools = new AliBWTools(); Double_t yield; // yield Double_t yieldError; // yield error Double_t partialYields[] = {0,0,0}; Double_t partialYieldErrors[] = {0,0,0}; Double_t Ameson = 0; Double_t Abaryon = -1; Double_t Aantibaryon = 1; //Systematic erros TF1 *funcBlastk0Par1[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; TF1 *funcBlastk0Par2[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; Double_t Par[10] = {0,0,0,0,0, 0,0,0,0,0}; Double_t ErrPar[10] = {0,0,0,0,0, 0,0,0,0,0}; // Genarate y TRandom* randy = new TRandom(); // integral of fit to data float fitINTEGRALdata[10] = {NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL}; if(kaonSelection!=0){//charged kaons nbins = 10; } // loop over centrality bins 0->5 and genarate histos shift up and down to Systematic errors for(int i=0;i<nbins;i++){ //for(int i=centbin;i<centbin+1;i++){ if(kaonSelection==0){ histoSys[i] = (TH1F*)histosk0[i]->Clone(Form("Sys%i",i)); histoSysLow[i] = (TH1F*)histosk0[i]->Clone(Form("SysLow%i",i)); histoSysUp[i] = (TH1F*)histosk0[i]->Clone(Form("SysUp%i",i)); } else{ histoSys[i] = (TH1D*)histoskch[i]->Clone(Form("Sys%i",i)); histoSysLow[i] = (TH1D*)histoskch[i]->Clone(Form("SysLow%i",i)); histoSysUp[i] = (TH1D*)histoskch[i]->Clone(Form("SysUp%i",i)); } float NbinsSys = histoSysUp[i]->GetXaxis()->GetNbins(); for(int x = 1; x<=NbinsSys; x++){ float BinContent = histoSysUp[i]->GetBinContent(x); float BinError = histoSysUp[i]->GetBinError(x); histoSysUp[i]->SetBinContent(x, BinContent+BinError); histoSysLow[i]->SetBinContent(x, BinContent-BinError); } funcBlastk0Up[i] = FitParticle((TH1*)histoSysUp[i],particleName.Data(),-1,-1,-1,0,0,3,-1,kFitBlastWave); funcBlastk0Low[i] = FitParticle((TH1*)histoSysLow[i],particleName.Data(),-1,-1,-1,0,0,3,-1,kFitBlastWave); funcBlastk0[i] = FitParticle((TH1*)histoSys[i],particleName.Data(),-1,-1,-1,0,0,3,-1,kFitBlastWave); if(kaonSelection==0){ funck0[i] = FitParticle((TH1F*)histosk0[i],particleName.Data(),TInit,normInit,nInit); if(!histosk0[i]) cerr<<"histosk0[i] does not exist!"<<endl; if(!funck0[i]) cerr<<"funck0[i] does not exist!"<<endl; Draw((TH1F*)histosk0[i],funck0[i],funcBlastk0[i],i,particleLatex.Data(),particleName.Data()); } else{ if(!histoskch[i]) cerr<<"Warning! Histogram does not exist!"<<endl; funck0[i] = FitParticle((TH1D*)histoskch[i],particleName.Data()); cerr<<"174"<<endl; Draw(histoskch[i],funck0[i],funcBlastk0[i],i,particleLatex.Data(),particleName.Data()); } } //==================THROWING RANDOM SPECTRA========================== // number of particles to put in histogram (will change later) int nParticles = 1e3; // for quick runs if(longRun) nParticles = 1e8; //for statistics // set parameters of setstyles int marker1 = 21; int marker2 = 24; int color1 = 2; int color2 = 4; int mixmarker = 22; int mixcolor = 3; TFile *f = TFile::Open(inputfilename, "READ"); TList *l = (TList*)f->Get("out1"); TH3F *fHistK0EDepositsVsPtInAcceptance; TH3F *fHistK0EDepositsVsPtOutOfAcceptance; if(effCorr){ fHistK0EDepositsVsPtInAcceptance =(TH3F*) l->FindObject("fHistK0EDepositsVsPtInAcceptance"); fHistK0EDepositsVsPtOutOfAcceptance =(TH3F*) l->FindObject("fHistK0EDepositsVsPtOutOfAcceptance"); } else{ fHistK0EDepositsVsPtInAcceptance =(TH3F*) l->FindObject("fHistK0EGammaVsPtInAcceptance"); fHistK0EDepositsVsPtOutOfAcceptance =(TH3F*) l->FindObject("fHistK0EGammaVsPtOutOfAcceptance"); } if(!fHistK0EDepositsVsPtOutOfAcceptance) cerr<<"Warning! did not find fHistK0EDepositsVsPtOutOfAcceptance"<<endl; if(!fHistK0EDepositsVsPtInAcceptance) cerr<<"Warning! did not find fHistK0EDepositsVsPtInAcceptance"<<endl; fHistK0EDepositsVsPtInAcceptance->GetZaxis()->SetRange(etCutNum,etCutNum); TH2D *my2DhistoK0S = (TH2D*) fHistK0EDepositsVsPtInAcceptance->Project3D("yx"); fHistK0EDepositsVsPtOutOfAcceptance->GetZaxis()->SetRange(etCutNum,etCutNum); TH2D *my2DhistoK0SOutOfAcceptance = (TH2D*) fHistK0EDepositsVsPtOutOfAcceptance->Project3D("yx"); TH1F *fHistSimKaonsInAcceptance = l->FindObject("fHistSimKaonsInAcceptance"); TH1F *fHistSimKaonsOutOfAcceptance = l->FindObject("fHistSimKaonsOutOfAcceptance"); TH1F *hRatioOutOfAccOverInAcc = fHistSimKaonsOutOfAcceptance->Clone("hRatioOutOfAccOverInAcc"); hRatioOutOfAccOverInAcc->Divide(fHistSimKaonsInAcceptance); //find number of bins of Caio's histogram int bincount = 0; bincount = my2DhistoK0S->GetXaxis()->GetNbins(); cout<<"Number of bins in histo: "<<bincount<<endl; // create array to hold histograms TClonesArray histoarrayK0S("TH1D",bincount); //(nbins); TClonesArray histoarrayK0SOutOfAcceptance("TH1D",bincount); //(nbins); //==================PROJECTIONS FOR INPUT ET DEPOSITS========================== //loop over bins in x to define projections (nbins) for(int i=0; i<bincount; i++){ // make projections of 2D histogram my2DhistoK0S histoarrayK0S[i] = (TH1D*)my2DhistoK0S->ProjectionY(Form("tmpK0S%i", i+1), i+1, i+1); histoarrayK0SOutOfAcceptance[i] = (TH1D*)my2DhistoK0SOutOfAcceptance->ProjectionY(Form("tmpK0SOutOfAcc%i", i+1), i+1, i+1); } for(int j=0;j<nbins;j++){ centbin = j; cout<<"Working on centrality bin "<<centbin<<endl; // creates histogram of spectra from thrown K0S TH1F *histoSpectrumK0S = new TH1F("histoSpectrumK0S","p_{T} spectrum of K^{0}_{S}",100,0.0,5.0); SetStyles(histoSpectrumK0S,"dN/dp_{T}","p_{T} (GeV)", color1, marker1); TH1F *histoETspectrumK0S = new TH1F("histoETspectrumK0S","transverse energy scaled of K^{0}_{S}",100,0.0,5.0); SetStyles(histoETspectrumK0S,"dN/dE_{T} calculated","E_{T} (GeV)", color2, marker2); TH1F *histoETCspectrumK0S = new TH1F("histoETCspectrumK0S","transverse energy scaled from data of K^{0}_{S}",100,0.0,5.0); SetStyles(histoETCspectrumK0S,"dN/dE_{T} from data","E_{T} (GeV)", mixcolor, mixmarker); // initialize totals float totET = 0; // total ET of K0S's calculated float totetcK0S = 0; // total ET of K0S's from data float testTOT = 0; float testTOTpt = 0; float pK0S = 0; // declare edges of first and last bin int mybin100 = my2DhistoK0S->GetXaxis()->FindBin(0.1001); int mybin0 = my2DhistoK0S->GetXaxis()->FindBin(0.0001); //Jacobian correction TH1F *histoSpectrumK0SJac; histoSpectrumK0SJac = (TH1F*)histoSys[centbin]->Clone("Jac"); SetStyles(histoSpectrumK0SJac,"dN/dp_{T}","p_{T} (GeV)", color1, marker1); TH1F *histoSpectrumK0SDivide = (TH1F*)histoSys[centbin]->Clone("JacDiv"); // TH1F *histoeta = new TH1F("histoeta","",100,-1,1); // SetStyles(histoeta,"N","#eta", color1, marker1); //Jacobian Correction float NbinsJac = histoSys[centbin]->GetXaxis()->GetNbins(); double mK0SJac = 0.497614; // mass of K0S (GeV) double nK0s = 1000; double deltay =0; double deltaeta = 0; TF1 *jacobian = new TF1("jacobian","[0]/TMath::Sqrt([1]*[1]*TMath::Power(TMath::CosH(x),2)+[0]*[0])",-etarange,etarange); jacobian->SetParameter(1,0.493); //here we're going to come up with a simple model that looks at a non-flat eta dependence. //if I assume that the pseudorapidity distribution has the shape y = m|x|+b, I have to normalize by the integral of that function after I take the jacobian so I can get the right weighting. That integral works out to be float m = +0.15; float b = 1; float renormalization = (m*etarange*etarange)/2+b*etarange; TF1 *jacobianReweighted = new TF1("jacobianReweighted","([2]*x+[3])*[4]*[0]/TMath::Sqrt([1]*[1]*TMath::Power(TMath::CosH(x),2)+[0]*[0])",-etarange,etarange); jacobianReweighted->SetParameter(1,0.493); jacobianReweighted->SetParameter(2,m); jacobianReweighted->SetParameter(3,b); jacobianReweighted->SetParameter(4,renormalization); //==================CAIO'S TOY MODEL FOR JACOBIAN========================== float overallAverageJac[5] = {0,0,0,0,0}; int totK0S = 0; for(int a = 1; a<NbinsJac; a ++){ int count = 0; double binContent = histoSys[centbin]->GetBinContent(a); double binError = histoSys[centbin]->GetBinError(a); jacobian->SetParameter(0,histoSys[centbin]->GetXaxis()->GetBinCenter(a)); float averageJac = jacobian->Integral(-etarange,etarange) / (2*etarange); jacobian->SetParameter(0,histoSys[centbin]->GetXaxis()->GetBinLowEdge(a)); float lowJac = jacobian->Integral(-etarange,etarange) / (2*etarange); jacobian->SetParameter(0,histoSys[centbin]->GetXaxis()->GetBinLowEdge(a+1)); float highJac = jacobian->Integral(-etarange,etarange) / (2*etarange); float eta0Jac = jacobian->Eval(0.0); jacobianReweighted->SetParameter(0,histoSys[centbin]->GetXaxis()->GetBinCenter(a)); float altJac = jacobianReweighted->Integral(-etarange,etarange); double correc =1; double mult = (binContent*correc)*deltay*deltaeta; float scale = averageJac; switch(whichjacobian){ case 1: scale = averageJac; case 2: scale = lowJac; case 3: scale = highJac; case 4: scale = eta0Jac; case 5: scale = altJac; } histoSpectrumK0SJac->SetBinContent(a,scale*binContent); histoSpectrumK0SJac->SetBinError(a,scale*binError); totK0S += binContent; overallAverageJac[0] += averageJac*binContent; overallAverageJac[1] += lowJac*binContent; overallAverageJac[2] += highJac*binContent; overallAverageJac[3] += eta0Jac*binContent; overallAverageJac[4] += altJac*binContent; } cEmpty->cd(); histoSys[centbin]->Draw(); histoSpectrumK0SJac->Draw("same"); cEmpty->SaveAs(Form("/tmp/KaonCut%i%s.png",etCutNum,det)); float minJacobian = overallAverageJac[0]/totK0S; float maxJacobian = overallAverageJac[0]/totK0S; cout<<"Average jacobians: "; for(int i=0;i<=3;i++){ cout<<" "<< overallAverageJac[i]/totK0S; if(minJacobian>overallAverageJac[i]/totK0S) minJacobian = overallAverageJac[i]/totK0S; if(maxJacobian<overallAverageJac[i]/totK0S) maxJacobian = overallAverageJac[i]/totK0S; } cout<<endl; float errJacobian = (maxJacobian-minJacobian)/2.0; float meanJacobian = (maxJacobian+minJacobian)/2.0; cout<<"Jacobian with error "<<meanJacobian<<" +/- "<<errJacobian<<endl; cEmpty->cd(); funcBlastk0Jac[centbin] = FitParticle(histoSpectrumK0SJac,"K0",-1,-1,-1,0,0,3,-1,kFitBlastWave); funcBlastk0[centbin]->Draw("same"); // gets integral in input K0S histograms for different centrality bins fitINTEGRALdata[centbin] = histoSpectrumK0SJac->Integral("width"); cout<<"integral of fit for centrality bin "<<centbin<<": "<<fitINTEGRALdata[centbin]<<endl; cout<<funcBlastk0Jac[centbin]->Integral(0.0,100.0)<<endl; //==================END CAIO'S TOY MODEL FOR JACOBIAN========================== //==================THROWING RANDOM K0S========================== float totetcK0SOutOfAcc = 0; float totetcK0SOutOfAccCorr = 0; float avgCorrOutOfAcc = 0; //THROW random K0S particle for(int i=0; i<nParticles; i++){ float mK0S = 0.497614; // mass of K0S (GeV) //You can change funBlastk0 to funBlastk0up or funBlastk0low for systematica error analysis float ptK0S = funcBlastk0Jac[centbin]->GetRandom(); // array? centbin =1 histoSpectrumK0S->Fill(ptK0S); // ******************************************* float etK0S = sqrt(ptK0S*ptK0S + mK0S*mK0S); // calculate transverse energy of K0S histoETspectrumK0S->Fill(etK0S); totET += etK0S; int mybinK0S = my2DhistoK0S->GetXaxis()->FindBin(ptK0S); int xbins = my2DhistoK0S->GetNbinsX(); float scaleForOutOfAcc = hRatioOutOfAccOverInAcc->GetBinContent(hRatioOutOfAccOverInAcc->FindBin(ptK0S)); //cout<<"Scale for out of acc "<<scaleForOutOfAcc<<endl; float etcK0S = 0; float etcK0SOutOfAcc = 0; // get ET projection of K0S and sum if(mybinK0S>0 && mybinK0S<=bincount){ //nbins // then this is in our range etcK0S = ((TH1D*)histoarrayK0S.At(mybinK0S-1))->GetRandom(); etcK0SOutOfAcc = ((TH1D*)histoarrayK0SOutOfAcceptance.At(mybinK0S-1))->GetRandom(); histoETCspectrumK0S->Fill(etcK0S); //here we deal with a problem. The get random function gets confused for zeros. It gives a small but non-zero value. But we can never have a deposit less than the minimum energy! //this doesn't mess up the kaons in the if(etCutNum>0 && etK0S<etCutOffs[etCutNum-1]){etK0S = 0.0;} if(etCutNum>0 && etcK0SOutOfAcc<etCutOffs[etCutNum-1]){etcK0SOutOfAcc = 0.0;} //if(etcK0SOutOfAcc>0){cout<<"et dep "<<etcK0SOutOfAcc<<" scale "<<scaleForOutOfAcc<<" pT "<<ptK0S<<endl;} //else{cout<<"No energy deposited"<<endl;} //else{cout<<"deposit is not small "<<etcK0SOutOfAcc<<endl;} } else{cerr<<"Did not find pt bin!"<<endl;} // this should never be reached totetcK0S += etcK0S; totetcK0SOutOfAccCorr += etcK0SOutOfAcc*scaleForOutOfAcc; //if(etcK0SOutOfAcc>1e-3) cout<<"Deposit is not small "<<etcK0SOutOfAcc<<" corr "<<scaleForOutOfAcc<<" product "<<totetcK0SOutOfAccCorr<<" total "<<endl; totetcK0SOutOfAcc +=etcK0SOutOfAcc; avgCorrOutOfAcc += scaleForOutOfAcc; } // print Calculated and Data projection values of scaled Et for K0S cout<<"Total ET observed (before renormalization): "<<(totetcK0S)<<endl;//Total ET observed cout<<"Total possible energy (before renormalization): "<<totET<<endl; cout<<"Average ET observed (simple): "<<(totetcK0S)/nParticles<<endl; //cout<<"Average ET observed out of acceptance (simple): "<<(totetcK0SOutOfAcc)/nParticles<<endl; //cout<<"Average corr for out of acc (simple): "<<(avgCorrOutOfAcc)/nParticles<<endl; //cout<<"ET observed out of acceptance corr (simple): "<<(totetcK0SOutOfAccCorr)<<endl; cout<<"Average ET observed out of acceptance corr (simple): "<<(totetcK0SOutOfAccCorr)/nParticles<<endl; //Estimating the difference between the number of particles in |eta|<0.5 and our eta range //assume the distribution of particles is approximately N=m*|eta|+b //if N(eta=0) = 1, b=1 //The percentage drop/increase in eta over one unit is m //The integral from 0-0.5 is m = 0.15; b = 1; float etaspectrameas = 0.5; float integralSpectraMeas = m*etaspectrameas*etaspectrameas/2+b*etaspectrameas; //and the integral over our range is: float integralMeasHigh = m*etarange*etarange/2+b*etarange; m = -0.15; float integralMeasLow = m*etarange*etarange/2+b*etarange; float etaRangeWeightMean = (integralMeasHigh/integralSpectraMeas+integralMeasLow/integralSpectraMeas)/2.0; float etaRangeWeightErr = (integralMeasHigh/integralSpectraMeas-integralMeasLow/integralSpectraMeas)/2.0; //cout<<" range high "<< integralMeasHigh/integralSpectraMeas<< " range low "<< integralMeasLow/integralSpectraMeas<<endl; //cout<<"Eta range scale: "<<etaRangeWeightMean<<" +/- "<<etaRangeWeightErr<<endl; //getting the final ET: //multiply by the dN/dy from the spectra paper (with error) //scale by Jacobian with the error on the Jacobian (with error) //multiply by the 4 kaon species //add an error for the fact that we need to extrapolate to our eta range float scale = 4*kaonYield[centbin]*meanJacobian*etaRangeWeightMean; float meanETperkaon = (totetcK0S+totetcK0SOutOfAccCorr)/nParticles; float meanETperkaonInAcc = (totetcK0S)/nParticles; float meanETperkaonOutOfAcc = (totetcK0SOutOfAccCorr)/nParticles; //now we're going to allow the ratio of kaons in and out of acceptance to vary by another 20% float fracerrFromInOutVariance = 0.2*meanETperkaonOutOfAcc/(meanETperkaonInAcc+meanETperkaonOutOfAcc); float fracerr = TMath::Sqrt(TMath::Power(kaonFracErr[centbin],2)+TMath::Power(errJacobian/meanJacobian,2)+TMath::Power(etaRangeWeightErr/etaRangeWeightMean,2)); float fracerrTotal = TMath::Sqrt(TMath::Power(kaonFracErr[centbin],2)+TMath::Power(errJacobian/meanJacobian,2)+TMath::Power(etaRangeWeightErr/etaRangeWeightMean,2)+TMath::Power(fracerrFromInOutVariance,2)); cout<<"Errors : Yield: "<<kaonFracErr[centbin]<<" Jacobian "<<errJacobian/meanJacobian<<" eta range "<<etaRangeWeightErr/etaRangeWeightMean<<" InOutVariance "<<fracerrFromInOutVariance<<endl; cout<<"Total ET deposited in acc: "<<meanETperkaonInAcc*scale<<" +/- "<<meanETperkaonInAcc*fracerr*scale<<endl; cout<<"Total ET deposited out of acc: "<<meanETperkaonOutOfAcc*scale<<" +/- "<<meanETperkaonOutOfAcc*fracerr*scale<<endl; cout<<"Total ET deposited: "<<meanETperkaon*scale<<" +/- "<<meanETperkaon*fracerrTotal*scale<<endl; kaonDeposits[0][centbin] = meanETperkaon*scale; kaonDeposits[1][centbin] = meanETperkaon*scale*fracerrTotal; delete histoSpectrumK0S; delete histoETspectrumK0S; delete histoETCspectrumK0S; delete histoSpectrumK0SJac; delete histoSpectrumK0SDivide; delete jacobian; delete jacobianReweighted; } PrintLatex(etCutNum,det,effCorr); } // function to define canvas characteristics globally void SetCanvasStyle(TCanvas *c){ c->SetBorderSize(0); c->SetFillColor(0); c->SetBorderMode(0); c->SetFrameFillColor(0); c->SetFrameBorderMode(0); c->SetTopMargin(0.0254237); // 0.04 c->SetRightMargin(0.0322581); // 0.04 c->SetLeftMargin(0.129032); // 0.181452 c->SetBottomMargin(0.134409); } // function to define characteristics globally of plots void SetStyles(TH1 *histo, char *ytitle, char *xtitle, int color, int marker){ histo->Sumw2(); histo->GetYaxis()->SetTitle(ytitle); histo->GetXaxis()->SetTitle(xtitle); histo->SetMarkerColor(color); histo->SetLineColor(color); histo->SetMarkerStyle(marker); } TLegend *GetLegend(float x1, float y1, float x2, float y2){ TLegend *leg = new TLegend(x1,y1,x2,y2); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); leg->SetTextSize(0.0381356); return leg; } void Draw(TH1 *data, TF1 *fLevy, TF1 *fBlast, int centbin,char *pid,char *name){ TCanvas *canvas = new TCanvas("canvas","canvas",500,500); SetCanvasStyle(canvas); //canvas->SetLogy(); data->SetTitle("p_{T} spectra of K$^{0}_{S}$ centbin=%i"); data->GetYaxis()->SetTitle("1/2#pi p_{T} d^2N/dp_{T}dy"); data->GetXaxis()->SetTitle("p_{T} (GeV)"); data->GetXaxis()->SetTitleSize(0.05); data->GetYaxis()->SetTitleSize(0.05); data->GetXaxis()->SetRange(1,data->FindBin(3.5)); //data->SetMarkerStyle(20); data->Draw(); fLevy->Draw("same"); fBlast->Draw("same"); fLevy->SetLineColor(2); fBlast->SetLineColor(4); TLegend *legend = GetLegend(0.118952,0.120763,0.368952,0.271186); legend->AddEntry(data,Form("%s centrality bin %i",pid,centbin),"l"); legend->AddEntry(fLevy,"Levy Fit"); legend->AddEntry(fBlast,"BlastWave Fit"); legend->Draw(); canvas->SaveAs(Form("pics/%s%i.png",name,centbin)); delete canvas; } void PrintLatex(int etCutNum, char *det,Bool_t effCorr){ TString cutNumString = Form("%i",etCutNum); ofstream myfile; TString tag = ""; if(!effCorr){tag = "NoEffCorr";} TString tmpName = Form("datatablesKaonCut%i%s.tex",etCutNum,det); myfile.open(tmpName); cout<<"Creating "<<tmpName<<endl; myfile<<Form("%3.2f",etCutOffs[etCutNum-1]); myfile<<"& "; //myfile<<"K$^{0}_{S}$ "; for(int j=0;j<nbins;j++){ myfile<<Form("%3.1f $\\pm$ %3.1f",kaonDeposits[0][j],kaonDeposits[1][j]); if(j!=nbins-1) myfile<<"& "; } //myfile<<" & "; myfile<<"\\\\%data"<<endl; myfile<<endl<<endl; myfile.close(); cout<<"kaonCorr["<<nbins<<"] = {"; for(int j=0;j<nbins;j++){ cout<<kaonDeposits[0][j]; if(j!=nbins-1) cout<<","; } cout<<"};"<<endl; cout<<"kaonError["<<nbins<<"] = {"; for(int j=0;j<nbins;j++){ cout<<kaonDeposits[1][j]; if(j!=nbins-1) cout<<","; } cout<<"};"<<endl; cerr<<"I got here 587"<<endl; ofstream myfile2; cerr<<"I got here 589"<<endl; cerr<<"cut num "<<etCutNum<<" string "<<cutNumString<<endl; TString textfilename2 = Form("KaonCut%i%s%s.dat",etCutNum,det,tag.Data()); //TString textfilename2 = "Kaons"+det+Form("%i",etCutNum)+".dat"; cerr<<"I got here 590"<<endl; cout<<"Creating "<<textfilename2<<endl; myfile2.open (textfilename2.Data()); for(int j=0;j<nbins;j++){ myfile2<<Form("%2.3f %2.3f",kaonDeposits[0][j],kaonDeposits[1][j])<<endl; } myfile2.close(); // ofstream myfile3; // TString textfilename2 = Form("KaonCut%i%sShort.dat",etCutNum,det); // //TString textfilename = "Kaons"+det+Form("CutNum%i",etCutNum)+"Short.dat"; // cout<<"Creating "<<textfilename<<endl; // myfile3.open (textfilename.Data()); // int startbin = 0; // for(int j=0;j<10;j++){ // float mean = 0; // float err = 0; // if(j>1){ // startbin+=2; // mean = (kaonDeposits[0][startbin]+kaonDeposits[0][startbin+1])/2.0; // err = (kaonDeposits[1][startbin]+kaonDeposits[1][startbin+1])/2.0; // } // else{ // mean = kaonDeposits[0][startbin]; // err = kaonDeposits[1][startbin]; // startbin++; // } // myfile3<<Form("%2.3f %2.3f",kaonDeposits[0][j],kaonDeposits[1][j])<<endl; // } // myfile3.close(); } void PrintArrays(){ ofstream myfile; myfile.open("arraysv0.dat"); myfile<<"etk0[2][10] = {"; for(int i=0;i<2;i++){ myfile<<"{"; for(int j=0;j<nbins;j++){ myfile<<etk0[i][j]; if(j<nbins-1) myfile<<","; } myfile<<"}"; if(i<1) myfile<<","; } myfile<<"};"<<endl; myfile<<endl<<endl; myfile<<"etBlastk0[2][10] = {"; for(int i=0;i<2;i++){ myfile<<"{"; for(int j=0;j<nbins;j++){ myfile<<etBlastk0[i][j]; if(j<nbins-1) myfile<<","; } myfile<<"}"; if(i<1) myfile<<","; } myfile<<"};"<<endl; myfile<<endl<<endl; myfile<<"etBlastk02D[2][10] = {"; for(int i=0;i<2;i++){ myfile<<"{"; for(int j=0;j<nbins;j++){ myfile<<etBlastk02D[i][j]; if(j<nbins-1) myfile<<","; } myfile<<"}"; if(i<1) myfile<<","; } myfile<<"};"<<endl; myfile.close(); }
ba51f0e45a870374371abb5ad51cb2b1930f5756
9eedaea06306b20520151321854f989a73c7daf8
/src/joystick/hidapi/SDL_hidapi_ps4.c
47ea29042b32fa699728cfe733bdce69495d2449
[ "Zlib" ]
permissive
libsdl-org/SDL
cf56bdc8a9e198e9735201674118c822d0e3edf3
8387fae698745969ce366c4de9bcc1b4a364a7dd
refs/heads/main
2023-09-04T06:58:34.316952
2023-09-03T15:11:13
2023-09-03T15:11:13
330,008,801
6,912
1,605
Zlib
2023-09-13T19:12:26
2021-01-15T19:55:54
C
UTF-8
C
false
false
48,566
c
SDL_hidapi_ps4.c
/* Simple DirectMedia Layer Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /* This driver supports both simplified reports and the extended input reports enabled by Steam. Code and logic contributed by Valve Corporation under the SDL zlib license. */ #include "SDL_internal.h" #ifdef SDL_JOYSTICK_HIDAPI #include "../../SDL_hints_c.h" #include "../SDL_sysjoystick.h" #include "SDL_hidapijoystick_c.h" #include "SDL_hidapi_rumble.h" #ifdef SDL_JOYSTICK_HIDAPI_PS4 /* Define this if you want to log all packets from the controller */ #if 0 #define DEBUG_PS4_PROTOCOL #endif /* Define this if you want to log calibration data */ #if 0 #define DEBUG_PS4_CALIBRATION #endif #define BLUETOOTH_DISCONNECT_TIMEOUT_MS 500 #define LOAD16(A, B) (Sint16)((Uint16)(A) | (((Uint16)(B)) << 8)) #define LOAD32(A, B, C, D) ((((Uint32)(A)) << 0) | \ (((Uint32)(B)) << 8) | \ (((Uint32)(C)) << 16) | \ (((Uint32)(D)) << 24)) typedef enum { k_EPS4ReportIdUsbState = 1, k_EPS4ReportIdUsbEffects = 5, k_EPS4ReportIdBluetoothState1 = 17, k_EPS4ReportIdBluetoothState2 = 18, k_EPS4ReportIdBluetoothState3 = 19, k_EPS4ReportIdBluetoothState4 = 20, k_EPS4ReportIdBluetoothState5 = 21, k_EPS4ReportIdBluetoothState6 = 22, k_EPS4ReportIdBluetoothState7 = 23, k_EPS4ReportIdBluetoothState8 = 24, k_EPS4ReportIdBluetoothState9 = 25, k_EPS4ReportIdBluetoothEffects = 17, k_EPS4ReportIdDisconnectMessage = 226, } EPS4ReportId; typedef enum { k_ePS4FeatureReportIdGyroCalibration_USB = 0x02, k_ePS4FeatureReportIdCapabilities = 0x03, k_ePS4FeatureReportIdGyroCalibration_BT = 0x05, k_ePS4FeatureReportIdSerialNumber = 0x12, } EPS4FeatureReportID; typedef struct { Uint8 ucLeftJoystickX; Uint8 ucLeftJoystickY; Uint8 ucRightJoystickX; Uint8 ucRightJoystickY; Uint8 rgucButtonsHatAndCounter[3]; Uint8 ucTriggerLeft; Uint8 ucTriggerRight; Uint8 rgucTimestamp[2]; Uint8 _rgucPad0[1]; Uint8 rgucGyroX[2]; Uint8 rgucGyroY[2]; Uint8 rgucGyroZ[2]; Uint8 rgucAccelX[2]; Uint8 rgucAccelY[2]; Uint8 rgucAccelZ[2]; Uint8 _rgucPad1[5]; Uint8 ucBatteryLevel; Uint8 _rgucPad2[4]; Uint8 ucTouchpadCounter1; Uint8 rgucTouchpadData1[3]; Uint8 ucTouchpadCounter2; Uint8 rgucTouchpadData2[3]; } PS4StatePacket_t; typedef struct { Uint8 ucRumbleRight; Uint8 ucRumbleLeft; Uint8 ucLedRed; Uint8 ucLedGreen; Uint8 ucLedBlue; Uint8 ucLedDelayOn; Uint8 ucLedDelayOff; Uint8 _rgucPad0[8]; Uint8 ucVolumeLeft; Uint8 ucVolumeRight; Uint8 ucVolumeMic; Uint8 ucVolumeSpeaker; } DS4EffectsState_t; typedef struct { Sint16 bias; float scale; } IMUCalibrationData; /* Rumble hint mode: * default: enhanced features are available if the controller is using enhanced reports * "0": enhanced features are never used * "1": enhanced features are always used * "auto": enhanced features are advertised to the application, but SDL doesn't touch the controller state unless the application explicitly requests it. */ typedef enum { PS4_RUMBLE_HINT_DEFAULT, PS4_RUMBLE_HINT_OFF, PS4_RUMBLE_HINT_ON, PS4_RUMBLE_HINT_AUTO } SDL_PS4_RumbleHintMode; typedef struct { SDL_HIDAPI_Device *device; SDL_Joystick *joystick; SDL_bool is_dongle; SDL_bool official_controller; SDL_bool sensors_supported; SDL_bool lightbar_supported; SDL_bool vibration_supported; SDL_bool touchpad_supported; SDL_bool effects_supported; SDL_PS4_RumbleHintMode rumble_hint; SDL_bool enhanced_reports; SDL_bool enhanced_mode; SDL_bool enhanced_mode_available; SDL_bool report_sensors; SDL_bool report_touchpad; SDL_bool report_battery; SDL_bool hardware_calibration; IMUCalibrationData calibration[6]; Uint64 last_packet; int player_index; Uint8 rumble_left; Uint8 rumble_right; SDL_bool color_set; Uint8 led_red; Uint8 led_green; Uint8 led_blue; Uint16 gyro_numerator; Uint16 gyro_denominator; Uint16 accel_numerator; Uint16 accel_denominator; Uint64 sensor_ticks; Uint16 last_tick; Uint16 valid_crc_packets; /* wrapping counter */ PS4StatePacket_t last_state; } SDL_DriverPS4_Context; static int HIDAPI_DriverPS4_InternalSendJoystickEffect(SDL_DriverPS4_Context *ctx, const void *effect, int size, SDL_bool application_usage); static void HIDAPI_DriverPS4_RegisterHints(SDL_HintCallback callback, void *userdata) { SDL_AddHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4, callback, userdata); } static void HIDAPI_DriverPS4_UnregisterHints(SDL_HintCallback callback, void *userdata) { SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4, callback, userdata); } static SDL_bool HIDAPI_DriverPS4_IsEnabled(void) { return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS4, SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI, SDL_HIDAPI_DEFAULT)); } static int ReadFeatureReport(SDL_hid_device *dev, Uint8 report_id, Uint8 *report, size_t length) { SDL_memset(report, 0, length); report[0] = report_id; return SDL_hid_get_feature_report(dev, report, length); } static SDL_bool HIDAPI_DriverPS4_IsSupportedDevice(SDL_HIDAPI_Device *device, const char *name, SDL_GamepadType type, Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, int interface_class, int interface_subclass, int interface_protocol) { Uint8 data[USB_PACKET_LENGTH]; int size; if (type == SDL_GAMEPAD_TYPE_PS4) { return SDL_TRUE; } if (HIDAPI_SupportsPlaystationDetection(vendor_id, product_id)) { if (device && device->dev) { size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdCapabilities, data, sizeof(data)); if (size == 48 && data[2] == 0x27) { /* Supported third party controller */ return SDL_TRUE; } else { return SDL_FALSE; } } else { /* Might be supported by this driver, enumerate and find out */ return SDL_TRUE; } } return SDL_FALSE; } static void SetLedsForPlayerIndex(DS4EffectsState_t *effects, int player_index) { /* This list is the same as what hid-sony.c uses in the Linux kernel. The first 4 values correspond to what the PS4 assigns. */ static const Uint8 colors[7][3] = { { 0x00, 0x00, 0x40 }, /* Blue */ { 0x40, 0x00, 0x00 }, /* Red */ { 0x00, 0x40, 0x00 }, /* Green */ { 0x20, 0x00, 0x20 }, /* Pink */ { 0x02, 0x01, 0x00 }, /* Orange */ { 0x00, 0x01, 0x01 }, /* Teal */ { 0x01, 0x01, 0x01 } /* White */ }; if (player_index >= 0) { player_index %= SDL_arraysize(colors); } else { player_index = 0; } effects->ucLedRed = colors[player_index][0]; effects->ucLedGreen = colors[player_index][1]; effects->ucLedBlue = colors[player_index][2]; } static SDL_bool ReadWiredSerial(SDL_HIDAPI_Device *device, char *serial, size_t serial_size) { Uint8 data[USB_PACKET_LENGTH]; int size; size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdSerialNumber, data, sizeof(data)); if (size >= 7 && (data[1] || data[2] || data[3] || data[4] || data[5] || data[6])) { (void)SDL_snprintf(serial, serial_size, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x", data[6], data[5], data[4], data[3], data[2], data[1]); return SDL_TRUE; } return SDL_FALSE; } static SDL_bool HIDAPI_DriverPS4_InitDevice(SDL_HIDAPI_Device *device) { SDL_DriverPS4_Context *ctx; Uint8 data[USB_PACKET_LENGTH]; int size; char serial[18]; SDL_JoystickType joystick_type = SDL_JOYSTICK_TYPE_GAMEPAD; ctx = (SDL_DriverPS4_Context *)SDL_calloc(1, sizeof(*ctx)); if (ctx == NULL) { SDL_OutOfMemory(); return SDL_FALSE; } ctx->device = device; ctx->gyro_numerator = 1; ctx->gyro_denominator = 16; ctx->accel_numerator = 1; ctx->accel_denominator = 8192; device->context = ctx; if (device->serial && SDL_strlen(device->serial) == 12) { int i, j; j = -1; for (i = 0; i < 12; i += 2) { j += 1; SDL_memcpy(&serial[j], &device->serial[i], 2); j += 2; serial[j] = '-'; } serial[j] = '\0'; } else { serial[0] = '\0'; } /* Check for type of connection */ ctx->is_dongle = (device->vendor_id == USB_VENDOR_SONY && device->product_id == USB_PRODUCT_SONY_DS4_DONGLE); if (ctx->is_dongle) { ReadWiredSerial(device, serial, sizeof(serial)); ctx->enhanced_reports = SDL_TRUE; } else if (device->vendor_id == USB_VENDOR_SONY && device->product_id == USB_PRODUCT_SONY_DS4_STRIKEPAD) { ctx->enhanced_reports = SDL_TRUE; } else if (device->vendor_id == USB_VENDOR_SONY) { if (device->is_bluetooth) { /* Read a report to see if we're in enhanced mode */ size = SDL_hid_read_timeout(device->dev, data, sizeof(data), 16); #ifdef DEBUG_PS4_PROTOCOL if (size > 0) { HIDAPI_DumpPacket("PS4 first packet: size = %d", data, size); } else { SDL_Log("PS4 first packet: size = %d\n", size); } #endif if (size > 0 && data[0] >= k_EPS4ReportIdBluetoothState1 && data[0] <= k_EPS4ReportIdBluetoothState9) { ctx->enhanced_reports = SDL_TRUE; } } else { ReadWiredSerial(device, serial, sizeof(serial)); ctx->enhanced_reports = SDL_TRUE; } } else { /* Third party controllers appear to all be wired */ ctx->enhanced_reports = SDL_TRUE; } if (device->vendor_id == USB_VENDOR_SONY) { ctx->official_controller = SDL_TRUE; ctx->sensors_supported = SDL_TRUE; ctx->lightbar_supported = SDL_TRUE; ctx->vibration_supported = SDL_TRUE; ctx->touchpad_supported = SDL_TRUE; } else { /* Third party controller capability request */ size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdCapabilities, data, sizeof(data)); /* Get the device capabilities */ if (size == 48 && data[2] == 0x27) { Uint8 capabilities = data[4]; Uint8 device_type = data[5]; Uint16 gyro_numerator = LOAD16(data[10], data[11]); Uint16 gyro_denominator = LOAD16(data[12], data[13]); Uint16 accel_numerator = LOAD16(data[14], data[15]); Uint16 accel_denominator = LOAD16(data[16], data[17]); #ifdef DEBUG_PS4_PROTOCOL HIDAPI_DumpPacket("PS4 capabilities: size = %d", data, size); #endif if (capabilities & 0x02) { ctx->sensors_supported = SDL_TRUE; } if (capabilities & 0x04) { ctx->lightbar_supported = SDL_TRUE; } if (capabilities & 0x08) { ctx->vibration_supported = SDL_TRUE; } if (capabilities & 0x40) { ctx->touchpad_supported = SDL_TRUE; } switch (device_type) { case 0x00: joystick_type = SDL_JOYSTICK_TYPE_GAMEPAD; break; case 0x01: joystick_type = SDL_JOYSTICK_TYPE_GUITAR; break; case 0x02: joystick_type = SDL_JOYSTICK_TYPE_DRUM_KIT; break; case 0x04: joystick_type = SDL_JOYSTICK_TYPE_DANCE_PAD; break; case 0x06: joystick_type = SDL_JOYSTICK_TYPE_WHEEL; break; case 0x07: joystick_type = SDL_JOYSTICK_TYPE_ARCADE_STICK; break; case 0x08: joystick_type = SDL_JOYSTICK_TYPE_FLIGHT_STICK; break; default: joystick_type = SDL_JOYSTICK_TYPE_UNKNOWN; break; } if (gyro_numerator && gyro_denominator) { ctx->gyro_numerator = gyro_numerator; ctx->gyro_denominator = gyro_denominator; } if (accel_numerator && accel_denominator) { ctx->accel_numerator = accel_numerator; ctx->accel_denominator = accel_denominator; } } else if (device->vendor_id == USB_VENDOR_RAZER) { /* The Razer Raiju doesn't respond to the detection protocol, but has a touchpad and vibration */ ctx->vibration_supported = SDL_TRUE; ctx->touchpad_supported = SDL_TRUE; } } ctx->effects_supported = (ctx->lightbar_supported || ctx->vibration_supported); if (device->vendor_id == USB_VENDOR_PDP && (device->product_id == USB_PRODUCT_VICTRIX_FS_PRO || device->product_id == USB_PRODUCT_VICTRIX_FS_PRO_V2)) { /* The Victrix FS Pro V2 reports that it has lightbar support, * but it doesn't respond to the effects packet, and will hang * on reboot if we send it. */ ctx->effects_supported = SDL_FALSE; } device->joystick_type = joystick_type; device->type = SDL_GAMEPAD_TYPE_PS4; if (ctx->official_controller) { HIDAPI_SetDeviceName(device, "PS4 Controller"); } HIDAPI_SetDeviceSerial(device, serial); /* Prefer the USB device over the Bluetooth device */ if (device->is_bluetooth) { if (HIDAPI_HasConnectedUSBDevice(device->serial)) { return SDL_TRUE; } } else { HIDAPI_DisconnectBluetoothDevice(device->serial); } if (ctx->is_dongle && serial[0] == '\0') { /* Not yet connected */ return SDL_TRUE; } return HIDAPI_JoystickConnected(device, NULL); } static int HIDAPI_DriverPS4_GetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id) { return -1; } static SDL_bool HIDAPI_DriverPS4_LoadOfficialCalibrationData(SDL_HIDAPI_Device *device) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; int i, tries, size; SDL_bool have_data = SDL_FALSE; Uint8 data[USB_PACKET_LENGTH]; if (!ctx->official_controller) { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("Not an official controller, ignoring calibration\n"); #endif return SDL_FALSE; } for (tries = 0; tries < 5; ++tries) { /* For Bluetooth controllers, this report switches them into advanced report mode */ size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdGyroCalibration_USB, data, sizeof(data)); if (size < 35) { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("Short read of calibration data: %d, ignoring calibration\n", size); #endif return SDL_FALSE; } if (device->is_bluetooth) { size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdGyroCalibration_BT, data, sizeof(data)); if (size < 35) { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("Short read of calibration data: %d, ignoring calibration\n", size); #endif return SDL_FALSE; } } /* In some cases this report returns all zeros. Usually immediately after connection with the PS4 Dongle */ for (i = 0; i < size; ++i) { if (data[i]) { have_data = SDL_TRUE; break; } } if (have_data) { break; } SDL_Delay(2); } if (have_data) { Sint16 sGyroPitchBias, sGyroYawBias, sGyroRollBias; Sint16 sGyroPitchPlus, sGyroPitchMinus; Sint16 sGyroYawPlus, sGyroYawMinus; Sint16 sGyroRollPlus, sGyroRollMinus; Sint16 sGyroSpeedPlus, sGyroSpeedMinus; Sint16 sAccXPlus, sAccXMinus; Sint16 sAccYPlus, sAccYMinus; Sint16 sAccZPlus, sAccZMinus; float flNumerator; float flDenominator; Sint16 sRange2g; #ifdef DEBUG_PS4_CALIBRATION HIDAPI_DumpPacket("PS4 calibration packet: size = %d", data, size); #endif sGyroPitchBias = LOAD16(data[1], data[2]); sGyroYawBias = LOAD16(data[3], data[4]); sGyroRollBias = LOAD16(data[5], data[6]); if (device->is_bluetooth || ctx->is_dongle) { sGyroPitchPlus = LOAD16(data[7], data[8]); sGyroYawPlus = LOAD16(data[9], data[10]); sGyroRollPlus = LOAD16(data[11], data[12]); sGyroPitchMinus = LOAD16(data[13], data[14]); sGyroYawMinus = LOAD16(data[15], data[16]); sGyroRollMinus = LOAD16(data[17], data[18]); } else { sGyroPitchPlus = LOAD16(data[7], data[8]); sGyroPitchMinus = LOAD16(data[9], data[10]); sGyroYawPlus = LOAD16(data[11], data[12]); sGyroYawMinus = LOAD16(data[13], data[14]); sGyroRollPlus = LOAD16(data[15], data[16]); sGyroRollMinus = LOAD16(data[17], data[18]); } sGyroSpeedPlus = LOAD16(data[19], data[20]); sGyroSpeedMinus = LOAD16(data[21], data[22]); sAccXPlus = LOAD16(data[23], data[24]); sAccXMinus = LOAD16(data[25], data[26]); sAccYPlus = LOAD16(data[27], data[28]); sAccYMinus = LOAD16(data[29], data[30]); sAccZPlus = LOAD16(data[31], data[32]); sAccZMinus = LOAD16(data[33], data[34]); flNumerator = (float)(sGyroSpeedPlus + sGyroSpeedMinus) * ctx->gyro_denominator / ctx->gyro_numerator; flDenominator = (float)(SDL_abs(sGyroPitchPlus - sGyroPitchBias) + SDL_abs(sGyroPitchMinus - sGyroPitchBias)); if (flDenominator != 0.0f) { ctx->calibration[0].bias = sGyroPitchBias; ctx->calibration[0].scale = flNumerator / flDenominator; } flDenominator = (float)(SDL_abs(sGyroYawPlus - sGyroYawBias) + SDL_abs(sGyroYawMinus - sGyroYawBias)); if (flDenominator != 0.0f) { ctx->calibration[1].bias = sGyroYawBias; ctx->calibration[1].scale = flNumerator / flDenominator; } flDenominator = (float)(SDL_abs(sGyroRollPlus - sGyroRollBias) + SDL_abs(sGyroRollMinus - sGyroRollBias)); if (flDenominator != 0.0f) { ctx->calibration[2].bias = sGyroRollBias; ctx->calibration[2].scale = flNumerator / flDenominator; } sRange2g = sAccXPlus - sAccXMinus; ctx->calibration[3].bias = sAccXPlus - sRange2g / 2; ctx->calibration[3].scale = (2.0f * ctx->accel_denominator / ctx->accel_numerator) / sRange2g; sRange2g = sAccYPlus - sAccYMinus; ctx->calibration[4].bias = sAccYPlus - sRange2g / 2; ctx->calibration[4].scale = (2.0f * ctx->accel_denominator / ctx->accel_numerator) / sRange2g; sRange2g = sAccZPlus - sAccZMinus; ctx->calibration[5].bias = sAccZPlus - sRange2g / 2; ctx->calibration[5].scale = (2.0f * ctx->accel_denominator / ctx->accel_numerator) / sRange2g; ctx->hardware_calibration = SDL_TRUE; for (i = 0; i < 6; ++i) { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("calibration[%d] bias = %d, sensitivity = %f\n", i, ctx->calibration[i].bias, ctx->calibration[i].scale); #endif /* Some controllers have a bad calibration */ if (SDL_abs(ctx->calibration[i].bias) > 1024 || SDL_fabs(1.0f - ctx->calibration[i].scale) > 0.5f) { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("invalid calibration, ignoring\n"); #endif ctx->hardware_calibration = SDL_FALSE; } } } else { #ifdef DEBUG_PS4_CALIBRATION SDL_Log("Calibration data not available\n"); #endif } return ctx->hardware_calibration; } static void HIDAPI_DriverPS4_LoadCalibrationData(SDL_HIDAPI_Device *device) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; int i; if (!HIDAPI_DriverPS4_LoadOfficialCalibrationData(device)) { for (i = 0; i < SDL_arraysize(ctx->calibration); ++i) { ctx->calibration[i].bias = 0; ctx->calibration[i].scale = 1.0f; } } /* Scale the raw data to the units expected by SDL */ for (i = 0; i < SDL_arraysize(ctx->calibration); ++i) { double scale = ctx->calibration[i].scale; if (i < 3) { scale *= ((double)ctx->gyro_numerator / ctx->gyro_denominator) * SDL_PI_D / 180.0; if (device->vendor_id == USB_VENDOR_SONY && device->product_id == USB_PRODUCT_SONY_DS4_STRIKEPAD) { /* The Armor-X Pro seems to only deliver half the rotation it should */ scale *= 2.0; } } else { scale *= ((double)ctx->accel_numerator / ctx->accel_denominator) * SDL_STANDARD_GRAVITY; if (device->vendor_id == USB_VENDOR_SONY && device->product_id == USB_PRODUCT_SONY_DS4_STRIKEPAD) { /* The Armor-X Pro seems to only deliver half the acceleration it should, * and in the opposite direction on all axes */ scale *= -2.0; } } ctx->calibration[i].scale = (float)scale; } } static float HIDAPI_DriverPS4_ApplyCalibrationData(SDL_DriverPS4_Context *ctx, int index, Sint16 value) { IMUCalibrationData *calibration = &ctx->calibration[index]; return ((float)value - calibration->bias) * calibration->scale; } static int HIDAPI_DriverPS4_UpdateEffects(SDL_DriverPS4_Context *ctx, SDL_bool application_usage) { DS4EffectsState_t effects; SDL_zero(effects); if (ctx->vibration_supported) { effects.ucRumbleLeft = ctx->rumble_left; effects.ucRumbleRight = ctx->rumble_right; } if (ctx->lightbar_supported) { /* Populate the LED state with the appropriate color from our lookup table */ if (ctx->color_set) { effects.ucLedRed = ctx->led_red; effects.ucLedGreen = ctx->led_green; effects.ucLedBlue = ctx->led_blue; } else { SetLedsForPlayerIndex(&effects, ctx->player_index); } } return HIDAPI_DriverPS4_InternalSendJoystickEffect(ctx, &effects, sizeof(effects), application_usage); } static void HIDAPI_DriverPS4_TickleBluetooth(SDL_HIDAPI_Device *device) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; if (ctx->enhanced_reports) { /* This is just a dummy packet that should have no effect, since we don't set the CRC */ Uint8 data[78]; SDL_zeroa(data); data[0] = k_EPS4ReportIdBluetoothEffects; data[1] = 0xC0; /* Magic value HID + CRC */ if (SDL_HIDAPI_LockRumble() == 0) { SDL_HIDAPI_SendRumbleAndUnlock(device, data, sizeof(data)); } } else { /* We can't even send an invalid effects packet, or it will put the controller in enhanced mode */ if (device->num_joysticks > 0) { HIDAPI_JoystickDisconnected(device, device->joysticks[0]); } } } static void HIDAPI_DriverPS4_SetEnhancedModeAvailable(SDL_DriverPS4_Context *ctx) { ctx->enhanced_mode_available = SDL_TRUE; if (ctx->touchpad_supported) { SDL_PrivateJoystickAddTouchpad(ctx->joystick, 2); ctx->report_touchpad = SDL_TRUE; } if (ctx->sensors_supported) { SDL_PrivateJoystickAddSensor(ctx->joystick, SDL_SENSOR_GYRO, 250.0f); SDL_PrivateJoystickAddSensor(ctx->joystick, SDL_SENSOR_ACCEL, 250.0f); } if (ctx->device->is_bluetooth && ctx->official_controller) { ctx->report_battery = SDL_TRUE; } } static void HIDAPI_DriverPS4_SetEnhancedMode(SDL_DriverPS4_Context *ctx) { if (!ctx->enhanced_mode_available) { HIDAPI_DriverPS4_SetEnhancedModeAvailable(ctx); } if (!ctx->enhanced_mode) { ctx->enhanced_mode = SDL_TRUE; /* Switch into enhanced report mode */ HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_FALSE); } } static void HIDAPI_DriverPS4_SetRumbleHintMode(SDL_DriverPS4_Context *ctx, SDL_PS4_RumbleHintMode rumble_hint) { switch (rumble_hint) { case PS4_RUMBLE_HINT_DEFAULT: if (ctx->enhanced_reports) { HIDAPI_DriverPS4_SetEnhancedMode(ctx); } break; case PS4_RUMBLE_HINT_OFF: /* Nothing to do, enhanced mode is a one-way ticket */ break; case PS4_RUMBLE_HINT_ON: HIDAPI_DriverPS4_SetEnhancedMode(ctx); break; case PS4_RUMBLE_HINT_AUTO: HIDAPI_DriverPS4_SetEnhancedModeAvailable(ctx); break; } ctx->rumble_hint = rumble_hint; } static void HIDAPI_DriverPS4_UpdateEnhancedModeOnEnhancedReport(SDL_DriverPS4_Context *ctx) { ctx->enhanced_reports = SDL_TRUE; if (ctx->rumble_hint == PS4_RUMBLE_HINT_DEFAULT) { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_ON); } } static void HIDAPI_DriverPS4_UpdateEnhancedModeOnApplicationUsage(SDL_DriverPS4_Context *ctx) { if (ctx->rumble_hint == PS4_RUMBLE_HINT_AUTO) { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_ON); } } static void SDLCALL SDL_PS4RumbleHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)userdata; if (!hint) { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_DEFAULT); } else if (SDL_strcasecmp(hint, "auto") == 0) { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_AUTO); } else if (SDL_GetStringBoolean(hint, SDL_FALSE)) { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_ON); } else { HIDAPI_DriverPS4_SetRumbleHintMode(ctx, PS4_RUMBLE_HINT_OFF); } } static void HIDAPI_DriverPS4_SetDevicePlayerIndex(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; if (!ctx->joystick) { return; } ctx->player_index = player_index; /* This will set the new LED state based on the new player index */ /* SDL automatically calls this, so it doesn't count as an application action to enable enhanced mode */ HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_FALSE); } static SDL_bool HIDAPI_DriverPS4_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; SDL_AssertJoysticksLocked(); ctx->joystick = joystick; ctx->last_packet = SDL_GetTicks(); ctx->report_sensors = SDL_FALSE; ctx->report_touchpad = SDL_FALSE; ctx->rumble_left = 0; ctx->rumble_right = 0; ctx->color_set = SDL_FALSE; SDL_zero(ctx->last_state); /* Initialize player index (needed for setting LEDs) */ ctx->player_index = SDL_GetJoystickPlayerIndex(joystick); /* Initialize the joystick capabilities */ joystick->nbuttons = ctx->touchpad_supported ? 16 : 15; joystick->naxes = SDL_GAMEPAD_AXIS_MAX; if (device->is_bluetooth) { /* We'll update this once we're in enhanced mode */ joystick->epowerlevel = SDL_JOYSTICK_POWER_UNKNOWN; } else { joystick->epowerlevel = SDL_JOYSTICK_POWER_WIRED; } SDL_AddHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, SDL_PS4RumbleHintChanged, ctx); return SDL_TRUE; } static int HIDAPI_DriverPS4_RumbleJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; if (!ctx->vibration_supported) { return SDL_Unsupported(); } ctx->rumble_left = (low_frequency_rumble >> 8); ctx->rumble_right = (high_frequency_rumble >> 8); return HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_TRUE); } static int HIDAPI_DriverPS4_RumbleJoystickTriggers(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 left_rumble, Uint16 right_rumble) { return SDL_Unsupported(); } static Uint32 HIDAPI_DriverPS4_GetJoystickCapabilities(SDL_HIDAPI_Device *device, SDL_Joystick *joystick) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; Uint32 result = 0; if (ctx->enhanced_mode_available) { if (ctx->lightbar_supported) { result |= SDL_JOYCAP_LED; } if (ctx->vibration_supported) { result |= SDL_JOYCAP_RUMBLE; } } return result; } static int HIDAPI_DriverPS4_SetJoystickLED(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint8 red, Uint8 green, Uint8 blue) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; if (!ctx->lightbar_supported) { return SDL_Unsupported(); } ctx->color_set = SDL_TRUE; ctx->led_red = red; ctx->led_green = green; ctx->led_blue = blue; return HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_TRUE); } static int HIDAPI_DriverPS4_InternalSendJoystickEffect(SDL_DriverPS4_Context *ctx, const void *effect, int size, SDL_bool application_usage) { Uint8 data[78]; int report_size, offset; if (!ctx->effects_supported) { /* We shouldn't be sending packets to this controller */ return SDL_Unsupported(); } if (!ctx->enhanced_mode) { if (application_usage) { HIDAPI_DriverPS4_UpdateEnhancedModeOnApplicationUsage(ctx); } if (!ctx->enhanced_mode) { /* We're not in enhanced mode, effects aren't allowed */ return SDL_Unsupported(); } } SDL_zeroa(data); if (ctx->device->is_bluetooth && ctx->official_controller) { data[0] = k_EPS4ReportIdBluetoothEffects; data[1] = 0xC0 | 0x04; /* Magic value HID + CRC, also sets interval to 4ms for samples */ data[3] = 0x03; /* 0x1 is rumble, 0x2 is lightbar, 0x4 is the blink interval */ report_size = 78; offset = 6; } else { data[0] = k_EPS4ReportIdUsbEffects; data[1] = 0x07; /* Magic value */ report_size = 32; offset = 4; } SDL_memcpy(&data[offset], effect, SDL_min((sizeof(data) - offset), (size_t)size)); if (ctx->device->is_bluetooth) { /* Bluetooth reports need a CRC at the end of the packet (at least on Linux) */ Uint8 ubHdr = 0xA2; /* hidp header is part of the CRC calculation */ Uint32 unCRC; unCRC = SDL_crc32(0, &ubHdr, 1); unCRC = SDL_crc32(unCRC, data, (size_t)(report_size - sizeof(unCRC))); SDL_memcpy(&data[report_size - sizeof(unCRC)], &unCRC, sizeof(unCRC)); } if (SDL_HIDAPI_SendRumble(ctx->device, data, report_size) != report_size) { return SDL_SetError("Couldn't send rumble packet"); } return 0; } static int HIDAPI_DriverPS4_SendJoystickEffect(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, const void *effect, int size) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; return HIDAPI_DriverPS4_InternalSendJoystickEffect(ctx, effect, size, SDL_TRUE); } static int HIDAPI_DriverPS4_SetJoystickSensorsEnabled(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, SDL_bool enabled) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; HIDAPI_DriverPS4_UpdateEnhancedModeOnApplicationUsage(ctx); if (!ctx->sensors_supported || (enabled && !ctx->enhanced_mode)) { return SDL_Unsupported(); } if (enabled) { HIDAPI_DriverPS4_LoadCalibrationData(device); } ctx->report_sensors = enabled; return 0; } static void HIDAPI_DriverPS4_HandleStatePacket(SDL_Joystick *joystick, SDL_hid_device *dev, SDL_DriverPS4_Context *ctx, PS4StatePacket_t *packet, int size) { static const float TOUCHPAD_SCALEX = 1.0f / 1920; static const float TOUCHPAD_SCALEY = 1.0f / 920; /* This is noted as being 944 resolution, but 920 feels better */ Sint16 axis; Uint8 touchpad_state; int touchpad_x, touchpad_y; Uint64 timestamp = SDL_GetTicksNS(); if (ctx->last_state.rgucButtonsHatAndCounter[0] != packet->rgucButtonsHatAndCounter[0]) { { Uint8 data = (packet->rgucButtonsHatAndCounter[0] >> 4); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_X, (data & 0x01) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_A, (data & 0x02) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_B, (data & 0x04) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_Y, (data & 0x08) ? SDL_PRESSED : SDL_RELEASED); } { Uint8 data = (packet->rgucButtonsHatAndCounter[0] & 0x0F); SDL_bool dpad_up = SDL_FALSE; SDL_bool dpad_down = SDL_FALSE; SDL_bool dpad_left = SDL_FALSE; SDL_bool dpad_right = SDL_FALSE; switch (data) { case 0: dpad_up = SDL_TRUE; break; case 1: dpad_up = SDL_TRUE; dpad_right = SDL_TRUE; break; case 2: dpad_right = SDL_TRUE; break; case 3: dpad_right = SDL_TRUE; dpad_down = SDL_TRUE; break; case 4: dpad_down = SDL_TRUE; break; case 5: dpad_left = SDL_TRUE; dpad_down = SDL_TRUE; break; case 6: dpad_left = SDL_TRUE; break; case 7: dpad_up = SDL_TRUE; dpad_left = SDL_TRUE; break; default: break; } SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_DPAD_DOWN, dpad_down); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_DPAD_UP, dpad_up); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_DPAD_RIGHT, dpad_right); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_DPAD_LEFT, dpad_left); } } if (ctx->last_state.rgucButtonsHatAndCounter[1] != packet->rgucButtonsHatAndCounter[1]) { Uint8 data = packet->rgucButtonsHatAndCounter[1]; SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_LEFT_SHOULDER, (data & 0x01) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_RIGHT_SHOULDER, (data & 0x02) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_BACK, (data & 0x10) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_START, (data & 0x20) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_LEFT_STICK, (data & 0x40) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_RIGHT_STICK, (data & 0x80) ? SDL_PRESSED : SDL_RELEASED); } /* Some fightsticks, ex: Victrix FS Pro will only this these digital trigger bits and not the analog values so this needs to run whenever the trigger is evaluated */ if (packet->rgucButtonsHatAndCounter[1] & 0x0C) { Uint8 data = packet->rgucButtonsHatAndCounter[1]; packet->ucTriggerLeft = (data & 0x04) && packet->ucTriggerLeft == 0 ? 255 : packet->ucTriggerLeft; packet->ucTriggerRight = (data & 0x08) && packet->ucTriggerRight == 0 ? 255 : packet->ucTriggerRight; } if (ctx->last_state.rgucButtonsHatAndCounter[2] != packet->rgucButtonsHatAndCounter[2]) { Uint8 data = (packet->rgucButtonsHatAndCounter[2] & 0x03); SDL_SendJoystickButton(timestamp, joystick, SDL_GAMEPAD_BUTTON_GUIDE, (data & 0x01) ? SDL_PRESSED : SDL_RELEASED); SDL_SendJoystickButton(timestamp, joystick, 15, (data & 0x02) ? SDL_PRESSED : SDL_RELEASED); } axis = ((int)packet->ucTriggerLeft * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_LEFT_TRIGGER, axis); axis = ((int)packet->ucTriggerRight * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_RIGHT_TRIGGER, axis); axis = ((int)packet->ucLeftJoystickX * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_LEFTX, axis); axis = ((int)packet->ucLeftJoystickY * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_LEFTY, axis); axis = ((int)packet->ucRightJoystickX * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_RIGHTX, axis); axis = ((int)packet->ucRightJoystickY * 257) - 32768; SDL_SendJoystickAxis(timestamp, joystick, SDL_GAMEPAD_AXIS_RIGHTY, axis); if (size > 9 && ctx->report_battery && ctx->enhanced_reports) { /* Battery level ranges from 0 to 10 */ int level = (packet->ucBatteryLevel & 0xF); if (level == 0) { SDL_SendJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_EMPTY); } else if (level <= 2) { SDL_SendJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_LOW); } else if (level <= 7) { SDL_SendJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_MEDIUM); } else { SDL_SendJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_FULL); } } if (size > 9 && ctx->report_touchpad && ctx->enhanced_reports) { touchpad_state = !(packet->ucTouchpadCounter1 & 0x80) ? SDL_PRESSED : SDL_RELEASED; touchpad_x = packet->rgucTouchpadData1[0] | (((int)packet->rgucTouchpadData1[1] & 0x0F) << 8); touchpad_y = (packet->rgucTouchpadData1[1] >> 4) | ((int)packet->rgucTouchpadData1[2] << 4); SDL_SendJoystickTouchpad(timestamp, joystick, 0, 0, touchpad_state, touchpad_x * TOUCHPAD_SCALEX, touchpad_y * TOUCHPAD_SCALEY, touchpad_state ? 1.0f : 0.0f); touchpad_state = !(packet->ucTouchpadCounter2 & 0x80) ? SDL_PRESSED : SDL_RELEASED; touchpad_x = packet->rgucTouchpadData2[0] | (((int)packet->rgucTouchpadData2[1] & 0x0F) << 8); touchpad_y = (packet->rgucTouchpadData2[1] >> 4) | ((int)packet->rgucTouchpadData2[2] << 4); SDL_SendJoystickTouchpad(timestamp, joystick, 0, 1, touchpad_state, touchpad_x * TOUCHPAD_SCALEX, touchpad_y * TOUCHPAD_SCALEY, touchpad_state ? 1.0f : 0.0f); } if (size > 9 && ctx->report_sensors) { Uint16 tick; Uint16 delta; Uint64 sensor_timestamp; float data[3]; tick = LOAD16(packet->rgucTimestamp[0], packet->rgucTimestamp[1]); if (ctx->last_tick < tick) { delta = (tick - ctx->last_tick); } else { delta = (SDL_MAX_UINT16 - ctx->last_tick + tick + 1); } ctx->sensor_ticks += delta; ctx->last_tick = tick; /* Sensor timestamp is in 5.33us units */ sensor_timestamp = (ctx->sensor_ticks * SDL_NS_PER_US * 16) / 3; data[0] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 0, LOAD16(packet->rgucGyroX[0], packet->rgucGyroX[1])); data[1] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 1, LOAD16(packet->rgucGyroY[0], packet->rgucGyroY[1])); data[2] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 2, LOAD16(packet->rgucGyroZ[0], packet->rgucGyroZ[1])); SDL_SendJoystickSensor(timestamp, joystick, SDL_SENSOR_GYRO, sensor_timestamp, data, 3); data[0] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 3, LOAD16(packet->rgucAccelX[0], packet->rgucAccelX[1])); data[1] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 4, LOAD16(packet->rgucAccelY[0], packet->rgucAccelY[1])); data[2] = HIDAPI_DriverPS4_ApplyCalibrationData(ctx, 5, LOAD16(packet->rgucAccelZ[0], packet->rgucAccelZ[1])); SDL_SendJoystickSensor(timestamp, joystick, SDL_SENSOR_ACCEL, sensor_timestamp, data, 3); } SDL_memcpy(&ctx->last_state, packet, sizeof(ctx->last_state)); } static SDL_bool VerifyCRC(Uint8 *data, int size) { Uint8 ubHdr = 0xA1; /* hidp header is part of the CRC calculation */ Uint32 unCRC, unPacketCRC; Uint8 *packetCRC = data + size - sizeof(unPacketCRC); unCRC = SDL_crc32(0, &ubHdr, 1); unCRC = SDL_crc32(unCRC, data, (size_t)(size - sizeof(unCRC))); unPacketCRC = LOAD32(packetCRC[0], packetCRC[1], packetCRC[2], packetCRC[3]); return (unCRC == unPacketCRC) ? SDL_TRUE : SDL_FALSE; } static SDL_bool HIDAPI_DriverPS4_IsPacketValid(SDL_DriverPS4_Context *ctx, Uint8 *data, int size) { switch (data[0]) { case k_EPS4ReportIdUsbState: if (size == 10) { /* This is non-enhanced mode, this packet is fine */ return SDL_TRUE; } /* In the case of a DS4 USB dongle, bit[2] of byte 31 indicates if a DS4 is actually connected (indicated by '0'). * For non-dongle, this bit is always 0 (connected). * This is usually the ID over USB, but the DS4v2 that started shipping with the PS4 Slim will also send this * packet over BT with a size of 128 */ if (size >= 64 && !(data[31] & 0x04)) { return SDL_TRUE; } break; case k_EPS4ReportIdBluetoothState1: case k_EPS4ReportIdBluetoothState2: case k_EPS4ReportIdBluetoothState3: case k_EPS4ReportIdBluetoothState4: case k_EPS4ReportIdBluetoothState5: case k_EPS4ReportIdBluetoothState6: case k_EPS4ReportIdBluetoothState7: case k_EPS4ReportIdBluetoothState8: case k_EPS4ReportIdBluetoothState9: /* Bluetooth state packets have two additional bytes at the beginning, the first notes if HID data is present */ if (size >= 78 && (data[1] & 0x80)) { if (VerifyCRC(data, 78)) { ++ctx->valid_crc_packets; } else { if (ctx->valid_crc_packets > 0) { --ctx->valid_crc_packets; } if (ctx->valid_crc_packets >= 3) { /* We're generally getting valid CRC, but failed one */ return SDL_FALSE; } } return SDL_TRUE; } break; default: break; } return SDL_FALSE; } static SDL_bool HIDAPI_DriverPS4_UpdateDevice(SDL_HIDAPI_Device *device) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; SDL_Joystick *joystick = NULL; Uint8 data[USB_PACKET_LENGTH * 2]; int size; int packet_count = 0; Uint64 now = SDL_GetTicks(); if (device->num_joysticks > 0) { joystick = SDL_GetJoystickFromInstanceID(device->joysticks[0]); } while ((size = SDL_hid_read_timeout(device->dev, data, sizeof(data), 0)) > 0) { #ifdef DEBUG_PS4_PROTOCOL HIDAPI_DumpPacket("PS4 packet: size = %d", data, size); #endif if (!HIDAPI_DriverPS4_IsPacketValid(ctx, data, size)) { continue; } ++packet_count; ctx->last_packet = now; if (joystick == NULL) { continue; } switch (data[0]) { case k_EPS4ReportIdUsbState: HIDAPI_DriverPS4_HandleStatePacket(joystick, device->dev, ctx, (PS4StatePacket_t *)&data[1], size - 1); break; case k_EPS4ReportIdBluetoothState1: case k_EPS4ReportIdBluetoothState2: case k_EPS4ReportIdBluetoothState3: case k_EPS4ReportIdBluetoothState4: case k_EPS4ReportIdBluetoothState5: case k_EPS4ReportIdBluetoothState6: case k_EPS4ReportIdBluetoothState7: case k_EPS4ReportIdBluetoothState8: case k_EPS4ReportIdBluetoothState9: /* This is the extended report, we can enable effects now in default mode */ HIDAPI_DriverPS4_UpdateEnhancedModeOnEnhancedReport(ctx); /* Bluetooth state packets have two additional bytes at the beginning, the first notes if HID is present */ HIDAPI_DriverPS4_HandleStatePacket(joystick, device->dev, ctx, (PS4StatePacket_t *)&data[3], size - 3); break; default: #ifdef DEBUG_JOYSTICK SDL_Log("Unknown PS4 packet: 0x%.2x\n", data[0]); #endif break; } } if (device->is_bluetooth) { if (packet_count == 0) { /* Check to see if it looks like the device disconnected */ if (now >= (ctx->last_packet + BLUETOOTH_DISCONNECT_TIMEOUT_MS)) { /* Send an empty output report to tickle the Bluetooth stack */ HIDAPI_DriverPS4_TickleBluetooth(device); } } else { /* Reconnect the Bluetooth device once the USB device is gone */ if (device->num_joysticks == 0 && !HIDAPI_HasConnectedUSBDevice(device->serial)) { HIDAPI_JoystickConnected(device, NULL); } } } if (ctx->is_dongle) { if (packet_count == 0) { if (device->num_joysticks > 0) { /* Check to see if it looks like the device disconnected */ if (now >= (ctx->last_packet + BLUETOOTH_DISCONNECT_TIMEOUT_MS)) { HIDAPI_JoystickDisconnected(device, device->joysticks[0]); } } } else { if (device->num_joysticks == 0) { char serial[18]; size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdSerialNumber, data, sizeof(data)); if (size >= 7 && (data[1] || data[2] || data[3] || data[4] || data[5] || data[6])) { (void)SDL_snprintf(serial, sizeof(serial), "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x", data[6], data[5], data[4], data[3], data[2], data[1]); HIDAPI_SetDeviceSerial(device, serial); } HIDAPI_JoystickConnected(device, NULL); } } } if (size < 0 && device->num_joysticks > 0) { /* Read error, device is disconnected */ HIDAPI_JoystickDisconnected(device, device->joysticks[0]); } return size >= 0; } static void HIDAPI_DriverPS4_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick) { SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context; SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, SDL_PS4RumbleHintChanged, ctx); ctx->joystick = NULL; } static void HIDAPI_DriverPS4_FreeDevice(SDL_HIDAPI_Device *device) { } SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4 = { SDL_HINT_JOYSTICK_HIDAPI_PS4, SDL_TRUE, HIDAPI_DriverPS4_RegisterHints, HIDAPI_DriverPS4_UnregisterHints, HIDAPI_DriverPS4_IsEnabled, HIDAPI_DriverPS4_IsSupportedDevice, HIDAPI_DriverPS4_InitDevice, HIDAPI_DriverPS4_GetDevicePlayerIndex, HIDAPI_DriverPS4_SetDevicePlayerIndex, HIDAPI_DriverPS4_UpdateDevice, HIDAPI_DriverPS4_OpenJoystick, HIDAPI_DriverPS4_RumbleJoystick, HIDAPI_DriverPS4_RumbleJoystickTriggers, HIDAPI_DriverPS4_GetJoystickCapabilities, HIDAPI_DriverPS4_SetJoystickLED, HIDAPI_DriverPS4_SendJoystickEffect, HIDAPI_DriverPS4_SetJoystickSensorsEnabled, HIDAPI_DriverPS4_CloseJoystick, HIDAPI_DriverPS4_FreeDevice, }; #endif /* SDL_JOYSTICK_HIDAPI_PS4 */ #endif /* SDL_JOYSTICK_HIDAPI */
c0dafb79a24130bddb800b9ba1ade800cb595ce7
51de1ebe7fa09fb262e015fb454829987ed5fc83
/iothub_client/samples/iothub_client_sample_upload_to_blob_with_retry/iothub_client_sample_upload_to_blob_with_retry.c
5c9a456eef67927c925fd561ef6e18b1c31e8e7b
[ "MIT" ]
permissive
Azure/azure-iot-sdk-c
54bf46938f5b8089ba06081cb4d7967fa3a8f777
1f3d95b4dae09927ae4bbe479e52d48acef1f93c
refs/heads/main
2023-08-31T03:36:13.694208
2023-08-30T23:56:13
2023-08-30T23:56:13
70,934,373
629
902
NOASSERTION
2023-09-06T17:41:38
2016-10-14T17:54:57
C
UTF-8
C
false
false
8,944
c
iothub_client_sample_upload_to_blob_with_retry.c
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // CAVEAT: This sample is to demonstrate azure IoT client concepts only and is not a guide design principles or style // Checking of return codes and error values shall be omitted for brevity. Please practice sound engineering practices // when writing production code. // This sample is also uses a much more improved API for performing // Azure IoT Hub-backed Azure Storage Blob uploads by: // Explicitly getting a SAS token for the Blob storage (usable by external tools such as az_copy). // Using the the built-in Azure Storage Blob new upload client. // Showing how to retry blob upload per block (as opposed to the entire file). #include <stdio.h> #include <stdlib.h> /* This sample uses the _LL APIs of iothub_client for example purposes. That does not mean that HTTP only works with the _LL APIs. Simply changing the using the convenience layer (functions not having _LL) and removing calls to _DoWork will yield the same results. */ #include "iothub.h" #include "iothub_device_client.h" #include "azure_c_shared_utility/shared_util_options.h" #include "azure_c_shared_utility/threadapi.h" #include "iothub_message.h" #include "iothubtransportmqtt.h" #ifdef SET_TRUSTED_CERT_IN_SAMPLES #include "certs.h" #endif // SET_TRUSTED_CERT_IN_SAMPLES /*String containing Hostname, Device Id & Device Key in the format: */ /* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>" */ /* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessSignature=<device_sas_token>" */ static const char* connectionString = "[device connection string]"; /*Optional string with http proxy host and integer for http proxy port (Linux only) */ static const char* proxyHost = NULL; static int proxyPort = 0; static const char* azureStorageBlobPath = "subdir/hello_world_mb_with_retry.txt"; static const char* data_to_upload_format = "Hello World from iothub_client_sample_upload_to_blob_with_retry: %d\n"; static char data_to_upload[128]; #define SAMPLE_MAX_RETRY_COUNT 3 #define SAMPLE_RETRY_DELAY_MILLISECS 2000 int main(void) { IOTHUB_DEVICE_CLIENT_LL_HANDLE device_ll_handle; // Used to initialize IoTHub SDK subsystem (void)IoTHub_Init(); (void)printf("Starting the IoTHub client sample upload to blob...\r\n"); device_ll_handle = IoTHubDeviceClient_LL_CreateFromConnectionString(connectionString, MQTT_Protocol); if (device_ll_handle == NULL) { (void)printf("Failure creating IotHub device. Hint: Check your connection string.\r\n"); } else { #ifndef WIN32 size_t log = 1; (void)IoTHubDeviceClient_LL_SetOption(device_ll_handle, OPTION_CURL_VERBOSE, &log); #endif // !WIN32 #ifdef SET_TRUSTED_CERT_IN_SAMPLES // Setting the Trusted Certificate. This is only necessary on systems without // built in certificate stores. IoTHubDeviceClient_LL_SetOption(device_ll_handle, OPTION_TRUSTED_CERT, certificates); #endif // SET_TRUSTED_CERT_IN_SAMPLES HTTP_PROXY_OPTIONS http_proxy_options = { 0 }; http_proxy_options.host_address = proxyHost; http_proxy_options.port = proxyPort; if (proxyHost != NULL && IoTHubDeviceClient_LL_SetOption(device_ll_handle, OPTION_HTTP_PROXY, &http_proxy_options) != IOTHUB_CLIENT_OK) { (void)printf("failure to set proxy\n"); } else { char* uploadCorrelationId; char* azureBlobSasUri; if (IoTHubDeviceClient_LL_AzureStorageInitializeBlobUpload( device_ll_handle, azureStorageBlobPath, &uploadCorrelationId, &azureBlobSasUri) != IOTHUB_CLIENT_OK) { printf("failed initializing upload in IoT Hub\n"); } else { // The SAS URI obtained above (azureBlobSasUri) can be used with other tools // like az_copy or Azure Storage SDK instead of the API functions // built-in this SDK shown below. IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_HANDLE azureStorageClientHandle = IoTHubDeviceClient_LL_AzureStorageCreateClient(device_ll_handle, azureBlobSasUri); if (azureStorageClientHandle == NULL) { (void)printf("failed to create upload context\n"); } else { bool uploadSuccessful = true; int uploadResultCode = 200; int attemptCount; for (uint32_t block_number = 0; block_number < 10 && uploadSuccessful; block_number++) { int data_size = snprintf(data_to_upload, sizeof(data_to_upload), data_to_upload_format, block_number); attemptCount = 1; while (true) { if (IoTHubDeviceClient_LL_AzureStoragePutBlock( azureStorageClientHandle, block_number, (const uint8_t*)data_to_upload, data_size) == IOTHUB_CLIENT_OK) { // Block upload succeeded. Continuing with next block. break; } else { if (attemptCount >= SAMPLE_MAX_RETRY_COUNT) { (void)printf("Failed uploading block number %u to blob (exhausted all retries).\n", block_number); uploadSuccessful = false; uploadResultCode = 300; break; } else { (void)printf("Failed uploading block number %u. Retrying in %u seconds...\n", block_number, SAMPLE_RETRY_DELAY_MILLISECS / 1000); ThreadAPI_Sleep(SAMPLE_RETRY_DELAY_MILLISECS); } } attemptCount++; } } if (uploadSuccessful) { // This function can also be retried if any errors occur. if (IoTHubDeviceClient_LL_AzureStoragePutBlockList(azureStorageClientHandle) != IOTHUB_CLIENT_OK) { (void)printf("Failed performing Azure Storage Put Blob List.\n"); uploadSuccessful = false; uploadResultCode = 400; } } IoTHubDeviceClient_LL_AzureStorageDestroyClient(azureStorageClientHandle); attemptCount = 1; while (true) { if (IoTHubDeviceClient_LL_AzureStorageNotifyBlobUploadCompletion( device_ll_handle, uploadCorrelationId, uploadSuccessful, uploadResultCode, uploadSuccessful ? "OK" : "Aborted") == IOTHUB_CLIENT_OK) { // Notification succeeded. if (uploadSuccessful) { (void)printf("hello world blob has been created\n"); } break; } else { if (attemptCount >= SAMPLE_MAX_RETRY_COUNT) { (void)printf("Failed notifying Azure IoT Hub of upload completion (exhausted all retries).\n"); break; } else { (void)printf("Failed notifying Azure IoT Hub of upload completion. Retrying in %u seconds...\n", SAMPLE_RETRY_DELAY_MILLISECS / 1000); ThreadAPI_Sleep(SAMPLE_RETRY_DELAY_MILLISECS); } } attemptCount++; } } free(uploadCorrelationId); free(azureBlobSasUri); } } // Clean up the iothub sdk handle IoTHubDeviceClient_LL_Destroy(device_ll_handle); } // Free all the sdk subsystem IoTHub_Deinit(); printf("Press any key to continue"); (void)getchar(); return 0; }
5bd6bc60afade8f57afc18ea8beb84892a8c5f9d
2d9cd06217a836395bcad23dfcf6e4a670663af3
/libraries/kali/graphics.h
08503a025c5bb33e757476d20afd8040135b1463
[ "MIT" ]
permissive
seven-phases/spectrum-analyzer
922b5effea4190447f848a5d22a645f3528c39e7
b3638de0a194cf43afb5e96c9e6bc7c9ca2687d7
refs/heads/master
2021-01-10T04:16:14.125687
2015-07-14T00:07:41
2015-07-14T00:07:41
36,190,752
101
23
null
null
null
null
UTF-8
C
false
false
451
h
graphics.h
#ifndef KALI_GRAPHICS_INCLUDED #define KALI_GRAPHICS_INCLUDED // ............................................................................ #include "kali/platform.h" #if WINDOWS_ #include "kali/graphics.gdiplus.h" #elif MACOSX_ #include "kali/graphics.cocoa.h" #else #error not implemented. #endif // ............................................................................ #endif // ~ KALI_GRAPHICS_INCLUDED
9aa0116783f8088c8b88645683fbb25edd04c0a8
a4c4f32b7e41472760e34e67f5eed5639cc63a3e
/products/libllbuild/include/llbuild/buildsystem.h
cbc7fb26d1c4a201190bb019c1d955fc26645256
[ "Swift-exception", "Apache-2.0" ]
permissive
apple/swift-llbuild
d3054d10961d89fbedd9e172c0080d25e9291f1b
02c9df63a4e8b178e8c71d8cf08f07a13c0d1acc
refs/heads/main
2023-09-02T11:40:00.426241
2023-08-14T20:59:47
2023-08-14T20:59:47
44,838,988
1,137
250
Apache-2.0
2023-09-12T02:09:39
2015-10-23T21:15:45
C++
UTF-8
C
false
false
36,776
h
buildsystem.h
//===- buildsystem.h ----------------------------------------------*- C -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2015 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // These are the C API interfaces to the llbuild BuildSystem component. // //===----------------------------------------------------------------------===// #ifndef LLBUILD_PUBLIC_BUILDSYSTEM_H #define LLBUILD_PUBLIC_BUILDSYSTEM_H #if !defined(LLBUILD_PUBLIC_LLBUILD_H) && !defined(__clang_tapi__) #error Clients must include the "llbuild.h" umbrella header. #endif #include "buildkey.h" #include "buildvalue.h" #include <stdbool.h> #include <stdint.h> #ifdef _MSC_VER // Ignore the conflicting min/max defined in windows.h #define NOMINMAX #define WIN32_LEAN_AND_MEAN #include <windows.h> typedef HANDLE llbuild_pid_t; typedef HANDLE FD; #else #if defined(__linux__) || defined(__GNU__) #include <termios.h> #else #include <sys/types.h> #endif // defined(__linux__) || defined(__GNU__) #include <unistd.h> typedef pid_t llbuild_pid_t; typedef int FD; #endif // _MSC_VER /// @name File System Behaviors /// @{ /// A fine-grained timestamp. /// /// Although phrased as a time, this value is uninterpreted by llbuild. The /// client may represent time in any fashion intended to preserve uniqueness. typedef struct llb_fs_timestamp_t_ { uint64_t seconds; uint64_t nanoseconds; } llb_fs_timestamp_t; /// Information on the status of a file. typedef struct llb_fs_file_info_t_ { /// A unique identifier for the device containing the file. uint64_t device; /// A unique identifier for the file on the device. uint64_t inode; /// The file mode information, as used by stat(2). uint64_t mode; /// The size of the file. uint64_t size; /// An indication of the last modification time. llb_fs_timestamp_t mod_time; } llb_fs_file_info_t; /// @} /// @name Diagnostics /// @{ typedef enum LLBUILD_ENUM_ATTRIBUTES { llb_buildsystem_diagnostic_kind_note = 0, llb_buildsystem_diagnostic_kind_warning = 1, llb_buildsystem_diagnostic_kind_error = 2, } llb_buildsystem_diagnostic_kind_t LLBUILD_SWIFT_NAME(DiagnosticKind); /// Get the name of the diagnostic kind. LLBUILD_EXPORT const char* llb_buildsystem_diagnostic_kind_get_name( llb_buildsystem_diagnostic_kind_t kind); /// @} /// @name Build System APIs /// @{ /// Opaque handle to a build system. typedef struct llb_buildsystem_t_ llb_buildsystem_t; /// Opaque handle to a build system command. typedef struct llb_buildsystem_command_t_ llb_buildsystem_command_t; /// Opaque handle to a build system tool. typedef struct llb_buildsystem_tool_t_ llb_buildsystem_tool_t; /// Opaque handle to a build system command's launched process. typedef struct llb_buildsystem_process_t_ llb_buildsystem_process_t; /// Opaque handle to a build system interface. typedef struct llb_buildsystem_interface_t_ llb_buildsystem_interface_t; /// Result of a command execution. typedef enum LLBUILD_ENUM_ATTRIBUTES { llb_buildsystem_command_result_succeeded = 0, llb_buildsystem_command_result_failed = 1, llb_buildsystem_command_result_cancelled = 2, llb_buildsystem_command_result_skipped = 3, } llb_buildsystem_command_result_t LLBUILD_SWIFT_NAME(CommandResult); typedef enum LLBUILD_ENUM_ATTRIBUTES { llb_buildsystem_discovered_dependency_kind_input = 0, llb_buildsystem_discovered_dependency_kind_missing = 1, llb_buildsystem_discovered_dependency_kind_output = 2, } llb_buildsystem_discovered_dependency_kind_t LLBUILD_SWIFT_NAME(DiscoveredDependencyKind); typedef enum LLBUILD_ENUM_ATTRIBUTES { /// No discovered dependencies are in use. llb_buildsystem_dependency_data_format_unused = 0, /// "Makefile" style dependencies in the form typically generated by C /// compilers, wherein the dependencies of the first target are treated as /// dependencies of the command. llb_buildsystem_dependency_data_format_makefile = 1, /// Darwin's DependencyInfo format. llb_buildsystem_dependency_data_format_dependencyinfo = 2, } llb_buildsystem_dependency_data_format_t LLBUILD_SWIFT_NAME(DependencyDataFormat); /// Extended result of a command execution typedef struct llb_buildsystem_command_extended_result_t_ { llb_buildsystem_command_result_t result; /// Result of command execution int exit_status; /// The exit code uint64_t utime; /// User time (in us) uint64_t stime; /// Sys time (in us) uint64_t maxrss; /// Max RSS (in bytes) llbuild_pid_t pid; /// The process identifier (-1 if process creation failed) } llb_buildsystem_command_extended_result_t; /// Status change event kinds. typedef enum LLBUILD_ENUM_ATTRIBUTES { /// Indicates the command is being scanned to determine if it needs to run. /// /// This type will always precede the other types for any particular /// command. Once scanning begins for a command, it is guaranteed to be /// followed by either an "is-up-to-date" or "is-complete" event. llb_buildsystem_command_status_kind_is_scanning LLBUILD_SWIFT_NAME(isScanning) = 0, /// Indicates the command is up-to-date, and does not need to run. llb_buildsystem_command_status_kind_is_up_to_date LLBUILD_SWIFT_NAME(isUpToDate) = 1, /// Indicates the command was run, and is now complete. /// /// The actual preparation and start of the command are handled via other /// individual delegate callbacks, and not status change events. llb_buildsystem_command_status_kind_is_complete LLBUILD_SWIFT_NAME(isComplete) = 2, } llb_buildsystem_command_status_kind_t LLBUILD_SWIFT_NAME(CommandStatusKind); /// Cycle actions. typedef enum LLBUILD_ENUM_ATTRIBUTES { /// Indicates a rule will be forced to build. llb_cycle_action_force_build LLBUILD_SWIFT_NAME(forceBuild) = 0, /// Indicates a rule's prior value will be supplied to a downstream rule. llb_cycle_action_supply_prior_value LLBUILD_SWIFT_NAME(supplyPriorValue) = 1, } llb_cycle_action_t LLBUILD_SWIFT_NAME(CycleAction); /// Scheduler algorithms typedef enum LLBUILD_ENUM_ATTRIBUTES { /// Command name priority queue based scheduling [default] llb_scheduler_algorithm_command_name_priority LLBUILD_SWIFT_NAME(commandNamePriority) = 0, /// First in, first out llb_scheduler_algorithm_fifo = 1 } llb_scheduler_algorithm_t LLBUILD_SWIFT_NAME(SchedulerAlgorithm); /// Quality of service levels. typedef enum LLBUILD_ENUM_ATTRIBUTES { /// A default quality of service (i.e. what the system would use without /// other advisement, generally this would be comparable to what would be /// done by `make`, `ninja`, etc.) llb_quality_of_service_default = 0, /// User-initiated, high priority work. llb_quality_of_service_user_initiated LLBUILD_SWIFT_NAME(userInitiated) = 1, /// Batch work performed on behalf of the user. llb_quality_of_service_utility = 2, /// Background work that is not directly visible to the user. llb_quality_of_service_background = 3, /// Not specified for a build invocation; the global default QoS setting will be used. llb_quality_of_service_unspecified = 4 } llb_quality_of_service_t LLBUILD_SWIFT_NAME(QualityOfService); /// Rule run reasons. typedef enum LLBUILD_ENUM_ATTRIBUTES { /// The rule has never been built. llb_rule_run_reason_never_built LLBUILD_SWIFT_NAME(neverBuilt) = 0, /// The rule's signature has changed. llb_rule_run_reason_signature_changed LLBUILD_SWIFT_NAME(signatureChanged) = 1, /// The rule has an invalid value. llb_rule_run_reason_invalid_value LLBUILD_SWIFT_NAME(invalidValue) = 2, /// An input of the rule has been rebuilt. llb_rule_run_reason_input_rebuilt LLBUILD_SWIFT_NAME(inputRebuilt) = 3, /// The rule has never been built. llb_rule_run_reason_forced LLBUILD_SWIFT_NAME(forced) = 4, } llb_rule_run_reason_t LLBUILD_SWIFT_NAME(RuleRunReason); /// Invocation parameters for a build system. typedef struct llb_buildsystem_invocation_t_ llb_buildsystem_invocation_t; struct llb_buildsystem_invocation_t_ { /// The path of the build file to use. const char* buildFilePath; /// The path of the database file to use, if any. const char* dbPath; /// The path of the build trace output file to use, if any. const char* traceFilePath; /// The base environment to use when executing subprocesses. /// /// The format is expected to match that of `::main()`, i.e. a null-terminated /// array of pointers to null terminated C strings. /// /// If empty, the environment of the calling process will be used. /// /// The environment is *not* copied by the build invocation, and must remain /// alive for the lifetime of any build using this invocation. const char* const* environment; /// Whether to show verbose output. // // FIXME: This doesn't belong here, move once the status is fully delegated. bool showVerboseStatus; /// Whether to use a serial build. bool useSerialBuild; llb_scheduler_algorithm_t schedulerAlgorithm; uint32_t schedulerLanes; llb_quality_of_service_t qos; }; /// Delegate structure for callbacks required by the build system. typedef struct llb_buildsystem_delegate_t_ { /// User context pointer. void* context; /// @name FileSystem APIs /// /// These are optional callbacks, which can be provided by the client to /// support virtualization or testing of the system. If not defined, the build /// system will directly access the local disk for file operations. /// /// @{ /// Create the given directory if it does not exist. /// /// \\returns True on success (the directory was created, or already exists). bool (*fs_create_directory)(void* context, const char* path); /// Get the file contents for the given path. /// /// The contents *MUST* be returned in a new buffer allocated with \see /// llb_alloc(). /// /// Xparam path The path to provide the contents for. /// /// Xparam data_out On success, this should be filled in with a pointer to /// the newly created buffer containing the contents, and with the contents /// size. /// /// \\returns True on success. // // // FIXME: Design clean data types for clients to return unowned/unowned // memory. bool (*fs_get_file_contents)(void* context, const char* path, llb_data_t* data_out); /// Remove file or directory at given path. /// /// Xparam path The path to remove. /// /// \\returns True on success. bool (*fs_remove)(void* context, const char* path); /// Get the file information for the given path. void (*fs_get_file_info)(void* context, const char* path, llb_fs_file_info_t* data_out); /// Get the file information for the given path, without looking through /// symbolic links. void (*fs_get_link_info)(void* context, const char* path, llb_fs_file_info_t* data_out); /// Create a symlink. bool (*fs_create_symlink)(void* context, const char* src, const char* target); /// @} /// @name Build System Behaviors /// @{ /// Called by the build system to get an instance of the custom tool for the /// given name. /// /// Xreturns If the tool is recognized, the client should return an instance /// of the tool created with \see llb_buildsystem_create_tool(). If the tool /// is not recognized, the client should return null. llb_buildsystem_tool_t* (*lookup_tool)(void* context, const llb_data_t* name); /// @} /// @name Diagnostic & Status APIs /// @{ /// Called to report an unassociated diagnostic from the build system. /// /// Xparam kind The kind of diagnostic. /// Xparam filename The filename associated with the diagnostic, if any. /// Xparam lin The line number associated with the diagnostic, if any. /// Xparam column The line number associated with the diagnostic, if any. /// Xparam message The diagnostic message, as a C string. void (*handle_diagnostic)(void* context, llb_buildsystem_diagnostic_kind_t kind, const char* filename, int line, int column, const char* message); /// Called to report any form of command failure. /// /// This can may be called to report the failure of a command which has /// executed, but may also be used to report the inability of a command to /// run. It is expected to be used by the client in making decisions with /// regard to cancelling the build. /// /// This callback is optional. If not provided, the build will automatically /// be cancelled after the first failure. // // FIXME: Clean this up, we should be able to come up with a better definition // & API organization. void (*had_command_failure)(void* context); /// Called to report a status change for a command. /// /// The possible status changes -- and their invariants with respect to other /// notifications -- are defined in \see /// llb_buildsystem_command_status_kind_t. void (*command_status_changed)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_command_status_kind_t kind); /// Called when a command is preparing to run. /// /// The system guarantees that any command_preparing() call will be paired /// with exactly one \see command_finished() call. void (*command_preparing)(void* context, llb_buildsystem_command_t* command); /// Called by the build system to allow the delegate to skip a command without /// implicitly skipping its dependents. /// /// WARNING: Clients need to take special care when using this. Skipping /// commands without considering their dependencies or dependents can easily /// produce an inconsistent build. /// /// This method is called before the command starts, when the system has /// identified that it will eventually need to run (after all of its inputs /// have been satisfied). /// /// The system guarantees that all such calls will be paired with a /// corresponding \see commandFinished() call. bool (*should_command_start)(void* context, llb_buildsystem_command_t* command); /// Called when a command has been started. /// /// The system guarantees that any commandStart() call will be paired with /// exactly one \see command_finished() call. void (*command_started)(void* context, llb_buildsystem_command_t* command); /// Called when a command has been finished. /// /// Xparam result The result of command (e.g. success, failure, etc). void (*command_finished)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_command_result_t result); /// Called when a discovered dependency has been found. void (*command_found_discovered_dependency)(void* context, llb_buildsystem_command_t* command, const char* path, llb_buildsystem_discovered_dependency_kind_t kind); /// Called to report an error during the execution of a command. /// /// Xparam data The error message. void (*command_had_error)(void* context, llb_buildsystem_command_t* command, const llb_data_t* data); /// Called to report a note during the execution of a command. /// /// Xparam data The note message. void (*command_had_note)(void* context, llb_buildsystem_command_t* command, const llb_data_t* data); /// Called to report a warning during the execution of a command. /// /// Xparam data The warning message. void (*command_had_warning)(void* context, llb_buildsystem_command_t* command, const llb_data_t* data); /// Called to report a command could not build due to missing inputs. void (*command_cannot_build_output_due_to_missing_inputs)(void *context, llb_buildsystem_command_t* command, llb_build_key_t** output, llb_build_key_t** inputs, uint64_t input_count); /// Called by the build system when a node has multiple commands that are producing it. /// The delegate can return one of the commands for the build system to use or return \p nullptr /// for the build system to treat the node as invalid. /// If \p nullptr is returned \p cannot_build_node_due_to_multiple_producers is going to be called next. llb_buildsystem_command_t* (*choose_command_from_multiple_producers)(void *context, llb_build_key_t** output, llb_buildsystem_command_t** commands, uint64_t command_count); /// Called by the build system to report a node could not be built /// because multiple commands are producing it. void (*cannot_build_node_due_to_multiple_producers)(void *context, llb_build_key_t** output, llb_buildsystem_command_t** commands, uint64_t command_count); /// Called when a command's job has started executing an external process. /// /// The system guarantees that any commandProcessStarted() call will be paired /// with exactly one \see command_process_finished() call. /// /// Xparam process A unique handle used in subsequent delegate calls to /// identify the process. This handle should only be used to associate /// different status calls relating to the same process. It is only guaranteed /// to be unique from when it has been provided here to when it has been /// provided to the \see command_process_finished() call. void (*command_process_started)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_process_t* process); /// Called to report an error in the management of a command process. /// /// Xparam process The process handle. /// Xparam data The error message. void (*command_process_had_error)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_process_t* process, const llb_data_t* data); /// Called to report a command processes' (merged) standard output and error. /// /// Xparam process The process handle. /// Xparam data The process output. void (*command_process_had_output)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_process_t* process, const llb_data_t* data); /// Called when a command's job has finished executing an external process. /// /// Xparam process The handle used to identify the process. This handle /// will become invalid as soon as the client returns from this API call. /// /// Xparam result Whether the process suceeded, failed or was cancelled. /// Xparam exitStatus The raw exit status of the process. void (*command_process_finished)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_process_t* process, const llb_buildsystem_command_extended_result_t* result); /// Called when it's been determined that a rule needs to run. /// /// Xparam rule_needing_to_run The rule that needs to run. /// /// Xparam reason Describes why the rule needs to run. For example, because it has never run or because an input was rebuilt. /// /// Xparam input_rule If `reason` is `InputRebuilt`, the rule for the rebuilt input, else `nullptr`. void (*determined_rule_needs_to_run)(void* context, llb_build_key_t* rule_needing_to_run, llb_rule_run_reason_t reason, llb_build_key_t* input_rule); /// Called when a cycle is detected by the build engine and it cannot make /// forward progress. /// /// Xparam rules The ordered list of items comprising the cycle, starting from /// the node which was requested to build and ending with the first node in /// the cycle (i.e., the node participating in the cycle will appear twice). /// Xparam rule_count The number of rules comprising the cycle. void (*cycle_detected)(void* context, llb_build_key_t** rules, uint64_t rule_count); /// Called when a cycle is detected by the build engine to check if it should /// attempt to resolve the cycle and continue /// /// Xparam rules The ordered list of items comprising the cycle, starting from /// the node which was requested to build and ending with the first node in /// the cycle (i.e., the node participating in the cycle will appear twice). /// Xparam rule_count The number of rules comprising the cycle. /// Xparam candidate_rule The rule the engine will use to attempt to break the /// cycle. /// Xparam action The action the engine will take on the candidateRule. /// Xreturns Non-zero if the engine should attempt to resolve the cycle, zero /// otherwise. Resolution is attempted by either forcing items to be built, or /// supplying a previously built result to a node in the cycle. The latter /// action may yield unexpected results and thus this should be opted into /// with care. uint8_t (*should_resolve_cycle)(void* context, llb_build_key_t** rules, uint64_t rule_count, llb_build_key_t* candidate_rule, llb_cycle_action_t action); /// @} } llb_buildsystem_delegate_t; /// Create a new build system instance. /// /// The C-string members of the invocation structure are immediately copied upon /// construction of the build system, and can safely be released upon return. LLBUILD_EXPORT llb_buildsystem_t* llb_buildsystem_create(llb_buildsystem_delegate_t delegate, llb_buildsystem_invocation_t invocation); /// Destroy a build system invocation. LLBUILD_EXPORT void llb_buildsystem_destroy(llb_buildsystem_t* system); /// Initialize the build system. /// /// This will load the build manifest and apply any other options (for example, /// attaching the database). /// /// Clients may use a single build system for many separate build /// invocations. When used this way, the underlying system will transparently /// cache the contents of the manifest as well as database results which can /// result in a significant performance improvement for builds in little /// substantive work is performed. /// /// \returns True on success, or false if the system could not be /// initialized. It is a programmatic error to attempt to use the system after /// initialization has failed. LLBUILD_EXPORT bool llb_buildsystem_initialize(llb_buildsystem_t* system); /// Build the named target. /// /// It is an unchecked error for the client to request multiple builds /// concurrently. /// /// This will automatically initialize the build system if it has not already /// been initialized. /// /// \param key Name of the target to build. /// \returns True on success, or false if the build was aborted (for example, if /// a cycle was discovered). LLBUILD_EXPORT bool llb_buildsystem_build(llb_buildsystem_t* system, const llb_data_t* key); /// Build a single node. /// /// It is an unchecked error for the client to request multiple builds /// concurrently. /// /// This will automatically initialize the build system if it has not already /// been initialized. /// /// \param key Path to the node to build. /// \returns True on success, or false if the build was aborted (for example, if /// a cycle was discovered). LLBUILD_EXPORT bool llb_buildsystem_build_node(llb_buildsystem_t* system, const llb_data_t* key); /// Cancel any ongoing build. /// /// This method may be called from any thread. LLBUILD_EXPORT void llb_buildsystem_cancel(llb_buildsystem_t* system); /// @} /// @name Tool APIs /// @{ /// Delegate structure for callbacks required by a build tool. typedef struct llb_buildsystem_tool_delegate_t_ { /// User context pointer. void* context; // FIXME: Need to support configuration behaviors. /// Called by the build system to create an individual command with this tool /// type. /// /// Xparam The name of the command to create. /// Xreturns If the tool is recognized, the client should return an instance /// of the tool created with \see llb_buildsystem_create_tool(). If the tool /// is not recognized, the client should return null. llb_buildsystem_command_t* (*create_command)(void* context, const llb_data_t* name); llb_buildsystem_command_t* (*create_custom_command)(void* context, const llb_build_key_t* key); // FIXME: Support dynamic tool commands. } llb_buildsystem_tool_delegate_t; /// Create a new tool instance. /// /// A tool is the top-level entity responsible for defining custom build system /// behaviors. Once defined, tools may be used to define new types of commands. LLBUILD_EXPORT llb_buildsystem_tool_t* llb_buildsystem_tool_create(const llb_data_t* name, llb_buildsystem_tool_delegate_t delegate); /// @} /// @name Command APIs /// @{ /// Opaque handle to a queue job context. typedef struct llb_buildsystem_queue_job_context_t_ llb_buildsystem_queue_job_context_t; /// Delegate for process spawning typedef struct llb_buildsystem_spawn_delegate_t_ { /// User context pointer. void* context; /// Called when the spawned process started void (*process_started)(void* context, llbuild_pid_t pid); /// Called to report an error in the management of the process void (*process_had_error)(void* context, const llb_data_t* error); /// Called to report command output (stdout and stderr) void (*process_had_output)(void* context, const llb_data_t* data); /// Called when the process finished running void (*process_finished)(void* context, const llb_buildsystem_command_extended_result_t *result); } llb_buildsystem_spawn_delegate_t; /// Delegate structure for callbacks required by an external build command. typedef struct llb_buildsystem_external_command_delegate_t_ { /// User context pointer. void* context; /// Called once on initialization to configure the external command. /// Supports the same properties as in the manifest and allows feature parity between /// upfront planned and dynamic tasks. /// There are different callbacks for different values types. /// /// `single` for values that are represented by a single string represented value /// `collection` for an array of string represented values /// `map` for a map like array of string represented key value pairs /// /// Each callback can be called multiple times. Subsequent calls with the same name /// might override previously set values, including values set in the manifest. void (*configure)(void* context, llb_buildsystem_command_t* command, void (*single)(llb_buildsystem_command_t* command, llb_data_t name, llb_data_t value), void (*collection)(llb_buildsystem_command_t* command, llb_data_t name, llb_data_t* values, size_t value_size), void (*map)(llb_buildsystem_command_t* command, llb_data_t name, llb_data_t* keys, llb_data_t* values, size_t keys_values_size)); /// Called to get a signature which represents the internal state of the /// command which is not tracked by any other attribute visible to the build /// system (for example, a declared input or output). This signature is /// compared with previous executions of the command when determining whether /// or not it needs to rerun. /// /// The contents *MUST* be returned in a new buffer allocated with \see /// malloc(). void (*get_signature)(void* context, llb_buildsystem_command_t* command, llb_data_t* data_out); /// Called by the build system when about to start processing the command. /// At this point, the command may choose to request more dependencies /// through the build system command interface (bsci) reference. void (*start)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_interface_t* bi, llb_task_interface_t ti); /// Called by the build system when one of the requested dependencies has /// become available. The command can identify which key the provided value /// corresponds to through `inputID`. At this point, the command may choose /// to request additional dependencies based on the contents of the provided /// value. void (*provide_value)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_interface_t* bi, llb_task_interface_t ti, const llb_build_value* value, uintptr_t inputID); /// Called by the build system's execution queue after the command's inputs /// are available and the execution queue is ready to schedule the command. /// /// This function is responsible for completing the work and notifying the /// system using the command interface. It can add additional work onto the /// execution queue, so long as it arranges to only notify the system of /// completion once all that work is complete. /// /// If defined, the `execute_command_detached` variant is called first. /// The build value returning `execute_command_ex` variant has priority next. /// If an 'invalid' buile value is returned, the bindings will then try /// calling the legacy `execute_command` variant if it is defined. /// /// The C API takes ownership of the value returned by `execute_command_ex`. llb_buildsystem_command_result_t (*execute_command)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_interface_t* bi, llb_task_interface_t ti, llb_buildsystem_queue_job_context_t* job_context); llb_build_value* (*execute_command_ex)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_interface_t* bi, llb_task_interface_t ti, llb_buildsystem_queue_job_context_t* job_context); /// Called for the external command to do its work without blocking an /// execution lane. When done the external command should call `result_fn` /// passing a result and optionally a `llb_build_value`. void (*execute_command_detached)(void* context, llb_buildsystem_command_t* command, llb_buildsystem_interface_t* bi, llb_task_interface_t ti, llb_buildsystem_queue_job_context_t* job_context, void* result_ctx, void (*result_fn)(void* result_ctx, llb_buildsystem_command_result_t, llb_build_value*)); /// If non-NULL and command is 'detached', the build system will call it to /// request the command to cancel when the build is cancelled. void (*cancel_detached_command)(void* context, llb_buildsystem_command_t* command); /// Called by the build system to determine if the current build result /// remains valid. /// /// Clients providing custom build values via execute_command_ex SHOULD supply /// this accompanying method. bool (*is_result_valid)(void* context, llb_buildsystem_command_t* command, const llb_build_value* value); } llb_buildsystem_external_command_delegate_t; /// Create a new external command instance. /// /// An external command is one which is run externally to the build system (not /// necessarily out of process) and which interacts using the standard notions /// of files and virtual nodes. /// /// It defines common base behaviors which make sense for all such tools (for /// example, capturing the signatures of output nodes and a standard behavior /// for determining when the command needs to be recomputed). LLBUILD_EXPORT llb_buildsystem_command_t* llb_buildsystem_external_command_create( const llb_data_t* name, llb_buildsystem_external_command_delegate_t delegate); /// Get the name of the given command. /// /// \param key_out On return, contains a pointer to the name of the command. LLBUILD_EXPORT void llb_buildsystem_command_get_name(llb_buildsystem_command_t* command, llb_data_t* key_out); /// Whether the default status reporting shows status for the command. /// /// \returns A boolean describing wether status reporting should show status /// for the command. LLBUILD_EXPORT bool llb_buildsystem_command_should_show_status(llb_buildsystem_command_t* command); /// Get the description for the given command. /// /// \returns The command description, as a new C string. The client is /// responsible for calling \see free() on the result. // // FIXME: This API most likely doesn't belong. LLBUILD_EXPORT char* llb_buildsystem_command_get_description(llb_buildsystem_command_t* command); /// Get the verbose description for the given command. /// /// \returns The verbose command description, as a new C string. The client is /// responsible for calling \see free() on the result. // // FIXME: This API most likely doesn't belong. LLBUILD_EXPORT char* llb_buildsystem_command_get_verbose_description( llb_buildsystem_command_t* command); /// Requests a new build key dependency associated to a particular inputID value. /// When this value is available, it will be provided through the provide_value /// method. LLBUILD_EXPORT void llb_buildsystem_command_interface_task_needs_input(llb_task_interface_t ti, llb_build_key_t* key, uintptr_t inputID); /// Request a task as a dependency just for the current build iteration. /// Once the requesting task finishes, the dependency will be removed so /// that incremental builds won't consider it for invalidating the task. /// /// NOTE: This method behaves like `llb_buildsystem_command_interface_task_needs_input` /// for the current build. LLBUILD_EXPORT void llb_buildsystem_command_interface_task_needs_single_use_input(llb_task_interface_t ti, llb_build_key_t* key, uintptr_t inputID); /// Marks a key as a discovered dependency for the task. LLBUILD_EXPORT void llb_buildsystem_command_interface_task_discovered_dependency(llb_task_interface_t ti, llb_build_key_t* key); /// Returns the file info struct for the specified path LLBUILD_EXPORT llb_build_value_file_info_t llb_buildsystem_command_interface_get_file_info(llb_buildsystem_interface_t* bi_p, const char* path); /// Spawns a process using the task interface and a job's context LLBUILD_EXPORT bool llb_buildsystem_command_interface_spawn(llb_task_interface_t ti, llb_buildsystem_queue_job_context_t *job_context, const char * const*args, int32_t arg_count, const char * const *env_keys, const char * const *env_values, int32_t env_count, llb_data_t *working_dir, llb_buildsystem_spawn_delegate_t *delegate); // MARK: Quality of Service /// Get the global quality of service level to use for processing. LLBUILD_EXPORT llb_quality_of_service_t llb_get_quality_of_service(); /// Set the global quality of service level to use for processing. LLBUILD_EXPORT void llb_set_quality_of_service(llb_quality_of_service_t level); /// @} /// @name Memory APIs // MARK: Allocating and freeing memory /// Allocate memory usable by the build system /// \param size The number bytes to allocate LLBUILD_EXPORT void* llb_alloc(size_t size); /// Free memory allocated for or by the build system /// \param ptr A pointer to the allocated memory to free LLBUILD_EXPORT void llb_free(void* ptr); /// @} #endif
c724721258fc8c97c6ce422fb9d509e9f8a0a47d
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/components/platform/soc/bl702/bl702_usb_cdc/Src/usb_device.c
8631ded32bf8da1eb5e92515c922000f022d412a
[ "Apache-2.0" ]
permissive
bouffalolab/bl_iot_sdk
bc5eaf036b70f8c65dd389439062b169f8d09daa
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
refs/heads/master
2023-08-31T03:38:03.369853
2023-08-16T08:50:33
2023-08-18T09:13:27
307,347,250
244
101
Apache-2.0
2023-08-28T06:29:02
2020-10-26T11:16:30
C
UTF-8
C
false
false
1,334
c
usb_device.c
#include "usb_device.h" USBD_HandleTypeDef hUsbDeviceFS = { .id = 0, .dev_config = 0, .dev_default_config = 0, .dev_config_status = 0, .dev_speed = USBD_SPEED_FULL, .ep0_state = 0, .ep0_data_len = 0, .dev_state = 0, .dev_old_state = 0, .dev_address = 0, .dev_connection_status = 0, .dev_test_mode = 0, .dev_remote_wakeup = 0, .request = { .bmRequest = 0, .bRequest = 0, .wValue = 0, .wIndex = 0, .wLength = 0 }, .pDesc = NULL, .pClass = NULL, .pClassData = NULL, .pUserData = NULL, .pData = NULL }; void USB_Device_Init(void) { USBD_DbgLog("\tUSBD_Init()\r\n"); if(USBD_Init(&hUsbDeviceFS, &FS_Desc, DEVICE_FS) != USBD_OK){ USB_Error_Handler(); } USBD_DbgLog("\tUSBD_RegisterClass()\r\n"); if(USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC) != USBD_OK){ USB_Error_Handler(); } USBD_DbgLog("\tUSBD_CDC_RegisterInterface()\r\n"); if(USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS) != USBD_OK){ USB_Error_Handler(); } USBD_DbgLog("\tUSBD_Start()\r\n"); if(USBD_Start(&hUsbDeviceFS) != USBD_OK){ USB_Error_Handler(); } } void USB_Error_Handler(void) { USBD_DbgLog("USB_Device_Init error.\r\n"); }
5959967acde7b1a5404a87292f321670c76f0491
cff4428975e403e4ef02d75498b78cd1a610a01a
/src/lib/crypto/crypto.c
c85cff1a648b2834b588d37359692051d1ce39bc
[ "BSD-2-Clause" ]
permissive
tarantool/tarantool
c1f252b642d223af62485dc21165c7f7c3354e7e
f58cc96f2798ddc5f492223897d0b77e4f902128
refs/heads/master
2023-09-03T15:16:29.144171
2023-08-31T11:39:28
2023-09-01T12:39:29
911,980
3,205
490
NOASSERTION
2023-09-14T17:58:17
2010-09-15T07:59:26
Lua
UTF-8
C
false
false
11,890
c
crypto.c
/* * Copyright 2010-2019, Tarantool AUTHORS, please see AUTHORS file. * * 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 disclaimer. * * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * <COPYRIGHT HOLDER> OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include "crypto.h" #include "diag.h" #include "exception.h" #include "core/random.h" #include <openssl/crypto.h> #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/hmac.h> const char *crypto_algo_strs[] = { "none", "AES128", "AES192", "AES256", "DES", }; const char *crypto_mode_strs[] = { "ECB", "CBC", "CFB", "OFB", }; /** * Return a EVP_CIPHER object by a given algorithm name and a * mode value. An algorithm name should be without quotes and with * a format '<standard>[_<key_size>]', lowercase. For a list of * supported algorithms see OpenSSL documentation. */ #define algo_cipher_by_mode(algo, mode) ({ \ const EVP_CIPHER *type; \ switch (mode) { \ case CRYPTO_MODE_ECB: \ type = EVP_##algo##_ecb(); \ break; \ case CRYPTO_MODE_CBC: \ type = EVP_##algo##_cbc(); \ break; \ case CRYPTO_MODE_CFB: \ type = EVP_##algo##_cfb(); \ break; \ case CRYPTO_MODE_OFB: \ type = EVP_##algo##_ofb(); \ break; \ default: \ type = NULL; \ diag_set(CryptoError, "unknown mode"); \ break; \ } \ type; \ }) /** * Find an OpenSSL cipher object by specified encryption * algorithm and mode. */ static inline const EVP_CIPHER * evp_cipher_find(enum crypto_algo algo, enum crypto_mode mode) { switch (algo) { case CRYPTO_ALGO_AES128: return algo_cipher_by_mode(aes_128, mode); case CRYPTO_ALGO_AES192: return algo_cipher_by_mode(aes_192, mode); case CRYPTO_ALGO_AES256: return algo_cipher_by_mode(aes_256, mode); case CRYPTO_ALGO_DES: return algo_cipher_by_mode(des, mode); case CRYPTO_ALGO_NONE: return EVP_enc_null(); default: diag_set(CryptoError, "unknown crypto algorithm"); return NULL; } } /** * Set a diag error with the latest OpenSSL error message. It is a * macro so as to keep untouched line number in the error message. */ #define diag_set_OpenSSL() \ diag_set(CryptoError, "OpenSSL error: %s", \ ERR_reason_error_string(ERR_get_error())) /** Stream to encrypt/decrypt data packets step by step. */ struct crypto_stream { /** Cipher type. Depends on algorithm and mode. */ const EVP_CIPHER *cipher; /** Encryption/decryption context. */ EVP_CIPHER_CTX *ctx; /** Stream direction. */ enum crypto_direction dir; }; struct crypto_stream * crypto_stream_new(enum crypto_algo algo, enum crypto_mode mode, enum crypto_direction dir) { const EVP_CIPHER *cipher = evp_cipher_find(algo, mode); if (cipher == NULL) return NULL; struct crypto_stream *s = (struct crypto_stream *) malloc(sizeof(*s)); if (s == NULL) { diag_set(OutOfMemory, sizeof(*s), "malloc", "s"); return NULL; } s->ctx = EVP_CIPHER_CTX_new(); if (s->ctx == NULL) { free(s); diag_set_OpenSSL(); return NULL; } s->cipher = cipher; s->dir = dir; return s; } int crypto_stream_begin(struct crypto_stream *s, const char *key, int key_size, const char *iv, int iv_size) { int need_size = EVP_CIPHER_key_length(s->cipher); if (key_size != need_size) { diag_set(CryptoError, "key size expected %d, got %d", need_size, key_size); return -1; } need_size = EVP_CIPHER_iv_length(s->cipher); if (iv_size != need_size) { diag_set(CryptoError, "IV size expected %d, got %d", need_size, iv_size); return -1; } if (EVP_CIPHER_CTX_cleanup(s->ctx) == 1 && EVP_CipherInit_ex(s->ctx, s->cipher, NULL, (const unsigned char *) key, (const unsigned char *) iv, s->dir) == 1) return 0; diag_set_OpenSSL(); return -1; } int crypto_stream_append(struct crypto_stream *s, const char *in, int in_size, char *out, int out_size) { int len, need = in_size + EVP_CIPHER_block_size(s->cipher); if (need > out_size) return need; if (EVP_CipherUpdate(s->ctx, (unsigned char *) out, &len, (const unsigned char *) in, in_size) == 1) return len; diag_set_OpenSSL(); return -1; } int crypto_stream_commit(struct crypto_stream *s, char *out, int out_size) { int need = EVP_CIPHER_block_size(s->cipher); if (need > out_size) return need; int len; if (EVP_CipherFinal_ex(s->ctx, (unsigned char *) out, &len) == 1 && EVP_CIPHER_CTX_cleanup(s->ctx) == 1) return len; diag_set_OpenSSL(); return -1; } void crypto_stream_delete(struct crypto_stream *s) { EVP_CIPHER_CTX_free(s->ctx); free(s); } /** * OpenSSL codec. Has a constant secret key, provides API to * generate public keys, keeps OpenSSL contexts cached. */ struct crypto_codec { /** Cipher type. Depends on algorithm and mode. */ const EVP_CIPHER *cipher; /** Encryption context. */ EVP_CIPHER_CTX *ctx; /** * Secret key, usually unchanged among multiple data * packets. */ unsigned char key[CRYPTO_MAX_KEY_SIZE]; }; struct crypto_codec * crypto_codec_new(enum crypto_algo algo, enum crypto_mode mode, const char *key, int key_size) { const EVP_CIPHER *cipher = evp_cipher_find(algo, mode); if (cipher == NULL) return NULL; int need = EVP_CIPHER_key_length(cipher); if (key_size != need) { diag_set(CryptoError, "key size expected %d, got %d", need, key_size); return NULL; } struct crypto_codec *c = (struct crypto_codec *) malloc(sizeof(*c)); if (c == NULL) { diag_set(OutOfMemory, sizeof(*c), "malloc", "c"); return NULL; } c->ctx = EVP_CIPHER_CTX_new(); if (c->ctx == NULL) { free(c); diag_set_OpenSSL(); return NULL; } c->cipher = cipher; memcpy(c->key, key, key_size); return c; } int crypto_codec_gen_iv(struct crypto_codec *c, char *out, int out_size) { int need = EVP_CIPHER_iv_length(c->cipher); if (out_size >= need) random_bytes(out, need); return need; } int crypto_codec_iv_size(const struct crypto_codec *c) { return EVP_CIPHER_iv_length(c->cipher); } /** Generic implementation of encrypt/decrypt methods. */ static int crypto_codec_do_op(struct crypto_codec *c, const char *iv, const char *in, int in_size, char *out, int out_size, enum crypto_direction dir) { const unsigned char *uin = (const unsigned char *) in; const unsigned char *uiv = (const unsigned char *) iv; unsigned char *uout = (unsigned char *) out; /* * Note, that even if in_size is already multiple of block * size, additional block is still needed. Result is * almost always bigger than input. OpenSSL API advises to * provide buffer of one block bigger than the data to * encode. */ int need = in_size + EVP_CIPHER_block_size(c->cipher); if (need > out_size) return need; int len1 = 0, len2 = 0; if (EVP_CipherInit_ex(c->ctx, c->cipher, NULL, c->key, uiv, dir) == 1 && EVP_CipherUpdate(c->ctx, uout, &len1, uin, in_size) == 1 && EVP_CipherFinal_ex(c->ctx, uout + len1, &len2) == 1 && EVP_CIPHER_CTX_cleanup(c->ctx) == 1) { assert(len1 + len2 <= need); return len1 + len2; } EVP_CIPHER_CTX_cleanup(c->ctx); diag_set_OpenSSL(); return -1; } int crypto_codec_encrypt(struct crypto_codec *c, const char *iv, const char *in, int in_size, char *out, int out_size) { return crypto_codec_do_op(c, iv, in, in_size, out, out_size, CRYPTO_DIR_ENCRYPT); } int crypto_codec_decrypt(struct crypto_codec *c, const char *iv, const char *in, int in_size, char *out, int out_size) { return crypto_codec_do_op(c, iv, in, in_size, out, out_size, CRYPTO_DIR_DECRYPT); } void crypto_codec_delete(struct crypto_codec *c) { EVP_CIPHER_CTX_free(c->ctx); free(c); } EVP_MD_CTX * crypto_EVP_MD_CTX_new(void) { #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) return EVP_MD_CTX_create(); #else return EVP_MD_CTX_new(); #endif }; void crypto_EVP_MD_CTX_free(EVP_MD_CTX *ctx) { #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) return EVP_MD_CTX_destroy(ctx); #else return EVP_MD_CTX_free(ctx); #endif } #if OPENSSL_VERSION_NUMBER < 0x30000000L # define crypto_HMAC_CTX HMAC_CTX #else # define crypto_HMAC_CTX EVP_MAC_CTX #endif crypto_HMAC_CTX * crypto_HMAC_CTX_new(void) { #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) HMAC_CTX *ctx = (HMAC_CTX *)OPENSSL_malloc(sizeof(HMAC_CTX)); if(!ctx){ return NULL; } HMAC_CTX_init(ctx); return ctx; #elif OPENSSL_VERSION_NUMBER < 0x30000000L return HMAC_CTX_new(); #else static EVP_MAC *mac; if (mac == NULL) mac = EVP_MAC_fetch(NULL, "hmac", NULL); if (mac == NULL) return NULL; return EVP_MAC_CTX_new(mac); #endif } void crypto_HMAC_CTX_free(crypto_HMAC_CTX *ctx) { #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) HMAC_cleanup(ctx); /* Remove key from memory */ OPENSSL_free(ctx); #elif OPENSSL_VERSION_NUMBER < 0x30000000L HMAC_CTX_free(ctx); #else EVP_MAC_CTX_free(ctx); #endif } unsigned long crypto_ERR_get_error(void) { return ERR_get_error(); } char * crypto_ERR_error_string(unsigned long e, char *buf) { return ERR_error_string(e, buf); } int crypto_EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { return EVP_DigestInit_ex(ctx, type, impl); } int crypto_EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt) { return EVP_DigestUpdate(ctx, d, cnt); } int crypto_EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s) { return EVP_DigestFinal_ex(ctx, md, s); } const EVP_MD * crypto_EVP_get_digestbyname(const char *name) { return EVP_get_digestbyname(name); } int crypto_HMAC_Init_ex(crypto_HMAC_CTX *ctx, const void *key, int len, const char *digest, const EVP_MD *md, ENGINE *impl) { #if OPENSSL_VERSION_NUMBER < 0x30000000L (void)digest; return HMAC_Init_ex(ctx, key, len, md, impl); #else (void)md; (void)impl; OSSL_PARAM params[2]; params[0] = OSSL_PARAM_construct_utf8_string("digest", (char *)digest, 0); params[1] = OSSL_PARAM_construct_end(); return EVP_MAC_init(ctx, key, len, params); #endif } int crypto_HMAC_Update(crypto_HMAC_CTX *ctx, const unsigned char *data, size_t len) { #if OPENSSL_VERSION_NUMBER < 0x30000000L return HMAC_Update(ctx, data, len); #else return EVP_MAC_update(ctx, data, len); #endif } int crypto_HMAC_Final(crypto_HMAC_CTX *ctx, unsigned char *md, unsigned int *len, unsigned int size) { #if OPENSSL_VERSION_NUMBER < 0x30000000L (void)size; return HMAC_Final(ctx, md, len); #else size_t l; int rc = EVP_MAC_final(ctx, md, &l, size); *len = l; return rc; #endif } const char * crypto_X509_get_default_cert_dir_env(void) { return X509_get_default_cert_dir_env(); } const char * crypto_X509_get_default_cert_file_env(void) { return X509_get_default_cert_file_env(); }
fd3656c3096b1bd49978f0bacf14c9327e346f76
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.19/system/lib/libc/musl/src/locale/codepages.h
ab146e89a4cb231304402ce63ced39123f1bdbf8
[ "MIT", "NCSA", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-mit-nagy", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
C
false
false
12,517
h
codepages.h
"iso88591\0" "latin1\0" "\0\200" "iso88592\0" "\0\40" "\0\330\20\313\32\0\244\21\10\0\0\34\122\310\42\240\0\100\212\50\0\334\60\13\33" "\0\250\41\10\54\0\40\142\10\43\241\324\122\312\50\173\0\0\0\15\0\224\201\3\0" "\76\0\200\4\0\112\0\0\0\20\102\264\21\7\0\0\334\1\0\0\177\124\2\300\45" "\0\0\220\10\0\174\0\0\100\15\0\230\221\3\0\77\0\220\4\0\113\0\0\100\20" "\103\270\41\7\0\0\340\1\0\0\200\130\2\0\46\0\0\240\210\54" "iso88593\0" "\0\40" "\0\130\21\13\0\0\4\100\5\0\0\170\121\210\23\140\0\20\200\50\0\134\1\0\0" "\0\0\120\5\0\0\174\141\310\23\141\0\20\300\50\0\0\0\100\0\0\360\240\3\0" "\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\100\1\0\0\114\0\0\0\0\0\114\62\10\0" "\0\0\0\100\0\0\364\260\3\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\104\1\0\0" "\115\0\0\0\0\0\120\102\210\54" "iso88594\0" "\0\40" "\0\330\100\106\37\0\140\161\6\0\0\34\102\204\24\215\0\100\12\0\0\334\60\213\37" "\0\144\201\6\54\0\40\122\304\24\216\314\121\12\35\62\0\0\0\0\0\0\0\0\27" "\76\0\200\4\0\106\0\0\200\26\102\274\121\207\30\0\0\0\0\0\0\144\2\0\0" "\0\74\22\11\0\63\0\0\0\0\0\0\0\100\27\77\0\220\4\0\107\0\0\300\26" "\103\300\141\307\30\0\0\0\0\0\0\150\2\0\0\0\100\42\211\54" "iso88595\0" "\0\40" "\0\14\104\120\101\6\35\204\120\102\12\55\304\120\103\16\1\360\20\104" "\21\111\64\21\105\25\131\164\21\106\31\151\264\21\107\35\171\364\21\110" "\41\211\64\22\111\45\231\164\22\112\51\251\264\22\113\55\271\364\22\114" "\61\311\64\23\115\65\331\164\23\116\71\351\264\23\117\75\371\364\23\120" "\101\11\65\24\121\105\31\165\24\122\111\51\265\24\123\115\71\365\24\124" "\127\106\45\325\124\124\125\145\325\125\130\145\245\325\126\134\15\320\225\127" "iso88596\0" "\0\40" "\0\4\20\100\0\0\4\20\100\0\1\4\20\100\0\224\1\20\100\0\1\4\20\100\0" "\1\4\20\100\0\1\4\20\100\145\1\4\20\200\145\1\134\206\131\146" "\232\155\306\131\147\236\175\6\132\150\242\215\106\132\151\246\235\206\132\152" "\252\255\306\132\153\256\275\6\133\0\1\4\20\100\0\261\311\66\33\155" "\265\331\166\33\156\271\351\266\33\157\275\371\366\33\160\301\11\67\134\0" "\1\4\20\100\0\1\4\20\100\0\1\4\20\100\0" "iso88597\0" "\0\40" "\0\24\151\44\0\124\126\11\0\0\0\0\260\13\0\0\0\20\300\220\0\0\0\0\0" "\274\364\342\13\0\277\0\23\14\0\302\0\60\14\61\305\30\163\14\62" "\311\50\263\14\63\315\70\363\14\64\321\110\63\15\65\325\130\23\300\65" "\330\144\243\315\66\334\164\343\315\67\340\204\43\316\70\344\224\143\316\71" "\350\244\243\316\72\354\264\343\316\73\360\304\43\317\74\364\324\143\317\75" "\370\344\243\317\76\374\364\343\317\77\0\5\44\120\0" "iso88598\0" "\0\40" "\0\4\0\0\0\0\0\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\0\0" "\0\0\0\100\0\1\4\20\100\0\1\4\20\100\0\1\4\20\100\0\1\4\20\100\0\1\4\20\100\0" "\1\4\20\100\0\1\4\20\100\0\1\4\20\0\221\164\325\145\327\135" "\170\345\245\327\136\174\365\345\327\137\200\5\46\330\140\204\25\146\330\141" "\210\45\246\330\142\214\65\346\130\0\1\374\10\144\0" "iso88599\0" "\0\120" "\116\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\170\121\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\117\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\174\141\10\0" "iso885910\0" "\0\40" "\0\330\100\204\24\132\140\41\6\0\147\10\161\110\43\244\0\20\311\34" "\0\334\120\304\24\133\144\61\6\0\150\14\201\210\43\245\14\51\11\35\62\0\0\0\0" "\0\0\0\0\27\76\0\200\4\0\106\0\0\0\0\0\274\121\7\0\0\0\0\300\43\0\144\2\0\0" "\0\0\0\0\0\63\0\0\0\0\0\0\0\100\27\77\0\220\4\0\107\0\0\0\0\0\300\141\7\0" "\0\0\0\0\44\0\150\2\0\0\0\0\0\0\31" "iso885911\0" "tis620\0" "\0\40" "\0\100\27\235\164\323\121\127\235\165\327\141\227\235\166\333\161\327\235\167" "\337\201\27\236\170\343\221\127\236\171\347\241\227\236\172" "\353\261\327\236\173\357\301\27\237\174\363\321\127\237\175" "\367\341\227\237\176\373\361\327\237\177\377\1\30\240\200\3\22\130\240\201" "\7\42\230\140\0\1\4\20\200\202\13\62\330\240\203\17\102\30\241\204" "\23\122\130\241\205\27\142\230\241\206\33\162\330\241\207\37\202\30\242\210" "\43\222\130\242\211\1\4\20\100\0" "iso885913\0" "\0\40" "\0\44\11\0\0\0\50\11\0\0\15\0\320\7\0\0\0\0\300\2\0\0\0\0\0\110\2\0\0\0" "\20\0\340\7\0\0\0\0\200\3\66\160\41\3\16\0\0\200\4\21\76\0\0\212\21" "\122\210\241\305\31\207\264\361\6\0\165\0\0\0\0\231\254\21\110\44" "\0\210\102\12\0\67\164\61\103\16\0\0\220\104\21\77\0\20\312\21" "\123\214\261\5\32\210\270\1\7\0\166\0\0\0\0\232\260\41\210\44" "\0\214\122\212\221" "iso885914\0" "\0\40" "\0\234\210\42\0\74\364\220\42\0\65\2\160\243\212\73\2\0\300\47" "\53\262\10\105\24\55\272\10\300\213\66\302\210\143\214\74\346\250\243\214" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\233\0\0\0\0\0\0\0\300\214\0\0\0\0\0" "\0\0\320\11\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\234\0\0\0\0\0\0\0\0\215" "\0\0\0\0\0\0\0\340\11\0" "iso885915\0" "latin9\0" "\0\44" "\124\2\160\10\0\210\0\0\0\0\0\0\0\0\0\0\0\0\0\0\244\0\0\0\0\245\0\0\0\0" "\171\350\361\11\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "iso885916\0" "\0\40" "\0\330\160\303\32\124\52\171\10\0\210\0\260\12\0\240\0\20\212\50\0\0\340\3\33" "\244\44\11\0\0\245\374\300\12\0\171\350\361\311\50\0\0\0\0\15\0\340\0\0\0" "\0\0\0\0\0\0\0\0\0\0\102\264\1\0\0\0\334\1\100\40\227\0\0\0\0\0\40\321\12\0" "\0\0\0\100\15\0\344\0\0\0\0\0\0\0\0\0\0\0\0\0\103\270\1\0\0\0\340\1\200\40" "\230\0\0\0\0\0\44\341\12\0" "cp1250\0" "windows1250\0" "\0\0" "\124\6\160\144\0\112\72\271\44\223\1\74\171\10\224\201\54\102\12\50" "\1\24\151\44\222\111\66\31\244\220\1\140\211\110\224\202\60\122\112\50" "\0\300\22\313\32\0\330\0\0\0\0\0\120\10\0\0\0\0\200\50\0\0\60\13\33\0\0\0\0\0" "\0\334\140\10\0\151\324\242\306\50\173\0\0\0\15\0\224\201\3\0\76\0\200\4\0" "\112\0\0\0\20\102\264\21\7\0\0\334\1\0\0\177\124\2\300\45\0\0\220\10\0" "\174\0\0\100\15\0\230\221\3\0\77\0\220\4\0\113\0\0\100\20\103\270\41\7\0" "\0\340\1\0\0\200\130\2\0\46\0\0\240\210\54" "cp1251\0" "windows1251\0" "\0\0" "\4\25\164\344\124\112\72\271\44\223\124\76\271\20\224\14\71\324\20\104" "\122\25\151\44\222\111\66\31\244\220\1\140\231\125\224\132\161\265\225\127" "\0\74\324\225\102\0\174\5\0\0\3\1\140\20\0\0\0\0\100\102\0\0\200\220\125" "\140\1\0\0\0\121\135\111\25\0\130\35\124\325\125\21\111\64\21\105" "\25\131\164\21\106\31\151\264\21\107\35\171\364\21\110\41\211\64\22\111" "\45\231\164\22\112\51\251\264\22\113\55\271\364\22\114\61\311\64\23\115" "\65\331\164\23\116\71\351\264\23\117\75\371\364\23\120\101\11\65\24\121" "\105\31\165\24\122\111\51\265\24\123\115\71\365\24\124" "cp1252\0" "windows1252\0" "\0\0" "\124\6\160\244\51\112\72\271\44\223\257\74\171\10\224\171\4\100\112\0" "\1\24\151\44\222\111\66\31\244\220\264\140\211\110\224\172\4\120\312\47" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "cp1253\0" "windows1253\0" "\0\0" "\124\6\160\244\51\112\72\271\44\223\1\74\31\0\224\1\4\20\100\0\1\24\151\44\222" "\111\66\31\244\220\1\140\31\100\224\1\4\20\100\0\0\364\342\13\0\0\0\0\0\0" "\0\0\20\0\0\0\0\0\300\220\0\0\0\0\0\274\0\0\0\0\277\0\23\14\0\302\0\60\14\61" "\305\30\163\14\62\311\50\263\14\63\315\70\363\14\64\321\110\63\15\65" "\325\130\23\300\65\330\144\243\315\66\334\164\343\315\67\340\204\43\316\70" "\344\224\143\316\71\350\244\243\316\72\354\264\343\316\73\360\304\43\317\74" "\364\324\143\317\75\370\344\243\317\76\374\364\343\317\77\0\5\44\120\0" "cp1254\0" "windows1254\0" "\0\0" "\124\6\160\244\51\112\72\271\44\223\257\74\171\10\224\171\4\20\100\0" "\1\24\151\44\222\111\66\31\244\220\264\140\211\110\224\172\4\20\300\47" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\116\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\170\121\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\117\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\174\141\10\0" "cp1255\0" "windows1255\0" "\0\0" "\124\6\160\244\51\112\72\271\44\223\257\74\31\0\224\1\4\20\100\0" "\1\24\151\44\222\111\66\31\244\220\264\140\31\100\224\1\4\20\100\0\0\0\0\0\0" "\122\2\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\0\0\0\0\0\0\0" "\141\211\65\26\131\145\231\165\26\132\151\251\25\300\132\154\265\345\326\133" "\160\305\45\327\134\217\101\26\231\144\223\5\20\100\0\1\4\20\100\0" "\164\325\145\327\135\170\345\245\327\136\174\365\345\327\137\200\5\46\330\140" "\204\25\146\330\141\210\45\246\330\142\214\65\346\130\0\1\374\10\144\0" "cp1256\0" "windows1256\0" "\0\0" "\124\26\167\244\51\112\72\271\44\223\257\74\111\34\224\171\30\227\334\161" "\313\25\151\44\222\111\66\31\244\220\312\141\211\134\224\172\364\350\43\163" "\0\120\6\0\0\0\0\0\0\0\0\0\320\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\120\31\0" "\0\0\0\200\145\316\135\206\131\146\232\155\306\131\147\236\175\6\132\150" "\242\215\106\132\151\246\235\206\132\152\252\255\306\32\0\255\271\366\32\154" "\261\311\66\33\155\0\324\6\200\155\267\341\226\33\0\0\0\0\0\0\272\355\6\0\0" "\274\365\346\333\157\0\0\27\34\0\302\1\60\34\0\0\374\10\344\163" "cp1257\0" "windows1257\0" "\0\0" "\124\6\160\144\0\112\72\271\44\223\1\74\31\0\224\1\20\0\213\2\1\24\151\44\222" "\111\66\31\244\220\1\140\31\100\224\1\30\60\113\0\0\4\0\0\0\0\4\0\0\0" "\15\0\320\7\0\0\0\0\300\2\0\0\0\0\0\0\0\0\0\0\20\0\340\7\0\0\0\0\200\3" "\66\160\41\3\16\0\0\200\4\21\76\0\0\212\21\122\210\241\305\31\207\264\361\6\0" "\165\0\0\0\0\231\254\21\110\44\0\210\102\12\0\67\164\61\103\16\0\0\220\104\21" "\77\0\20\312\21\123\214\261\5\32\210\270\1\7\0\166\0\0\0\0\232\260\41\210\44" "\0\214\122\212\54" "cp1258\0" "windows1258\0" "\0\0" "\124\6\160\244\51\112\72\271\44\223\257\74\31\0\224\171\4\20\100\0" "\1\24\151\44\222\111\66\31\244\220\264\140\31\100\224\172\4\20\300\47" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\15\0\0\0\0\0\0\0\0\0\0\266\0\0\0\0\102\0\220\13\0" "\0\234\2\0\0\0\0\0\0\0\0\244\202\13\0\0\0\0\100\15\0\0\0\0\0\0\0\0\0\0" "\267\0\0\0\0\103\0\240\13\0\0\240\2\0\0\0\0\0\0\0\0\250\62\45\0" "koi8r\0" "\0\0" "\140\206\51\346\230\144\226\151\346\231\150\246\251\46\242\211\52\272\50\243" "\215\72\372\250\227\220\146\251\345\226\134\166\51\300\227\7\40\220\300\3" "\153\262\331\146\124\156\276\11\147\234\162\316\111\147\235" "\166\336\211\147\236\172\356\311\347\100\175\372\371\47\240\201\12\72\50\241" "\205\32\172\150\1\117\305\44\323\121\65\331\124\24\115\106\345\244\323\116" "\74\365\344\323\117\100\101\25\224\120\103\21\165\323\114\115\61\205\123\122" "\116\51\205\324\122\57\105\44\321\111\25\131\124\22\105\46\145\244\321\106" "\34\165\344\321\107\40\301\24\222\110\43\221\164\321\104\55\261\204\121\112" "\56\251\204\322\112" "koi8u\0" "\0\0" "\140\206\51\346\230\144\226\151\346\231\150\246\251\46\242\211\52\272\50\243" "\215\72\372\250\227\220\146\251\345\226\134\166\51\300\227\7\40\220\300\3" "\153\262\331\146\124\124\275\151\325\125\162\316\111\147\235" "\166\202\205\147\236\172\356\311\347\100\6\371\211\120\102\201\12\72\50\241" "\205\176\165\150\1\117\305\44\323\121\65\331\124\24\115\106\345\244\323\116" "\74\365\344\323\117\100\101\25\224\120\103\21\165\323\114\115\61\205\123\122" "\116\51\205\324\122\57\105\44\321\111\25\131\124\22\105\46\145\244\321\106" "\34\165\344\321\107\40\301\24\222\110\43\221\164\321\104\55\261\204\121\112" "\56\251\204\322\112" "cp437\0" "\0\0" "\27\300\100\202\7\37\164\0\202\10\45\230\60\102\12\50\234\100\101\5" "\30\70\260\300\12\54\250\360\202\13\61\144\300\101\4\22\114\140\245\51" "\221\106\32\151\244\221\106\32\151\244\221\106\32\151\244\221\106\32\151\244" "\215\72\372\150\230\147\362\331\147\234\160\372\311\246\234" "\170\336\151\347\230\144\246\211\246\231\140\252\231\247\236" "\165\276\111\150\240\173\256\171\250\240\203\376\11\50\235\163\266\351\246\241" "\205\226\51\246\242\211\56\312\50\242\345\104\212\14\75\327\334\23\51\76" "\332\64\323\15\72\221\352\223\116\244\221\106\332\45\227\136\176\371\300\226" "\7\144\231\200\226\221\42\0\251\0" "cp850\0" "\0\0" "\27\300\100\202\7\37\164\0\202\10\45\230\60\102\12\50\234\100\101\5" "\30\70\260\300\12\54\250\360\202\13\61\144\300\1\4\22\64\300\200\51" "\221\106\32\151\244\221\106\32\151\244\221\106\32\151\244\221\106\32\151\244" "\215\72\372\150\230\147\106\32\151\244\5\370\311\246\234\170\106\60\301\230" "\144\246\211\246\231\140\252\31\151\244\165\276\111\150\240" "\173\256\171\150\244\221\106\32\151\244\221\176\21\151\244\221\226\51\246\242" "\211\106\32\51\242\221\106\32\151\244\221\106\32\151\244\221\106\32\151\244" "\221\106\152\100\244\221\106\112\144\244\221\16\360\200\2\7\20\220\100\244" "\221\42\0\251\0"
17321c8ad8f415d02922056979310513d9fecd9b
d8fbc197e4fb03e0f083291ec92b75542bcb4917
/src/crt/math_quat.c
e1929d52cbe93da25c82d0363ba94bbdb285e96b
[]
no_license
hujianzhe/util
b7576091b9d1daa4e3b7f2e8d3be85501c7877a5
146f6c2395c6d8da7383a41d35ebc8190ba8ea02
refs/heads/master
2023-08-18T13:00:57.886249
2023-08-15T08:57:33
2023-08-15T08:57:33
112,769,785
162
55
null
2020-06-09T16:03:15
2017-12-01T17:49:43
C
UTF-8
C
false
false
6,964
c
math_quat.c
// // Created by hujianzhe // #include "../../inc/crt/math.h" #include "../../inc/crt/math_vec3.h" #include "../../inc/crt/math_quat.h" #include <stddef.h> #ifdef __cplusplus extern "C" { #endif float* mathQuatSet(float q[4], float x, float y, float z, float w) { q[0] = x; q[1] = y; q[2] = z; q[3] = w; return q; } float* mathQuatNormalized(float r[4], const float q[4]) { float m = q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]; if (m > CCT_EPSILON) { m = 1.0f / sqrtf(m); r[0] = q[0] * m; r[1] = q[1] * m; r[2] = q[2] * m; r[3] = q[3] * m; } return r; } float* mathQuatFromEuler(float q[4], const float e[3], const char order[3]) { float pitch_x = e[0]; float yaw_y = e[1]; float roll_z = e[2]; float c1 = cosf(pitch_x * 0.5f); float c2 = cosf(yaw_y * 0.5f); float c3 = cosf(roll_z * 0.5f); float s1 = sinf(pitch_x * 0.5f); float s2 = sinf(yaw_y * 0.5f); float s3 = sinf(roll_z * 0.5f); if (order[0] == 'X' && order[1] == 'Y' && order[2] == 'Z') { q[0] = s1 * c2 * c3 + c1 * s2 * s3; q[1] = c1 * s2 * c3 - s1 * c2 * s3; q[2] = c1 * c2 * s3 + s1 * s2 * c3; q[3] = c1 * c2 * c3 - s1 * s2 * s3; } else if (order[0] == 'Y' && order[1] == 'X' && order[2] == 'Z') { q[0] = s1 * c2 * c3 + c1 * s2 * s3; q[1] = c1 * s2 * c3 - s1 * c2 * s3; q[2] = c1 * c2 * s3 - s1 * s2 * c3; q[3] = c1 * c2 * c3 + s1 * s2 * s3; } else if (order[0] == 'Z' && order[1] == 'X' && order[2] == 'Y') { q[0] = s1 * c2 * c3 - c1 * s2 * s3; q[1] = c1 * s2 * c3 + s1 * c2 * s3; q[2] = c1 * c2 * s3 + s1 * s2 * c3; q[3] = c1 * c2 * c3 - s1 * s2 * s3; } else if (order[0] == 'Z' && order[1] == 'Y' && order[2] == 'X') { q[0] = s1 * c2 * c3 - c1 * s2 * s3; q[1] = c1 * s2 * c3 + s1 * c2 * s3; q[2] = c1 * c2 * s3 - s1 * s2 * c3; q[3] = c1 * c2 * c3 + s1 * s2 * s3; } else if (order[0] == 'Y' && order[1] == 'Z' && order[2] == 'X') { q[0] = s1 * c2 * c3 + c1 * s2 * s3; q[1] = c1 * s2 * c3 + s1 * c2 * s3; q[2] = c1 * c2 * s3 - s1 * s2 * c3; q[3] = c1 * c2 * c3 - s1 * s2 * s3; } else if (order[0] == 'X' && order[1] == 'Z' && order[2] == 'Y') { q[0] = s1 * c2 * c3 - c1 * s2 * s3; q[1] = c1 * s2 * c3 - s1 * c2 * s3; q[2] = c1 * c2 * s3 + s1 * s2 * c3; q[3] = c1 * c2 * c3 + s1 * s2 * s3; } else { q[0] = q[1] = q[2] = 0.0f; q[3] = 1.0f; } return q; } float* mathQuatFromUnitVec3(float q[4], const float from[3], const float to[3]) { float v[3]; float w = mathVec3Dot(from, to) + 1.0f; if (w < 1E-7f) { float from_abs_x = from[0] > 0.0f ? from[0] : -from[0]; float from_abs_z = from[2] > 0.0f ? from[2] : -from[2]; if (from_abs_x > from_abs_z) { v[0] = -from[1]; v[1] = from[0]; v[2] = 0.0f; } else { v[0] = 0.0f; v[1] = -from[2]; v[2] = from[1]; } w = 0.0f; } else { mathVec3Cross(v, from, to); } q[0] = v[0]; q[1] = v[1]; q[2] = v[2]; q[3] = w; return mathQuatNormalized(q, q); } float* mathQuatFromAxisRadian(float q[4], const float axis[3], float radian) { const float half_rad = radian * 0.5f; const float s = sinf(half_rad); q[0] = axis[0] * s; q[1] = axis[1] * s; q[2] = axis[2] * s; q[3] = cosf(half_rad); return q; } void mathQuatToAxisRadian(const float q[4], float axis[3], float* radian) { const float qx = q[0], qy = q[1], qz = q[2], qw = q[3]; const float s2 = qx*qx + qy*qy + qz*qz; const float s = 1.0f / sqrtf(s2); axis[0] = qx * s; axis[1] = qy * s; axis[2] = qz * s; *radian = atan2f(s2*s, qw) * 2.0f; } float* mathQuatIdentity(float q[4]) { q[0] = q[1] = q[2] = 0.0f; q[3] = 1.0f; return q; } float* mathQuatToMat44(const float q[4], float m[16]) { float x = q[0]; float y = q[1]; float z = q[2]; float w = q[3]; float x2 = x + x; float y2 = y + y; float z2 = z + z; float xx = x2 * x; float yy = y2 * y; float zz = z2 * z; float xy = x2 * y; float xz = x2 * z; float xw = x2 * w; float yz = y2 * z; float yw = y2 * w; float zw = z2 * w; /* column 0 */ m[0] = 1.0f - yy - zz; m[1] = xy + zw; m[2] = xz - yw; m[3] = 0.0f; /* column 1 */ m[4] = xy - zw; m[5] = 1.0f - xx - zz; m[6] = yz + xw; m[7] = 0.0f; /* column 2 */ m[8] = xz + yw; m[9] = yz - xw; m[10] = 1.0f - xx - yy; m[11] = 0.0f; /* column 3 */ m[12] = 0.0f; m[13] = 0.0f; m[14] = 0.0f; m[15] = 1.0f; return m; } float* mathQuatFromMat33(float q[4], const float m[9]) { float t; if (m[8] < 0.0f) { if (m[0] > m[4]) { t = 1 + m[0] - m[4] - m[8]; mathQuatSet(q, t, m[1]+m[3], m[6]+m[2], m[5]-m[7]); } else { t = 1 - m[0] + m[4] - m[8]; mathQuatSet(q, m[1]+m[3], t, m[5]+m[7], m[6]-m[2]); } } else { if (m[0] < -m[4]) { t = 1 - m[0] - m[4] + m[8]; mathQuatSet(q, m[6]+m[2], m[5]+m[7], t, m[1]-m[3]); } else { t = 1 + m[0] + m[4] + m[8]; mathQuatSet(q, m[5]-m[7], m[6]-m[2], m[1]-m[3], t); } } mathQuatMultiplyScalar(q, q, 0.5f / sqrtf(t)); return q; } float mathQuatDot(const float q1[4], const float q2[4]) { return q1[0]* q2[0] + q1[1]*q2[1] + q1[2]*q2[2] + q1[3]*q2[3]; } /* r = -q */ float* mathQuatConjugate(float r[4], const float q[4]) { r[0] = -q[0]; r[1] = -q[1]; r[2] = -q[2]; r[3] = q[3]; return r; } /* r = q*n */ float* mathQuatMultiplyScalar(float r[4], const float q[4], float n) { r[0] = q[0] * n; r[1] = q[1] * n; r[2] = q[2] * n; r[3] = q[3] * n; return r; } /* r = q/n */ float* mathQuatDivisionScalar(float r[4], const float q[4], float n) { if (n > 1e-6f || n < -1e-6f) { float inv = 1.0f / n; r[0] = q[0] * inv; r[1] = q[1] * inv; r[2] = q[2] * inv; r[3] = q[3] * inv; } return r; } /* r = q1 * q2 */ float* mathQuatMulQuat(float r[4], const float q1[4], const float q2[4]) { const float q1x = q1[0], q1y = q1[1], q1z = q1[2], q1w = q1[3]; const float q2x = q2[0], q2y = q2[1], q2z = q2[2], q2w = q2[3]; r[0] = q1w*q2x + q2w*q1x + q1y*q2z - q2y*q1z; r[1] = q1w*q2y + q2w*q1y + q1z*q2x - q2z*q1x; r[2] = q1w*q2z + q2w*q1z + q1x*q2y - q2x*q1y; r[3] = q1w*q2w - q2x*q1x - q1y*q2y - q2z*q1z; return r; } /* r = q * v */ float* mathQuatMulVec3(float r[3], const float q[4], const float v[3]) { const float vx = 2.0f * v[0]; const float vy = 2.0f * v[1]; const float vz = 2.0f * v[2]; const float qx = q[0], qy = q[1], qz = q[2], qw = q[3]; const float qw2 = qw*qw - 0.5f; const float dot2 = qx*vx + qy*vy + qz*vz; r[0] = vx*qw2 + (qy * vz - qz * vy)*qw + qx*dot2; r[1] = vy*qw2 + (qz * vx - qx * vz)*qw + qy*dot2; r[2] = vz*qw2 + (qx * vy - qy * vx)*qw + qz*dot2; return r; } /* r = q * v */ float* mathQuatMulVec3Inv(float r[3], const float q[4], const float v[3]) { const float vx = 2.0f * v[0]; const float vy = 2.0f * v[1]; const float vz = 2.0f * v[2]; const float qx = q[0], qy = q[1], qz = q[2], qw = q[3]; const float qw2 = qw*qw - 0.5f; const float dot2 = qx*vx + qy*vy + qz*vz; r[0] = vx*qw2 - (qy * vz - qz * vy)*qw + qx*dot2; r[1] = vy*qw2 - (qz * vx - qx * vz)*qw + qy*dot2; r[2] = vz*qw2 - (qx * vy - qy * vx)*qw + qz*dot2; return r; } #ifdef __cplusplus } #endif
642a20e1ac47bc727926a102f99acc99feb5c845
e9b2c1f687bb9f34732d7eb2bc784a75705a371e
/filters/ddrescue/ddrescue.c
081f5671209383041217a03cae286895e13b9dab
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
libguestfs/nbdkit
30bf70eb29843805597a6bbe5b56cc024bfedead
45b72f5bd8fc1b475fa130d06c86cd877bf595d5
refs/heads/master
2023-09-02T12:48:33.201066
2023-03-10T09:59:15
2023-03-10T10:08:50
10,839,800
209
45
NOASSERTION
2021-01-24T00:25:00
2013-06-21T09:43:21
C
UTF-8
C
false
false
5,681
c
ddrescue.c
/* nbdkit * Copyright (C) 2018-2020 François Revol. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Red Hat nor the names of its contributors may be * used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <config.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <pthread.h> #include <nbdkit-filter.h> #include "cleanup.h" #include "getline.h" #include "vector.h" struct range { int64_t start; int64_t end; int64_t size; char status; }; DEFINE_VECTOR_TYPE (ranges, struct range); struct mapfile { int ranges_count; ranges ranges; }; static struct mapfile map = { 0, empty_vector }; static int parse_mapfile (const char *filename) { FILE *fp = NULL; CLEANUP_FREE char *line = NULL; size_t linelen = 0; ssize_t len; int ret = -1; int status_seen = 0; fp = fopen (filename, "r"); if (!fp) { nbdkit_error ("%s: ddrescue: fopen: %m", filename); goto out; } while ((len = getline (&line, &linelen, fp)) != -1) { int64_t offset, length; char status; if (len > 0 && line[len-1] == '\n') { line[len-1] = '\0'; len--; } if (len > 0 && line[0] == '#') continue; if (len > 0 && !status_seen) { /* status line, ignore it for now */ status_seen = 1; nbdkit_debug ("%s: skipping status line: '%s'", filename, line); continue; } if (sscanf (line, "%" SCNi64 "\t%" SCNi64 "\t%c", &offset, &length, &status) == 3) { if (offset < 0) { nbdkit_error ("block offset must not be negative"); return -1; } if (length < 0) { nbdkit_error ("block length must not be negative"); return -1; } if (status == '+') { struct range new_range = { .start = offset, .end = offset + length - 1, .size = length, .status = status }; if (ranges_append (&map.ranges, new_range) == -1) { nbdkit_error ("%s: ddrescue: realloc: %m", filename); goto out; } } nbdkit_debug ("%s: range: 0x%" PRIx64 " 0x%" PRIx64 " '%c'", filename, offset, length, status); } } ret = 0; out: if (fp) fclose (fp); return ret; } /* On unload, free the mapfile data. */ static void ddrescue_unload (void) { free (map.ranges.ptr); } static int ddrescue_config (nbdkit_next_config *next, nbdkit_backend *nxdata, const char *key, const char *value) { if (strcmp (key, "ddrescue-mapfile") == 0) { if (parse_mapfile (value) == -1) return -1; return 0; } else return next (nxdata, key, value); } #define ddrescue_config_help \ "ddrescue-mapfile=... Specify ddrescue mapfile to use" /* We need this because otherwise the layer below can_write is called * and that might return true (eg. if the plugin has a pwrite method * at all), resulting in writes being passed through to the layer * below. */ static int ddrescue_can_write (nbdkit_next *next, void *handle) { return 0; } static int ddrescue_can_cache (nbdkit_next *next, void *handle) { return 0; } /* Read data. */ static int ddrescue_pread (nbdkit_next *next, void *handle, void *buf, uint32_t count, uint64_t offset, uint32_t flags, int *err) { size_t i; for (i = 0; i < map.ranges.len; i++) { if (map.ranges.ptr[i].status != '+') continue; if (offset >= map.ranges.ptr[i].start && offset <= map.ranges.ptr[i].end) { if (offset + count - 1 <= map.ranges.ptr[i].end) { /* entirely contained within this range */ return next->pread (next, buf, count, offset, flags, err); } } } /* read was not fully covered */ nbdkit_debug ("ddrescue: pread: range: 0x%" PRIx64 " 0x%" PRIx32 " failing with EIO", offset, count); *err = EIO; return -1; } static struct nbdkit_filter filter = { .name = "ddrescue", .longname = "nbdkit ddrescue mapfile filter", .unload = ddrescue_unload, .config = ddrescue_config, .config_help = ddrescue_config_help, .can_write = ddrescue_can_write, .can_cache = ddrescue_can_cache, .pread = ddrescue_pread, }; NBDKIT_REGISTER_FILTER (filter)
3a026247cd3b982c16fec63f4fded1e15b9e7229
58fe7cb3949dd1930e709696659a0296500b64a6
/tests/unit/s2n_client_supported_versions_extension_test.c
cd4d7b6a4b09e51a1ac1b4ae31a1b4ba3a4d3bb6
[ "Apache-2.0", "MIT" ]
permissive
aws/s2n-tls
3344638a6a69c6f20665cf6847e1bc4b85f2e558
62dc7a6d4876e5eee0dea3690d528a4c7080a1d5
refs/heads/main
2023-08-31T23:26:33.780048
2023-08-31T05:17:33
2023-08-31T05:17:33
21,287,076
513
213
Apache-2.0
2023-09-13T23:52:29
2014-06-27T19:37:59
C
UTF-8
C
false
false
20,125
c
s2n_client_supported_versions_extension_test.c
/* * Copyright 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 "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #include <stdint.h> #include "s2n_test.h" #include "stuffer/s2n_stuffer.h" #include "testlib/s2n_testlib.h" #include "tls/extensions/s2n_client_supported_versions.h" #include "tls/s2n_alerts.h" #include "tls/s2n_config.h" #include "tls/s2n_connection.h" #include "tls/s2n_tls.h" #include "tls/s2n_tls13.h" #include "utils/s2n_safety.h" #define PROTOCOL_VERSION_ALERT 70 #define GREASED_SUPPORTED_VERSION_EXTENSION_VALUES 0x0A0A, 0x1A1A, 0x2A2A, 0x3A3A, 0x4A4A, 0x5A5A, 0x6A6A, 0x7A7A, 0x8A8A, 0x9A9A, 0xAAAA, 0xBABA, 0xCACA, 0xDADA, 0xEAEA, 0xFAFA int write_test_supported_versions_list(struct s2n_stuffer *list, uint8_t *supported_versions, uint8_t length) { POSIX_GUARD(s2n_stuffer_write_uint8(list, length * S2N_TLS_PROTOCOL_VERSION_LEN)); for (size_t i = 0; i < length; i++) { POSIX_GUARD(s2n_stuffer_write_uint8(list, supported_versions[i] / 10)); POSIX_GUARD(s2n_stuffer_write_uint8(list, supported_versions[i] % 10)); } return 0; } int main(int argc, char **argv) { BEGIN_TEST(); EXPECT_SUCCESS(s2n_enable_tls13_in_test()); uint8_t latest_version = S2N_TLS13; struct s2n_config *config; EXPECT_NOT_NULL(config = s2n_config_new()); const struct s2n_security_policy *security_policy_with_tls13_and_earlier = &security_policy_20190801; EXPECT_TRUE(s2n_security_policy_supports_tls13(security_policy_with_tls13_and_earlier)); EXPECT_EQUAL(security_policy_with_tls13_and_earlier->minimum_protocol_version, S2N_TLS10); /* Client offers all supported versions in version list */ { struct s2n_connection *conn = s2n_connection_new(S2N_CLIENT); EXPECT_NOT_NULL(conn); conn->security_policy_override = security_policy_with_tls13_and_earlier; struct s2n_stuffer extension = { 0 }; EXPECT_SUCCESS(s2n_stuffer_growable_alloc(&extension, 0)); EXPECT_SUCCESS(s2n_client_supported_versions_extension.send(conn, &extension)); /* Total supported versions. * If the "+1" looks wrong, consider what would happen if latest_version == S2N_TLS10. */ size_t supported_versions = (latest_version - S2N_TLS10) + 1; /* Check extension contains enough versions */ uint8_t version_list_size = 0; EXPECT_SUCCESS(s2n_stuffer_read_uint8(&extension, &version_list_size)); EXPECT_EQUAL(version_list_size, S2N_TLS_PROTOCOL_VERSION_LEN * supported_versions); EXPECT_SUCCESS(s2n_connection_free(conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Client doesn't offer <TLS1.3 in the version list if QUIC enabled */ if (s2n_is_tls13_fully_supported()) { /* For simplicity, we assume TLS1.3 is the latest version. */ EXPECT_EQUAL(latest_version, S2N_TLS13); struct s2n_connection *conn = s2n_connection_new(S2N_CLIENT); EXPECT_NOT_NULL(conn); EXPECT_SUCCESS(s2n_connection_enable_quic(conn)); conn->security_policy_override = security_policy_with_tls13_and_earlier; struct s2n_stuffer extension = { 0 }; EXPECT_SUCCESS(s2n_stuffer_growable_alloc(&extension, 0)); EXPECT_SUCCESS(s2n_client_supported_versions_extension.send(conn, &extension)); /* Check extension contains only one version */ uint8_t version_list_size = 0; EXPECT_SUCCESS(s2n_stuffer_read_uint8(&extension, &version_list_size)); EXPECT_EQUAL(version_list_size, S2N_TLS_PROTOCOL_VERSION_LEN); /* Check single version is TLS1.3 */ uint16_t version = 0; EXPECT_SUCCESS(s2n_stuffer_read_uint16(&extension, &version)); EXPECT_EQUAL(version, 0x0304); EXPECT_SUCCESS(s2n_connection_free(conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); } /* Client produces a version list that the server can parse */ { struct s2n_connection *client_conn; EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT)); EXPECT_SUCCESS(s2n_connection_set_config(client_conn, config)); int size_result = s2n_extensions_client_supported_versions_size(client_conn); EXPECT_NOT_EQUAL(size_result, -1); uint16_t expected_length = size_result - S2N_EXTENSION_TYPE_FIELD_LENGTH - S2N_EXTENSION_LENGTH_FIELD_LENGTH; struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, expected_length); EXPECT_SUCCESS(s2n_client_supported_versions_extension.send(client_conn, &extension)); /* Check that the size is correct */ EXPECT_EQUAL(expected_length, s2n_stuffer_data_available(&extension)); /* Check that the server can process the version list */ struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); /* Server should negotiate the most recent version */ EXPECT_SUCCESS(s2n_client_supported_versions_extension.recv(server_conn, &extension)); EXPECT_EQUAL(server_conn->client_protocol_version, latest_version); EXPECT_EQUAL(server_conn->server_protocol_version, latest_version); EXPECT_EQUAL(server_conn->actual_protocol_version, latest_version); EXPECT_SUCCESS(s2n_connection_free(client_conn)); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server selects highest supported version shared by client */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint8_t unsupported_client_version = 255; uint8_t supported_version_list[] = { S2N_TLS11, S2N_TLS12, S2N_TLS13, unsupported_client_version }; uint8_t supported_version_list_length = sizeof(supported_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, supported_version_list_length * 2 + 1); EXPECT_SUCCESS(write_test_supported_versions_list(&extension, supported_version_list, supported_version_list_length)); EXPECT_SUCCESS(s2n_client_supported_versions_extension.recv(server_conn, &extension)); EXPECT_EQUAL(server_conn->client_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->server_protocol_version, latest_version); EXPECT_EQUAL(server_conn->actual_protocol_version, S2N_TLS13); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server does not process the extension if using TLS1.2. */ { EXPECT_SUCCESS(s2n_disable_tls13_in_test()); struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint8_t unsupported_client_version = 255; uint8_t supported_version_list[] = { S2N_TLS11, S2N_TLS12, S2N_TLS13, unsupported_client_version }; uint8_t supported_version_list_length = sizeof(supported_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, supported_version_list_length * 2 + 1); EXPECT_SUCCESS(write_test_supported_versions_list(&extension, supported_version_list, supported_version_list_length)); EXPECT_SUCCESS(s2n_enable_tls13_in_test()); EXPECT_SUCCESS(s2n_client_supported_versions_extension.recv(server_conn, &extension)); EXPECT_EQUAL(server_conn->client_protocol_version, S2N_UNKNOWN_PROTOCOL_VERSION); EXPECT_EQUAL(server_conn->server_protocol_version, S2N_TLS12); EXPECT_EQUAL(server_conn->actual_protocol_version, S2N_UNKNOWN_PROTOCOL_VERSION); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server terminates connection if there are no supported version in the list */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint16_t invalid_version_list[] = { 0x0020, 0x0021, 0x0403, 0x0305, 0x7a7a, 0x0201 }; uint8_t invalid_version_list_length = s2n_array_len(invalid_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, invalid_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN + 1); POSIX_GUARD(s2n_stuffer_write_uint8(&extension, invalid_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN)); for (size_t i = 0; i < invalid_version_list_length; i++) { POSIX_GUARD(s2n_stuffer_write_uint16(&extension, invalid_version_list[i])); } EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_UNKNOWN_PROTOCOL_VERSION); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Check grease values for the supported versions */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint16_t grease_version_list[] = { 0x0304, GREASED_SUPPORTED_VERSION_EXTENSION_VALUES }; uint8_t grease_version_list_length = s2n_array_len(grease_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, grease_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN + 1); POSIX_GUARD(s2n_stuffer_write_uint8(&extension, grease_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN)); for (size_t i = 0; i < grease_version_list_length; i++) { POSIX_GUARD(s2n_stuffer_write_uint16(&extension, grease_version_list[i])); } EXPECT_SUCCESS(s2n_client_supported_versions_extension.recv(server_conn, &extension)); EXPECT_EQUAL(server_conn->client_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->server_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->actual_protocol_version, S2N_TLS13); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server selects highest supported protocol among list of invalid protocols (that purposefully test our conversion methods) */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint16_t invalid_version_list[] = { 0x0020, 0x0200, 0x0201, 0x0304, 0x0021, 0x0305, 0x0403, 0x7a7a }; uint8_t invalid_version_list_length = s2n_array_len(invalid_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, invalid_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN + 1); POSIX_GUARD(s2n_stuffer_write_uint8(&extension, invalid_version_list_length * S2N_TLS_PROTOCOL_VERSION_LEN)); for (size_t i = 0; i < invalid_version_list_length; i++) { POSIX_GUARD(s2n_stuffer_write_uint16(&extension, invalid_version_list[i])); } EXPECT_SUCCESS(s2n_client_supported_versions_extension.recv(server_conn, &extension)); EXPECT_EQUAL(server_conn->client_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->server_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->actual_protocol_version, S2N_TLS13); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server alerts if no shared supported version found */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); uint8_t supported_version_list[] = { S2N_SSLv3 }; uint8_t supported_version_list_length = sizeof(supported_version_list); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, supported_version_list_length * 2 + 1); EXPECT_SUCCESS(write_test_supported_versions_list(&extension, supported_version_list, supported_version_list_length)); EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_PROTOCOL_VERSION_UNSUPPORTED); EXPECT_EQUAL(server_conn->reader_alert_out, PROTOCOL_VERSION_ALERT); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server alerts if supported version list is empty */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, 1); EXPECT_SUCCESS(s2n_stuffer_write_uint8(&extension, 0)); EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_UNKNOWN_PROTOCOL_VERSION); EXPECT_EQUAL(server_conn->reader_alert_out, PROTOCOL_VERSION_ALERT); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server alerts if version list size exceeds the extension size */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, 1); EXPECT_SUCCESS(s2n_stuffer_write_uint8(&extension, 13)); EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_BAD_MESSAGE); EXPECT_EQUAL(server_conn->reader_alert_out, PROTOCOL_VERSION_ALERT); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server alerts if version list size is less than extension size */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, 5); EXPECT_SUCCESS(s2n_stuffer_write_uint8(&extension, 2)); EXPECT_SUCCESS(s2n_stuffer_write_uint16(&extension, 0x0302)); EXPECT_SUCCESS(s2n_stuffer_write_uint16(&extension, 0x0303)); EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_BAD_MESSAGE); EXPECT_EQUAL(server_conn->reader_alert_out, PROTOCOL_VERSION_ALERT); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Server alerts if version list size is odd */ { struct s2n_connection *server_conn; EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_SERVER)); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config)); struct s2n_stuffer extension = { 0 }; s2n_stuffer_alloc(&extension, 4); EXPECT_SUCCESS(s2n_stuffer_write_uint8(&extension, 3)); EXPECT_SUCCESS(s2n_stuffer_write_uint16(&extension, 0x0302)); EXPECT_SUCCESS(s2n_stuffer_write_uint8(&extension, 0x03)); EXPECT_FAILURE_WITH_ERRNO(s2n_client_supported_versions_extension.recv(server_conn, &extension), S2N_ERR_BAD_MESSAGE); EXPECT_EQUAL(server_conn->reader_alert_out, PROTOCOL_VERSION_ALERT); EXPECT_SUCCESS(s2n_connection_free(server_conn)); EXPECT_SUCCESS(s2n_stuffer_free(&extension)); }; /* Since the supported_version extension replaces the version field * in the client hello, for backwards compatibility the version field * should be set to 1.2 even when a higher version is supported. */ { struct s2n_connection *conn; EXPECT_NOT_NULL(conn = s2n_connection_new(S2N_CLIENT)); EXPECT_SUCCESS(s2n_client_hello_send(conn)); struct s2n_stuffer client_hello = conn->handshake.io; uint8_t version[2]; s2n_stuffer_read_bytes(&client_hello, version, 2); EXPECT_EQUAL(version[0], 0x03); EXPECT_EQUAL(version[1], 0x03); EXPECT_SUCCESS(s2n_connection_free(conn)); }; /** *= https://tools.ietf.org/rfc/rfc8446#appendix-D.2 *= type=test *# A TLS server can also receive a ClientHello indicating a version number smaller than its highest supported *# version. If the "supported_versions" extension is present, the server MUST negotiate using that extension as *# described in Section 4.2.1. */ if (s2n_is_tls13_fully_supported()) { DEFER_CLEANUP(struct s2n_cert_chain_and_key *chain_and_key = NULL, s2n_cert_chain_and_key_ptr_free); EXPECT_SUCCESS(s2n_test_cert_chain_and_key_new(&chain_and_key, S2N_DEFAULT_ECDSA_TEST_CERT_CHAIN, S2N_DEFAULT_ECDSA_TEST_PRIVATE_KEY)); DEFER_CLEANUP(struct s2n_config *config_with_cert = s2n_config_new(), s2n_config_ptr_free); EXPECT_SUCCESS(s2n_config_add_cert_chain_and_key_to_store(config_with_cert, chain_and_key)); DEFER_CLEANUP(struct s2n_connection *server_conn = s2n_connection_new(S2N_SERVER), s2n_connection_ptr_free); EXPECT_NOT_NULL(server_conn); EXPECT_SUCCESS(s2n_connection_set_config(server_conn, config_with_cert)); DEFER_CLEANUP(struct s2n_connection *client_conn = s2n_connection_new(S2N_CLIENT), s2n_connection_ptr_free); EXPECT_NOT_NULL(client_conn); EXPECT_SUCCESS(s2n_connection_set_config(client_conn, config_with_cert)); struct s2n_test_io_pair io_pair = { 0 }; EXPECT_SUCCESS(s2n_io_pair_init_non_blocking(&io_pair)); EXPECT_SUCCESS(s2n_connections_set_io_pair(client_conn, server_conn, &io_pair)); struct s2n_stuffer *hello_stuffer = NULL; hello_stuffer = &client_conn->handshake.io; EXPECT_SUCCESS(s2n_client_hello_send(client_conn)); /* Overwrite the Client Hello protocol version to TLS10 */ uint8_t small_protocol_version[S2N_TLS_PROTOCOL_VERSION_LEN] = { 0 }; small_protocol_version[0] = S2N_TLS10 / 10; small_protocol_version[1] = S2N_TLS10 % 10; EXPECT_SUCCESS(s2n_stuffer_rewrite(hello_stuffer)); EXPECT_SUCCESS(s2n_stuffer_write_bytes(hello_stuffer, small_protocol_version, S2N_TLS_PROTOCOL_VERSION_LEN)); EXPECT_SUCCESS(s2n_stuffer_write(&server_conn->handshake.io, &hello_stuffer->blob)); EXPECT_SUCCESS(s2n_client_hello_recv(server_conn)); /* The server does not use the protocol version in the Client Hello to set the actual protocol version. */ EXPECT_EQUAL(server_conn->actual_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->client_protocol_version, S2N_TLS13); EXPECT_EQUAL(server_conn->client_hello_version, S2N_TLS10); } EXPECT_SUCCESS(s2n_config_free(config)); END_TEST(); return 0; }
a9082d742738021c30d95df41e00bb249c5176c1
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/sound/core/hrtimer.c
14d483d6b3b00746d619fcc3695a3005a6309aad
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
4,195
c
hrtimer.c
/* * ALSA timer back-end using hrtimer * Copyright (C) 2008 Takashi Iwai * * 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 useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include <linux/init.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/hrtimer.h> #include <sound/core.h> #include <sound/timer.h> MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>"); MODULE_DESCRIPTION("ALSA hrtimer backend"); MODULE_LICENSE("GPL"); MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_HRTIMER)); #define NANO_SEC 1000000000UL /* 10^9 in sec */ static unsigned int resolution; struct snd_hrtimer { struct snd_timer *timer; struct hrtimer hrt; atomic_t running; }; static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) { struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); struct snd_timer *t = stime->timer; unsigned long oruns; if (!atomic_read(&stime->running)) return HRTIMER_NORESTART; oruns = hrtimer_forward_now(hrt, ns_to_ktime(t->sticks * resolution)); snd_timer_interrupt(stime->timer, t->sticks * oruns); if (!atomic_read(&stime->running)) return HRTIMER_NORESTART; return HRTIMER_RESTART; } static int snd_hrtimer_open(struct snd_timer *t) { struct snd_hrtimer *stime; stime = kmalloc(sizeof(*stime), GFP_KERNEL); if (!stime) return -ENOMEM; hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); stime->timer = t; stime->hrt.function = snd_hrtimer_callback; atomic_set(&stime->running, 0); t->private_data = stime; return 0; } static int snd_hrtimer_close(struct snd_timer *t) { struct snd_hrtimer *stime = t->private_data; if (stime) { hrtimer_cancel(&stime->hrt); kfree(stime); t->private_data = NULL; } return 0; } static int snd_hrtimer_start(struct snd_timer *t) { struct snd_hrtimer *stime = t->private_data; atomic_set(&stime->running, 0); hrtimer_try_to_cancel(&stime->hrt); hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), HRTIMER_MODE_REL); atomic_set(&stime->running, 1); return 0; } static int snd_hrtimer_stop(struct snd_timer *t) { struct snd_hrtimer *stime = t->private_data; atomic_set(&stime->running, 0); hrtimer_try_to_cancel(&stime->hrt); return 0; } static struct snd_timer_hardware hrtimer_hw = { .flags = SNDRV_TIMER_HW_AUTO | SNDRV_TIMER_HW_TASKLET, .open = snd_hrtimer_open, .close = snd_hrtimer_close, .start = snd_hrtimer_start, .stop = snd_hrtimer_stop, }; /* * entry functions */ static struct snd_timer *mytimer; static int __init snd_hrtimer_init(void) { struct snd_timer *timer; struct timespec tp; int err; hrtimer_get_res(CLOCK_MONOTONIC, &tp); if (tp.tv_sec > 0 || !tp.tv_nsec) { snd_printk(KERN_ERR "snd-hrtimer: Invalid resolution %u.%09u", (unsigned)tp.tv_sec, (unsigned)tp.tv_nsec); return -EINVAL; } resolution = tp.tv_nsec; /* Create a new timer and set up the fields */ err = snd_timer_global_new("hrtimer", SNDRV_TIMER_GLOBAL_HRTIMER, &timer); if (err < 0) return err; timer->module = THIS_MODULE; strcpy(timer->name, "HR timer"); timer->hw = hrtimer_hw; timer->hw.resolution = resolution; timer->hw.ticks = NANO_SEC / resolution; err = snd_timer_global_register(timer); if (err < 0) { snd_timer_global_free(timer); return err; } mytimer = timer; /* remember this */ return 0; } static void __exit snd_hrtimer_exit(void) { if (mytimer) { snd_timer_global_free(mytimer); mytimer = NULL; } } module_init(snd_hrtimer_init); module_exit(snd_hrtimer_exit);
fd7cf3cb86a28de3e65655ed25a0e54fa6b4b0d1
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/wayland-protocols/gtk/demos/gtk-demo/textundo.c
f1fe41853e96e30f55bb134c717027240749af3b
[ "MIT", "LGPL-2.0-or-later", "LGPL-2.0-only", "LGPL-2.1-only", "BSD-3-Clause", "Apache-2.0", "GPL-1.0-or-later" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
C
false
false
2,710
c
textundo.c
/* Text View/Undo and Redo * * The GtkTextView supports undo and redo through the use of a * GtkTextBuffer. You can enable or disable undo support using * gtk_text_buffer_set_enable_undo(). * * Use Control+z to undo and Control+Shift+z or Control+y to * redo previously undone operations. */ #include <gtk/gtk.h> #include <stdlib.h> /* for exit() */ GtkWidget * do_textundo (GtkWidget *do_widget) { static GtkWidget *window = NULL; if (!window) { GtkWidget *view; GtkWidget *sw; GtkTextBuffer *buffer; GtkTextIter iter; window = gtk_window_new (); gtk_window_set_display (GTK_WINDOW (window), gtk_widget_get_display (do_widget)); gtk_window_set_default_size (GTK_WINDOW (window), 330, 330); gtk_window_set_resizable (GTK_WINDOW (window), FALSE); g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window); gtk_window_set_title (GTK_WINDOW (window), "Undo and Redo"); view = gtk_text_view_new (); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD); gtk_text_view_set_pixels_below_lines (GTK_TEXT_VIEW (view), 10); gtk_text_view_set_left_margin (GTK_TEXT_VIEW (view), 20); gtk_text_view_set_right_margin (GTK_TEXT_VIEW (view), 20); gtk_text_view_set_top_margin (GTK_TEXT_VIEW (view), 20); gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (view), 20); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_set_enable_undo (buffer, TRUE); /* this text cannot be undone */ gtk_text_buffer_begin_irreversible_action (buffer); gtk_text_buffer_get_start_iter (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, "The GtkTextView supports undo and redo through the use of a " "GtkTextBuffer. You can enable or disable undo support using " "gtk_text_buffer_set_enable_undo().\n" "Type to add more text.\n" "Use Control+z to undo and Control+Shift+z or Control+y to " "redo previously undone operations.", -1); gtk_text_buffer_end_irreversible_action (buffer); sw = gtk_scrolled_window_new (); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_window_set_child (GTK_WINDOW (window), sw); gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), view); } if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } else { gtk_window_destroy (GTK_WINDOW (window)); window = NULL; } return window; }
3e8028511556061ac5bee8a0c42be161a441c6c5
f7dc806f341ef5dbb0e11252a4693003a66853d5
/thirdparty/zlib/gzlib.c
55da46a453fd18458828d0a1e55dbad667130d61
[ "LicenseRef-scancode-free-unknown", "MIT", "CC-BY-4.0", "OFL-1.1", "Bison-exception-2.2", "CC0-1.0", "LicenseRef-scancode-nvidia-2002", "LicenseRef-scancode-other-permissive", "GPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSL-1.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unicode", "BSD-2-Clause", "FTL", "GPL-3.0-or-later", "Bitstream-Vera", "Zlib", "MPL-2.0", "MIT-Modern-Variant", "JSON", "Libpng" ]
permissive
godotengine/godot
8a2419750f4851d1426a8f3bcb52cac5c86f23c2
970be7afdc111ccc7459d7ef3560de70e6d08c80
refs/heads/master
2023-08-21T14:37:00.262883
2023-08-21T06:26:15
2023-08-21T06:26:15
15,634,981
68,852
18,388
MIT
2023-09-14T21:42:16
2014-01-04T16:05:36
C++
UTF-8
C
false
false
16,708
c
gzlib.c
/* gzlib.c -- zlib functions common to reading and writing gzip files * Copyright (C) 2004-2019 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "gzguts.h" #if defined(_WIN32) && !defined(__BORLANDC__) # define LSEEK _lseeki64 #else #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 # define LSEEK lseek64 #else # define LSEEK lseek #endif #endif /* Local functions */ local void gz_reset OF((gz_statep)); local gzFile gz_open OF((const void *, int, const char *)); #if defined UNDER_CE /* Map the Windows error number in ERROR to a locale-dependent error message string and return a pointer to it. Typically, the values for ERROR come from GetLastError. The string pointed to shall not be modified by the application, but may be overwritten by a subsequent call to gz_strwinerror The gz_strwinerror function does not change the current setting of GetLastError. */ char ZLIB_INTERNAL *gz_strwinerror(error) DWORD error; { static char buf[1024]; wchar_t *msgbuf; DWORD lasterr = GetLastError(); DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL, error, 0, /* Default language */ (LPVOID)&msgbuf, 0, NULL); if (chars != 0) { /* If there is an \r\n appended, zap it. */ if (chars >= 2 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { chars -= 2; msgbuf[chars] = 0; } if (chars > sizeof (buf) - 1) { chars = sizeof (buf) - 1; msgbuf[chars] = 0; } wcstombs(buf, msgbuf, chars + 1); LocalFree(msgbuf); } else { sprintf(buf, "unknown win32 error (%ld)", error); } SetLastError(lasterr); return buf; } #endif /* UNDER_CE */ /* Reset gzip file state */ local void gz_reset(state) gz_statep state; { state->x.have = 0; /* no output data available */ if (state->mode == GZ_READ) { /* for reading ... */ state->eof = 0; /* not at end of file */ state->past = 0; /* have not read past end yet */ state->how = LOOK; /* look for gzip header */ } else /* for writing ... */ state->reset = 0; /* no deflateReset pending */ state->seek = 0; /* no seek request pending */ gz_error(state, Z_OK, NULL); /* clear error */ state->x.pos = 0; /* no uncompressed data yet */ state->strm.avail_in = 0; /* no input data yet */ } /* Open a gzip file either by name or file descriptor. */ local gzFile gz_open(path, fd, mode) const void *path; int fd; const char *mode; { gz_statep state; z_size_t len; int oflag; #ifdef O_CLOEXEC int cloexec = 0; #endif #ifdef O_EXCL int exclusive = 0; #endif /* check input */ if (path == NULL) return NULL; /* allocate gzFile structure to return */ state = (gz_statep)malloc(sizeof(gz_state)); if (state == NULL) return NULL; state->size = 0; /* no buffers allocated yet */ state->want = GZBUFSIZE; /* requested buffer size */ state->msg = NULL; /* no error message yet */ /* interpret mode */ state->mode = GZ_NONE; state->level = Z_DEFAULT_COMPRESSION; state->strategy = Z_DEFAULT_STRATEGY; state->direct = 0; while (*mode) { if (*mode >= '0' && *mode <= '9') state->level = *mode - '0'; else switch (*mode) { case 'r': state->mode = GZ_READ; break; #ifndef NO_GZCOMPRESS case 'w': state->mode = GZ_WRITE; break; case 'a': state->mode = GZ_APPEND; break; #endif case '+': /* can't read and write at the same time */ free(state); return NULL; case 'b': /* ignore -- will request binary anyway */ break; #ifdef O_CLOEXEC case 'e': cloexec = 1; break; #endif #ifdef O_EXCL case 'x': exclusive = 1; break; #endif case 'f': state->strategy = Z_FILTERED; break; case 'h': state->strategy = Z_HUFFMAN_ONLY; break; case 'R': state->strategy = Z_RLE; break; case 'F': state->strategy = Z_FIXED; break; case 'T': state->direct = 1; break; default: /* could consider as an error, but just ignore */ ; } mode++; } /* must provide an "r", "w", or "a" */ if (state->mode == GZ_NONE) { free(state); return NULL; } /* can't force transparent read */ if (state->mode == GZ_READ) { if (state->direct) { free(state); return NULL; } state->direct = 1; /* for empty file */ } /* save the path name for error messages */ #ifdef WIDECHAR if (fd == -2) { len = wcstombs(NULL, path, 0); if (len == (z_size_t)-1) len = 0; } else #endif len = strlen((const char *)path); state->path = (char *)malloc(len + 1); if (state->path == NULL) { free(state); return NULL; } #ifdef WIDECHAR if (fd == -2) if (len) wcstombs(state->path, path, len + 1); else *(state->path) = 0; else #endif #if !defined(NO_snprintf) && !defined(NO_vsnprintf) (void)snprintf(state->path, len + 1, "%s", (const char *)path); #else strcpy(state->path, path); #endif /* compute the flags for open() */ oflag = #ifdef O_LARGEFILE O_LARGEFILE | #endif #ifdef O_BINARY O_BINARY | #endif #ifdef O_CLOEXEC (cloexec ? O_CLOEXEC : 0) | #endif (state->mode == GZ_READ ? O_RDONLY : (O_WRONLY | O_CREAT | #ifdef O_EXCL (exclusive ? O_EXCL : 0) | #endif (state->mode == GZ_WRITE ? O_TRUNC : O_APPEND))); /* open the file with the appropriate flags (or just use fd) */ state->fd = fd > -1 ? fd : ( #ifdef WIDECHAR fd == -2 ? _wopen(path, oflag, 0666) : #endif open((const char *)path, oflag, 0666)); if (state->fd == -1) { free(state->path); free(state); return NULL; } if (state->mode == GZ_APPEND) { LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */ state->mode = GZ_WRITE; /* simplify later checks */ } /* save the current position for rewinding (only if reading) */ if (state->mode == GZ_READ) { state->start = LSEEK(state->fd, 0, SEEK_CUR); if (state->start == -1) state->start = 0; } /* initialize stream */ gz_reset(state); /* return stream */ return (gzFile)state; } /* -- see zlib.h -- */ gzFile ZEXPORT gzopen(path, mode) const char *path; const char *mode; { return gz_open(path, -1, mode); } /* -- see zlib.h -- */ gzFile ZEXPORT gzopen64(path, mode) const char *path; const char *mode; { return gz_open(path, -1, mode); } /* -- see zlib.h -- */ gzFile ZEXPORT gzdopen(fd, mode) int fd; const char *mode; { char *path; /* identifier for error messages */ gzFile gz; if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL) return NULL; #if !defined(NO_snprintf) && !defined(NO_vsnprintf) (void)snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); #else sprintf(path, "<fd:%d>", fd); /* for debugging */ #endif gz = gz_open(path, fd, mode); free(path); return gz; } /* -- see zlib.h -- */ #ifdef WIDECHAR gzFile ZEXPORT gzopen_w(path, mode) const wchar_t *path; const char *mode; { return gz_open(path, -2, mode); } #endif /* -- see zlib.h -- */ int ZEXPORT gzbuffer(file, size) gzFile file; unsigned size; { gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return -1; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return -1; /* make sure we haven't already allocated memory */ if (state->size != 0) return -1; /* check and set requested size */ if ((size << 1) < size) return -1; /* need to be able to double it */ if (size < 2) size = 2; /* need two bytes to check magic header */ state->want = size; return 0; } /* -- see zlib.h -- */ int ZEXPORT gzrewind(file) gzFile file; { gz_statep state; /* get internal structure */ if (file == NULL) return -1; state = (gz_statep)file; /* check that we're reading and that there's no error */ if (state->mode != GZ_READ || (state->err != Z_OK && state->err != Z_BUF_ERROR)) return -1; /* back up and start over */ if (LSEEK(state->fd, state->start, SEEK_SET) == -1) return -1; gz_reset(state); return 0; } /* -- see zlib.h -- */ z_off64_t ZEXPORT gzseek64(file, offset, whence) gzFile file; z_off64_t offset; int whence; { unsigned n; z_off64_t ret; gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return -1; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return -1; /* check that there's no error */ if (state->err != Z_OK && state->err != Z_BUF_ERROR) return -1; /* can only seek from start or relative to current position */ if (whence != SEEK_SET && whence != SEEK_CUR) return -1; /* normalize offset to a SEEK_CUR specification */ if (whence == SEEK_SET) offset -= state->x.pos; else if (state->seek) offset += state->skip; state->seek = 0; /* if within raw area while reading, just go there */ if (state->mode == GZ_READ && state->how == COPY && state->x.pos + offset >= 0) { ret = LSEEK(state->fd, offset - (z_off64_t)state->x.have, SEEK_CUR); if (ret == -1) return -1; state->x.have = 0; state->eof = 0; state->past = 0; state->seek = 0; gz_error(state, Z_OK, NULL); state->strm.avail_in = 0; state->x.pos += offset; return state->x.pos; } /* calculate skip amount, rewinding if needed for back seek when reading */ if (offset < 0) { if (state->mode != GZ_READ) /* writing -- can't go backwards */ return -1; offset += state->x.pos; if (offset < 0) /* before start of file! */ return -1; if (gzrewind(file) == -1) /* rewind, then skip to offset */ return -1; } /* if reading, skip what's in output buffer (one less gzgetc() check) */ if (state->mode == GZ_READ) { n = GT_OFF(state->x.have) || (z_off64_t)state->x.have > offset ? (unsigned)offset : state->x.have; state->x.have -= n; state->x.next += n; state->x.pos += n; offset -= n; } /* request skip (if not zero) */ if (offset) { state->seek = 1; state->skip = offset; } return state->x.pos + offset; } /* -- see zlib.h -- */ z_off_t ZEXPORT gzseek(file, offset, whence) gzFile file; z_off_t offset; int whence; { z_off64_t ret; ret = gzseek64(file, (z_off64_t)offset, whence); return ret == (z_off_t)ret ? (z_off_t)ret : -1; } /* -- see zlib.h -- */ z_off64_t ZEXPORT gztell64(file) gzFile file; { gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return -1; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return -1; /* return position */ return state->x.pos + (state->seek ? state->skip : 0); } /* -- see zlib.h -- */ z_off_t ZEXPORT gztell(file) gzFile file; { z_off64_t ret; ret = gztell64(file); return ret == (z_off_t)ret ? (z_off_t)ret : -1; } /* -- see zlib.h -- */ z_off64_t ZEXPORT gzoffset64(file) gzFile file; { z_off64_t offset; gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return -1; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return -1; /* compute and return effective offset in file */ offset = LSEEK(state->fd, 0, SEEK_CUR); if (offset == -1) return -1; if (state->mode == GZ_READ) /* reading */ offset -= state->strm.avail_in; /* don't count buffered input */ return offset; } /* -- see zlib.h -- */ z_off_t ZEXPORT gzoffset(file) gzFile file; { z_off64_t ret; ret = gzoffset64(file); return ret == (z_off_t)ret ? (z_off_t)ret : -1; } /* -- see zlib.h -- */ int ZEXPORT gzeof(file) gzFile file; { gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return 0; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return 0; /* return end-of-file state */ return state->mode == GZ_READ ? state->past : 0; } /* -- see zlib.h -- */ const char * ZEXPORT gzerror(file, errnum) gzFile file; int *errnum; { gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return NULL; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return NULL; /* return error information */ if (errnum != NULL) *errnum = state->err; return state->err == Z_MEM_ERROR ? "out of memory" : (state->msg == NULL ? "" : state->msg); } /* -- see zlib.h -- */ void ZEXPORT gzclearerr(file) gzFile file; { gz_statep state; /* get internal structure and check integrity */ if (file == NULL) return; state = (gz_statep)file; if (state->mode != GZ_READ && state->mode != GZ_WRITE) return; /* clear error and end-of-file */ if (state->mode == GZ_READ) { state->eof = 0; state->past = 0; } gz_error(state, Z_OK, NULL); } /* Create an error message in allocated memory and set state->err and state->msg accordingly. Free any previous error message already there. Do not try to free or allocate space if the error is Z_MEM_ERROR (out of memory). Simply save the error message as a static string. If there is an allocation failure constructing the error message, then convert the error to out of memory. */ void ZLIB_INTERNAL gz_error(state, err, msg) gz_statep state; int err; const char *msg; { /* free previously allocated message and clear */ if (state->msg != NULL) { if (state->err != Z_MEM_ERROR) free(state->msg); state->msg = NULL; } /* if fatal, set state->x.have to 0 so that the gzgetc() macro fails */ if (err != Z_OK && err != Z_BUF_ERROR) state->x.have = 0; /* set error code, and if no message, then done */ state->err = err; if (msg == NULL) return; /* for an out of memory error, return literal string when requested */ if (err == Z_MEM_ERROR) return; /* construct error message with path */ if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { state->err = Z_MEM_ERROR; return; } #if !defined(NO_snprintf) && !defined(NO_vsnprintf) (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3, "%s%s%s", state->path, ": ", msg); #else strcpy(state->msg, state->path); strcat(state->msg, ": "); strcat(state->msg, msg); #endif } #ifndef INT_MAX /* portably return maximum value for an int (when limits.h presumed not available) -- we need to do this to cover cases where 2's complement not used, since C standard permits 1's complement and sign-bit representations, otherwise we could just use ((unsigned)-1) >> 1 */ unsigned ZLIB_INTERNAL gz_intmax() { unsigned p, q; p = 1; do { q = p; p <<= 1; p++; } while (p > q); return q >> 1; } #endif
1b19bb1d0b420817b8f3fdc0b24fa770236591eb
c2634ebec1d4448e372d174f459c3cbc03fd1edc
/lib/node_modules/@stdlib/math/base/special/expm1rel/src/main.c
f205d7f9c050483cce7d815493ed6de6b78cb866
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "SunPro", "BSD-3-Clause", "BSL-1.0", "LicenseRef-scancode-public-domain" ]
permissive
stdlib-js/stdlib
ede11aee78f08e4f78a0bb939cb0bc244850b55b
f10c6e7db1a2b15cdd2b6237dd0927466ebd7278
refs/heads/develop
2023-09-05T03:29:36.368208
2023-09-03T22:42:11
2023-09-03T22:42:11
54,614,238
4,163
230
Apache-2.0
2023-09-13T21:26:07
2016-03-24T04:19:52
JavaScript
UTF-8
C
false
false
1,419
c
main.c
/** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "stdlib/math/base/special/expm1rel.h" #include "stdlib/math/base/special/expm1.h" #include "stdlib/math/base/special/abs.h" #include "stdlib/constants/float64/eps.h" #include "stdlib/constants/float64/pinf.h" static const double OVERFLOW_THRESHOLD = 7.09782712893383973096e+02; // 0x40862E42 0xFEFA39EF /** * Computes the relative error exponential. * * @param x input value * @return output value * * @example * double out = stdlib_base_expm1rel( 0.0 ); * // returns 1.0 */ double stdlib_base_expm1rel( const double x ) { if ( stdlib_base_abs( x ) <= STDLIB_CONSTANT_FLOAT64_EPS ) { return 1.0; // L'Hopital's Rule } if ( x >= OVERFLOW_THRESHOLD ) { return STDLIB_CONSTANT_FLOAT64_PINF; // L'Hopital's Rule } return stdlib_base_expm1( x ) / x; }
ad940c761908da578623a747c615439cc5fb9d13
c0bfd93cd7f26a271268e504959256f1e02c6806
/components/lwip/apps/ping/ping_sock.c
0d6849374da8365c29c3aa826540529ade80327c
[ "Apache-2.0" ]
permissive
espressif/ESP8266_RTOS_SDK
606f396e92d2675d9854f0fabd88587fbbbaf267
af0cdc36fa2600033d0a09301c754008cf1503c1
refs/heads/master
2023-08-24T22:40:15.373553
2023-05-06T02:04:24
2023-05-06T02:04:24
27,584,181
3,163
1,749
Apache-2.0
2023-08-09T10:48:13
2014-12-05T09:27:12
C
UTF-8
C
false
false
14,702
c
ping_sock.c
// Copyright 2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <stdlib.h> #include <stdbool.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "lwip/opt.h" #include "lwip/init.h" #include "lwip/mem.h" #include "lwip/icmp.h" #include "lwip/netif.h" #include "lwip/sys.h" #include "lwip/timeouts.h" #include "lwip/inet.h" #include "lwip/inet_chksum.h" #include "lwip/ip.h" #include "lwip/netdb.h" #include "lwip/sockets.h" #include "esp_log.h" #include "ping/ping_sock.h" const static char *TAG = "ping_sock"; #define PING_CHECK(a, str, goto_tag, ret_value, ...) \ do \ { \ if (!(a)) \ { \ ESP_LOGE(TAG, "%s(%d): " str, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ret = ret_value; \ goto goto_tag; \ } \ } while (0) #define PING_TIME_DIFF_MS(_end, _start) ((uint32_t)(((_end).tv_sec - (_start).tv_sec) * 1000 + \ ((_end).tv_usec - (_start).tv_usec) / 1000)) #define PING_CHECK_START_TIMEOUT_MS (1000) #define PING_FLAGS_INIT (1 << 0) #define PING_FLAGS_START (1 << 1) typedef struct { int sock; struct sockaddr_storage target_addr; TaskHandle_t ping_task_hdl; struct icmp_echo_hdr *packet_hdr; ip_addr_t recv_addr; uint32_t recv_len; uint32_t icmp_pkt_size; uint32_t count; uint32_t transmitted; uint32_t received; uint32_t interval_ms; uint32_t elapsed_time_ms; uint32_t total_time_ms; uint8_t ttl; uint32_t flags; void (*on_ping_success)(esp_ping_handle_t hdl, void *args); void (*on_ping_timeout)(esp_ping_handle_t hdl, void *args); void (*on_ping_end)(esp_ping_handle_t hdl, void *args); void *cb_args; } esp_ping_t; static esp_err_t esp_ping_send(esp_ping_t *ep) { esp_err_t ret = ESP_OK; ep->packet_hdr->seqno++; /* generate checksum since "seqno" has changed */ ep->packet_hdr->chksum = 0; if (ep->packet_hdr->type == ICMP_ECHO) { ep->packet_hdr->chksum = inet_chksum(ep->packet_hdr, ep->icmp_pkt_size); } int sent = sendto(ep->sock, ep->packet_hdr, ep->icmp_pkt_size, 0, (struct sockaddr *)&ep->target_addr, sizeof(ep->target_addr)); if (sent != ep->icmp_pkt_size) { int opt_val; socklen_t opt_len = sizeof(opt_val); getsockopt(ep->sock, SOL_SOCKET, SO_ERROR, &opt_val, &opt_len); ESP_LOGE(TAG, "send error=%d", opt_val); ret = ESP_FAIL; } else { ep->transmitted++; } return ret; } static int esp_ping_receive(esp_ping_t *ep) { char buf[64]; // 64 bytes are enough to cover IP header and ICMP header int len = 0; struct sockaddr_storage from; int fromlen = sizeof(from); uint16_t data_head = 0; while ((len = recvfrom(ep->sock, buf, sizeof(buf), 0, (struct sockaddr *)&from, (socklen_t *)&fromlen)) > 0) { if (from.ss_family == AF_INET) { // IPv4 struct sockaddr_in *from4 = (struct sockaddr_in *)&from; inet_addr_to_ip4addr(ip_2_ip4(&ep->recv_addr), &from4->sin_addr); IP_SET_TYPE_VAL(ep->recv_addr, IPADDR_TYPE_V4); data_head = (uint16_t)(sizeof(struct ip_hdr) + sizeof(struct icmp_echo_hdr)); } #if LWIP_IPV6 else { // IPv6 struct sockaddr_in6 *from6 = (struct sockaddr_in6 *)&from; inet6_addr_to_ip6addr(ip_2_ip6(&ep->recv_addr), &from6->sin6_addr); IP_SET_TYPE_VAL(ep->recv_addr, IPADDR_TYPE_V6); data_head = (uint16_t)(sizeof(struct ip6_hdr) + sizeof(struct icmp6_echo_hdr)); } #endif if (len >= data_head) { if (IP_IS_V4_VAL(ep->recv_addr)) { // Currently we process IPv4 struct ip_hdr *iphdr = (struct ip_hdr *)buf; struct icmp_echo_hdr *iecho = (struct icmp_echo_hdr *)(buf + (IPH_HL(iphdr) * 4)); if ((iecho->id == ep->packet_hdr->id) && (iecho->seqno == ep->packet_hdr->seqno)) { ep->received++; ep->ttl = iphdr->_ttl; ep->recv_len = lwip_ntohs(IPH_LEN(iphdr)) - data_head; // The data portion of ICMP return len; } } #if LWIP_IPV6 else if (IP_IS_V6_VAL(ep->recv_addr)) { // Currently we process IPv6 struct ip6_hdr *iphdr = (struct ip6_hdr *)buf; struct icmp6_echo_hdr *iecho6 = (struct icmp6_echo_hdr *)(buf + sizeof(struct ip6_hdr)); // IPv6 head length is 40 if ((iecho6->id == ep->packet_hdr->id) && (iecho6->seqno == ep->packet_hdr->seqno)) { ep->received++; ep->recv_len = IP6H_PLEN(iphdr) - sizeof(struct icmp6_echo_hdr); //The data portion of ICMPv6 return len; } } #endif } fromlen = sizeof(from); } // if timeout, len will be -1 return len; } static void esp_ping_thread(void *args) { esp_ping_t *ep = (esp_ping_t *)(args); TickType_t last_wake; struct timeval start_time, end_time; int recv_ret; while (1) { /* wait for ping start signal */ if (ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(PING_CHECK_START_TIMEOUT_MS))) { /* initialize runtime statistics */ ep->packet_hdr->seqno = 0; ep->transmitted = 0; ep->received = 0; ep->total_time_ms = 0; last_wake = xTaskGetTickCount(); while ((ep->flags & PING_FLAGS_START) && ((ep->count == 0) || (ep->packet_hdr->seqno < ep->count))) { esp_ping_send(ep); gettimeofday(&start_time, NULL); recv_ret = esp_ping_receive(ep); gettimeofday(&end_time, NULL); ep->elapsed_time_ms = PING_TIME_DIFF_MS(end_time, start_time); ep->total_time_ms += ep->elapsed_time_ms; if (recv_ret >= 0) { if (ep->on_ping_success) { ep->on_ping_success((esp_ping_handle_t)ep, ep->cb_args); } } else { if (ep->on_ping_timeout) { ep->on_ping_timeout((esp_ping_handle_t)ep, ep->cb_args); } } vTaskDelayUntil(&last_wake, pdMS_TO_TICKS(ep->interval_ms)); // to get a more accurate delay } /* batch of ping operations finished */ if (ep->on_ping_end) { ep->on_ping_end((esp_ping_handle_t)ep, ep->cb_args); } } else { // check if ping has been de-initialized if (!(ep->flags & PING_FLAGS_INIT)) { break; } } } /* before exit task, free all resources */ if (ep->packet_hdr) { free(ep->packet_hdr); } if (ep->sock > 0) { close(ep->sock); } free(ep); vTaskDelete(NULL); } esp_err_t esp_ping_new_session(const esp_ping_config_t *config, const esp_ping_callbacks_t *cbs, esp_ping_handle_t *hdl_out) { esp_err_t ret = ESP_OK; esp_ping_t *ep = NULL; PING_CHECK(config, "ping config can't be null", err, ESP_ERR_INVALID_ARG); PING_CHECK(hdl_out, "ping handle can't be null", err, ESP_ERR_INVALID_ARG); ep = mem_calloc(1, sizeof(esp_ping_t)); PING_CHECK(ep, "no memory for esp_ping object", err, ESP_ERR_NO_MEM); /* set INIT flag, so that ping task won't exit (must set before create ping task) */ ep->flags |= PING_FLAGS_INIT; /* create ping thread */ BaseType_t xReturned = xTaskCreate(esp_ping_thread, "ping", config->task_stack_size, ep, config->task_prio, &ep->ping_task_hdl); PING_CHECK(xReturned == pdTRUE, "create ping task failed", err, ESP_ERR_NO_MEM); /* callback functions */ if (cbs) { ep->cb_args = cbs->cb_args; ep->on_ping_end = cbs->on_ping_end; ep->on_ping_timeout = cbs->on_ping_timeout; ep->on_ping_success = cbs->on_ping_success; } /* set parameters for ping */ ep->recv_addr = config->target_addr; ep->count = config->count; ep->interval_ms = config->interval_ms; ep->icmp_pkt_size = sizeof(struct icmp_echo_hdr) + config->data_size; ep->packet_hdr = mem_calloc(1, ep->icmp_pkt_size); PING_CHECK(ep->packet_hdr, "no memory for echo packet", err, ESP_ERR_NO_MEM); /* set ICMP type and code field */ ep->packet_hdr->code = 0; /* ping id should be unique, treat task handle as ping ID */ ep->packet_hdr->id = ((uint32_t)ep->ping_task_hdl) & 0xFFFF; /* fill the additional data buffer with some data */ char *d = (char *)(ep->packet_hdr) + sizeof(struct icmp_echo_hdr); for (uint32_t i = 0; i < config->data_size; i++) { d[i] = 'A' + i; } #if LWIP_IPV4 && LWIP_IPV6 /* create socket */ if (IP_IS_V4(&config->target_addr) || ip6_addr_isipv4mappedipv6(ip_2_ip6(&config->target_addr))) { ep->sock = socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP); } else { ep->sock = socket(AF_INET6, SOCK_RAW, IP6_NEXTH_ICMP6); } #else if (IP_IS_V4(&config->target_addr)) { ep->sock = socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP); } #endif PING_CHECK(ep->sock > 0, "create socket failed: %d", err, ESP_FAIL, ep->sock); /* set if index */ if(config->interface) { struct ifreq iface; if(netif_index_to_name(config->interface, iface.ifr_name) == NULL) { goto err; } if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface)) !=0) { goto err; } } struct timeval timeout; timeout.tv_sec = config->timeout_ms / 1000; timeout.tv_usec = (config->timeout_ms % 1000) * 1000; /* set receive timeout */ setsockopt(ep->sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)); /* set tos */ setsockopt(ep->sock, IPPROTO_IP, IP_TOS, &config->tos, sizeof(config->tos)); /* set socket address */ if (IP_IS_V4(&config->target_addr)) { struct sockaddr_in *to4 = (struct sockaddr_in *)&ep->target_addr; to4->sin_family = AF_INET; inet_addr_from_ip4addr(&to4->sin_addr, ip_2_ip4(&config->target_addr)); ep->packet_hdr->type = ICMP_ECHO; } #if LWIP_IPV6 if (IP_IS_V6(&config->target_addr)) { struct sockaddr_in6 *to6 = (struct sockaddr_in6 *)&ep->target_addr; to6->sin6_family = AF_INET6; inet6_addr_from_ip6addr(&to6->sin6_addr, ip_2_ip6(&config->target_addr)); ep->packet_hdr->type = ICMP6_TYPE_EREQ; } #endif /* return ping handle to user */ *hdl_out = (esp_ping_handle_t)ep; return ESP_OK; err: if (ep) { if (ep->sock > 0) { close(ep->sock); } if (ep->packet_hdr) { free(ep->packet_hdr); } if (ep->ping_task_hdl) { vTaskDelete(ep->ping_task_hdl); } free(ep); } return ret; } esp_err_t esp_ping_delete_session(esp_ping_handle_t hdl) { esp_err_t ret = ESP_OK; esp_ping_t *ep = (esp_ping_t *)hdl; PING_CHECK(ep, "ping handle can't be null", err, ESP_ERR_INVALID_ARG); /* reset init flags, then ping task will exit */ ep->flags &= ~PING_FLAGS_INIT; return ESP_OK; err: return ret; } esp_err_t esp_ping_start(esp_ping_handle_t hdl) { esp_err_t ret = ESP_OK; esp_ping_t *ep = (esp_ping_t *)hdl; PING_CHECK(ep, "ping handle can't be null", err, ESP_ERR_INVALID_ARG); ep->flags |= PING_FLAGS_START; xTaskNotifyGive(ep->ping_task_hdl); return ESP_OK; err: return ret; } esp_err_t esp_ping_stop(esp_ping_handle_t hdl) { esp_err_t ret = ESP_OK; esp_ping_t *ep = (esp_ping_t *)hdl; PING_CHECK(ep, "ping handle can't be null", err, ESP_ERR_INVALID_ARG); ep->flags &= ~PING_FLAGS_START; return ESP_OK; err: return ret; } esp_err_t esp_ping_get_profile(esp_ping_handle_t hdl, esp_ping_profile_t profile, void *data, uint32_t size) { esp_err_t ret = ESP_OK; esp_ping_t *ep = (esp_ping_t *)hdl; const void *from = NULL; uint32_t copy_size = 0; PING_CHECK(ep, "ping handle can't be null", err, ESP_ERR_INVALID_ARG); PING_CHECK(data, "profile data can't be null", err, ESP_ERR_INVALID_ARG); switch (profile) { case ESP_PING_PROF_SEQNO: from = &ep->packet_hdr->seqno; copy_size = sizeof(ep->packet_hdr->seqno); break; case ESP_PING_PROF_TTL: from = &ep->ttl; copy_size = sizeof(ep->ttl); break; case ESP_PING_PROF_REQUEST: from = &ep->transmitted; copy_size = sizeof(ep->transmitted); break; case ESP_PING_PROF_REPLY: from = &ep->received; copy_size = sizeof(ep->received); break; case ESP_PING_PROF_IPADDR: from = &ep->recv_addr; copy_size = sizeof(ep->recv_addr); break; case ESP_PING_PROF_SIZE: from = &ep->recv_len; copy_size = sizeof(ep->recv_len); break; case ESP_PING_PROF_TIMEGAP: from = &ep->elapsed_time_ms; copy_size = sizeof(ep->elapsed_time_ms); break; case ESP_PING_PROF_DURATION: from = &ep->total_time_ms; copy_size = sizeof(ep->total_time_ms); break; default: PING_CHECK(false, "unknow profile: %d", err, ESP_ERR_INVALID_ARG, profile); break; } PING_CHECK(size >= copy_size, "unmatched data size for profile %d", err, ESP_ERR_INVALID_SIZE, profile); memcpy(data, from, copy_size); return ESP_OK; err: return ret; }
88c7c280dc851848253a2e87c7c587b7d20f925e
8551168c7b71c31eebad0f9b0c71eebbcc743000
/src/include/game/game_00b820.h
a7b6bb262fc7d31aa4510b52a1f44f5e068a46d1
[ "MIT" ]
permissive
n64decomp/perfect_dark
0db80e8ecba74741b959962e55c835a91c920f44
0235a971d6fb1a0d4421856d5a65aa8067bd4658
refs/heads/master
2023-08-31T04:27:53.864767
2023-08-29T11:36:58
2023-08-29T11:36:58
241,214,589
452
47
MIT
2023-08-21T08:53:40
2020-02-17T21:46:45
C
UTF-8
C
false
false
192
h
game_00b820.h
#ifndef IN_GAME_GAME_00B820_H #define IN_GAME_GAME_00B820_H #include <ultra64.h> #include "data.h" #include "types.h" void resetSomeStageThings(void); void stageAllocateBgChrs(void); #endif